New Landing How can we help? Themeforest Theme Support Neighborhood In tag product not apply ALT background

Viewing 6 posts - 1 through 6 (of 6 total)
  • #235122
    Mairena
    Member
    Post count: 66

    Hi,

    In shop and all the pages works well but only in tag product the theme doesn’t apply the ALT background. Attached a picture.

    Regards!

    Attachments:
    You must be logged in to view attached files.
    #235289
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please go to Admin -> Theme Options -> Woocommerce Options -> WooCommerce Page Heading Background -> Here you can set the alt background.
    Thanks
    Mohammad

    #235380
    Mairena
    Member
    Post count: 66

    Hi Mohammad,

    This option have the alt 7, in ‘shop’ and category ‘man’ or ‘woman’ works well, only in tag product doesn’t appear well. Currently appear in the color grey.

    Regards!

    Attachments:
    You must be logged in to view attached files.
    #235476
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please paste given below code at functions.php of child theme.

    <?php
    function sf_page_heading() {
    
                global $wp_query, $post;
                
                $shop_page  = false;
                $show_page_title = false;
                $page_title_bg = "";
                
                $page_title = $page_subtitle = $page_title_style = $page_title_overlay_effect = $fancy_title_image_url = $article_heading_bg = $article_heading_text = $page_heading_el_class = $page_design_style = $extra_styles = $page_title_text_align = "";
    						
                $show_page_title    = apply_filters( 'sf_page_heading_ns_pagetitle', 1 );
                $remove_breadcrumbs = apply_filters( 'sf_page_heading_ns_removebreadcrumbs', 0 );
                $page_title_height  = 300;
                $page_title_style   = "standard";
    
    			// Shop page check
                if ( ( function_exists( 'is_shop' ) && is_shop() ) || ( function_exists( 'is_product_category' ) && is_product_category() ) || is_product_tag() ) {
                    $shop_page = true;
                }
    
                // Defaults
                $options = get_option('sf_neighborhood_options');
                $default_page_heading_bg_alt = $options['default_page_heading_bg_alt'];
                $default_show_page_heading = $options['default_show_page_heading'];
    	
                // Post meta
                if ( $post && is_singular() ) {
                    $show_page_title       = sf_get_post_meta( $post->ID, 'sf_page_title', true );
                    $remove_breadcrumbs    = sf_get_post_meta( $post->ID, 'sf_no_breadcrumbs', true );
                    $page_title            = sf_get_post_meta( $post->ID, 'sf_page_title_one', true );
                    $page_subtitle         = sf_get_post_meta( $post->ID, 'sf_page_subtitle', true );
                    
                    $page_title_bg = sf_get_post_meta($post->ID, 'sf_page_title_bg', true);
                    
                    if ($show_page_title == "") {
                    	$show_page_title = $default_show_page_heading;
                    }
                    if ($page_title_bg == "") {
                    	$page_title_bg = $default_page_heading_bg_alt;
                    }
                } else {
                	$page_title_bg = $default_page_heading_bg_alt;
                }
                
                // Woo setup
                if ( $shop_page ) {
                    $show_page_title = apply_filters( 'woocommerce_show_page_title', true );
                    $page_title_bg = $options['woo_page_heading_bg_alt'];
                }
    
                // Page Title
                if ( $show_page_title == "" ) {
                    $show_page_title = $default_show_page_heading;
                }
                if ( $page_title == "" ) {
                    $page_title = get_the_title();
                }
                if ( $page_title_height == "" ) {
                    $page_title_height = apply_filters( 'sf_shop_fancy_page_height', 300 );
                }
    
                // Page Title Hidden
                if ( ! $show_page_title ) {
                    $page_heading_el_class = "page-heading-hidden";
                }
                
                ?>
    				
    			<div class="page-heading <?php echo esc_attr($page_heading_el_class); ?> clearfix asset-bg <?php echo $page_title_bg; 
    				?>">
                    <div class="container">
                        <div class="heading-text">
    
                            <?php if ( sf_woocommerce_activated() && is_woocommerce() ) { ?>
    
                                <?php if ( is_product() ) { ?>
    
                                    <h1 class="entry-title" <?php echo $article_heading_text; ?>><?php echo esc_attr($page_title); ?></h1>
    
                                <?php } else { ?>
    
                                    <h1 class="entry-title" <?php echo $article_heading_text; ?>><?php woocommerce_page_title(); ?></h1>
    
                                <?php } ?>
    
                            <?php } else if ( is_search() ) { ?>
    
                                <?php
                                $s         = get_search_query();
                                $allsearch = new WP_Query( "s=$s&showposts=-1" );
                                $key       = esc_html( $s, 1 );
                                $count     = $allsearch->post_count;
                                wp_reset_query(); ?>
                                <?php if ( $count == 1 ) : ?>
                                    <?php printf( __( '<h1>%1$s result for <span>%2$s</span></h1>', 'swiftframework' ), $count, get_search_query() ); ?>
                                <?php else : ?>
                                    <?php printf( __( '<h1>%1$s results for <span>%2$s</span></h1>', 'swiftframework' ), $count, get_search_query() ); ?>
                                <?php endif; ?>
    
                            <?php } else if ( is_category() ) { ?>
    
                                <h1 <?php echo $article_heading_text; ?>><?php single_cat_title(); ?></h1>
    
                            <?php } else if ( is_archive() ) { ?>
    
                                <?php /* If this is a tag archive */
                                if ( is_tag() ) { ?>
                                    <h1 <?php echo $article_heading_text; ?>><?php _e( "Posts tagged with", "swiftframework" ); ?>
                                        ‘<?php single_tag_title(); ?>’</h1>
                                    <?php /* If this is a daily archive */
                                } elseif ( is_day() ) { ?>
                                    <h1 <?php echo $article_heading_text; ?>><?php _e( "Archive for", "swiftframework" ); ?> <?php the_time( 'F jS, Y' ); ?></h1>
                                    <?php /* If this is a monthly archive */
                                } elseif ( is_month() ) { ?>
                                    <h1 <?php echo $article_heading_text; ?>><?php _e( "Archive for", "swiftframework" ); ?> <?php the_time( 'F, Y' ); ?></h1>
                                    <?php /* If this is a yearly archive */
                                } elseif ( is_year() ) { ?>
                                    <h1 <?php echo $article_heading_text; ?>><?php _e( "Archive for", "swiftframework" ); ?> <?php the_time( 'Y' ); ?></h1>
                                    <?php /* If this is an author archive */
                                } elseif ( is_author() ) { ?>
                                    <?php $author = get_userdata( get_query_var( 'author' ) ); ?>
                                    <?php if ( class_exists( 'ATCF_Campaigns' ) ) { ?>
                                        <h1 <?php echo $article_heading_text; ?>><?php _e( "Projects by", "swiftframework" ); ?> <?php echo esc_attr($author->display_name); ?></h1>
                                    <?php } else { ?>
                                        <h1 <?php echo $article_heading_text; ?>><?php _e( "Author archive for", "swiftframework" ); ?> <?php echo esc_attr($author->display_name); ?></h1>
                                    <?php } ?>
                                    <?php /* If this is a paged archive */
                                } elseif ( isset( $_GET['paged'] ) && ! empty( $_GET['paged'] ) ) { ?>
                                    <h1 <?php echo $article_heading_text; ?>><?php _e( "Blog Archives", "swiftframework" ); ?></h1>
                                <?php } else { ?>
                                    <h1 <?php echo $article_heading_text; ?>><?php single_term_title(); ?></h1>
                                <?php } ?>
    
                            <?php } else if ( is_404() ) { ?>
    
                                <h1 class="entry-title" <?php echo $article_heading_text; ?>><?php _e( "404", "swiftframework" ); ?></h1>
    						
    						<?php } else if ( is_home() && get_option('page_for_posts') ) { ?>
    
                                <h1 class="entry-title" <?php echo $article_heading_text; ?>><?php echo apply_filters('the_title',get_page( get_option('page_for_posts') )->post_title); ?></h1>
    						
                            <?php } else { ?>
    
                                <h1 class="entry-title" <?php echo $article_heading_text; ?>><?php echo $page_title; ?></h1>
    
                            <?php } ?>
    
                        </div>
    
    					<?php if ( !$remove_breadcrumbs ) {
    						echo sf_breadcrumbs( true );
    					} ?>
    
                    </div>
                </div>
    <?php } ?>

    Thanks
    Mohammad

    #235583
    Mairena
    Member
    Post count: 66

    Hello,

    I thought it would be something more simple. Sorry for the inconvenience.

    Thanks for everything.

    Regards!

    #235585
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    No problem

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register