Forum Replies Created

Viewing 3 replies - 16 through 18 (of 18 total)
  • Thread Starter twinstar1

    (@twinstar1)

    Hey Steve,
    I just (10 Minutes ago) replaced the image. Yes, it seems the developer decided to put the image in the Child Theme functions.php file as you suggested. I would have preferred to have added the image via the WordPress or GP interface, but this has done the trick. The problem is, it does not let me override the Background Image with the Feature Image, which is a shame. Anyway, the banner is now changed, so thanks so much for your help.
    All the best

    Thread Starter twinstar1

    (@twinstar1)

    Hey Tom,
    I just (10 Minutes ago) replaced the image. Yes, it seems the developer decided to put the image in the Child Theme functions.php file as you suggested. I would have preferred to have added the image via the WordPress or GP interface, but this has done the trick. The problem is, it does not let me override the Background Image with the Feature Image, which is a shame. Anyway, the banner is now changed, so thanks so much for your help.
    All the best,
    Troy

    Thread Starter twinstar1

    (@twinstar1)

    Hey Tom,
    Thanks for you quick response.
    The site is not using Elements, so I have already ruled that out.

    You are correct and the developer has created a Child Theme.
    I checked the functions.PHP and have identified this code.
    Is it here where I should add a different image, or does this code give you any further clues as to where the setting may be located?

    add_action(‘generate_after_header’,’ss_featured_page_header’,8);
    function ss_featured_page_header(){
    if(!is_front_page()){
    if(is_page()){
    if(has_post_thumbnail()){
    $large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), ‘large’ );
    $innerbg = $large_image_url[0];
    } else {
    $innerbg = get_stylesheet_directory_uri().’/assets/images/inner-featured-bg.jpg’;
    }
    } else {
    $innerbg = get_stylesheet_directory_uri().’/assets/images/inner-featured-bg.jpg’;
    }
    $vc_enabled = get_post_meta(get_the_ID(), ‘_wpb_vc_js_status’, true);
    $customheading = get_field(‘custom_page_heading’);
    ?>
    <div class=”inner-featured inner-featured-product”>
    <div class=”inner-featured-bg”<?php if($innerbg){ echo ‘ style=”background-image:url(‘.$innerbg.’);”‘; } ?>>
    <div class=”container”>
    <div class=”inner-featured-title”>
    <h1 class=”page-title”>
    <?php if(is_singular()){
    if($customheading){echo $customheading;} else { the_title(); }
    } elseif(is_search()){
    echo ‘Search’;
    } elseif(is_404()){
    echo ‘Page Not Found’;
    } elseif(is_shop()){
    echo ‘Products’;
    } elseif(is_home()){
    echo get_the_title(get_option(‘page_for_posts’));
    } elseif ( is_category() ) {
    printf( __( ‘Category : %s’, ‘pwd’ ), ‘<span>’ . single_cat_title( ”, false ) . ‘</span>’ );
    } elseif ( is_tag() ) {
    printf( __( ‘Tag : %s’, ‘pwd’ ), ‘<span>’ . single_tag_title( ”, false ) . ‘</span>’ );
    } elseif(is_tax()){
    echo single_term_title(”,false);

Viewing 3 replies - 16 through 18 (of 18 total)