Tagged: 

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #12248
    adasprom
    Member

    Hello,
    I hope you are well. I would like for my header image to only appear on my homepage. When a user selects any of the menu items, I would like it to only display the feature slider.
    My web page is http://www.grahamgouldmotors.com.au

    Thankyou
    Anthony

    #12268
    Sakin
    Keymaster

    @adasprom: You can add the following CSS in “Appearance => Theme Options => Custom CSS” box to show header only in homepage.

    #hgroup-wrap { display: none; }
    .home #hgroup-wrap { display: block; }
    #12307
    adasprom
    Member

    Thankyou for your reply. Unfortunately this did not work. I was talking about the Enable Featured Header Image option. I currently have it set on ‘Homepage’ which I thought would of meant the header image appears on the homepage. When a user selects the About Us menu item for example. It removes the header image and only displays the feature slider. I have another WordPress site with an earlier version of the theme that I use as a test site, it’s Version 1.2.2, and this function works well. I’m currently running Version 1.3 of your theme.
    Your assistance would be appreciated, thankyou.

    #12311
    Sakin
    Keymaster

    @adasprom: Yes, we have found issue in Featured Header Image options, which is schedule to be fixed in version 1.4. For now you can add above css or you can go to your file catcheverest-functions.php and in line no 358 replace the following code

    elseif ( $enableheaderimage == 'allpage' || ( $enableheaderimage == 'homepage' && ( ( is_front_page() || ( is_home() && $page_for_posts != $page_id ) ) && $enableslider == 'enable-slider-homepage' ) ) ) {
        catcheverest_featured_image();
    }

    With

    elseif ( $enableheaderimage == 'allpage' || ( $enableheaderimage == 'homepage' && ( is_front_page() || ( is_home() && $page_for_posts != $page_id ) ) ) ) {
        catcheverest_featured_image();
    }
    #12355
    adasprom
    Member

    My apologies, I’m not sure if I’m looking to hard at this, but the closest thing I have is on line 329 where it states the following:

    if ( $enableheaderimage == ‘allpage’ || ( $enableheaderimage == ‘homepage’ && is_front_page() ) ) {

    if ( $options[ ‘featured_header_image_position’ ] == “before-header” ) {
    add_action( ‘catcheverest_before_header’, ‘catcheverest_featured_image’, 10 );
    }
    elseif ( $options[ ‘featured_header_image_position’ ] == “after-sidebartop” ) {
    add_action( ‘catcheverest_before_hgroup_wrap’, ‘catcheverest_featured_image’, 15 );
    }
    elseif ( $options[ ‘featured_header_image_position’ ] == “after-menu” ) {
    add_action( ‘catcheverest_after_hgroup_wrap’, ‘catcheverest_featured_image’, 15 );
    }
    elseif ( $options[ ‘featured_header_image_position’ ] == “before-menu” ) {
    add_action( ‘catcheverest_after_hgroup_wrap’, ‘catcheverest_featured_image’, 9 );
    }

    }

    I originally attempted to edit the file with the Editor, but it didn’t work out for me and I had to replace the file with a backup I had. I’m now using Noteplus++ to look at the code.

    Thankyou for your patience.
    Regards,
    Anthony

    #12362
    adasprom
    Member

    Sakin,
    I think I have figured it out. I have removed the header image and replaced it with the Featured Header Image of choice and then I was able to change the settings so that when a user selects a menu item, the Featured Header Image would not appear and only display the Featured Content images. It would of been nice if I could use the header image, but I think I prefer it like this, the Featured Header Image actually comes out nicer. Also, when I select the menu item and the Featured Header Image disappears, there is a white space that appears on top of the Featured Content images, I have since filled this space with text within the TagLine and changed the colour.

    Let me know what you think?
    http://www.grahamgouldmotors.com.au

    Regards,
    Anthony

    #12377
    Sakin
    Keymaster

    @adasprom: Anything that work fine with you is great. I am just here to support you all. Cheers 🙂

    #12378
    adasprom
    Member

    Thank you. I must say, your template is so flexible and easy to work with. Thank you once again.

    #99246
    Laurie
    Participant

    I’m trying to get my homepage slider image to only appear on my homepage. I would like all of the other pages just to show content without my header picture. I tried some of the fixes suggested and they didn’t work. I’m using simple catch pro as my theme. My site is:
    http://www.21stcenturymom.com

    #99291
    Sakin
    Keymaster

    Hello Laurie,

    I check in your site and see that you are using Simple Catch Pro theme. For Simple Catch Pro theme please use support forum https://catchthemes.com/support-forum/forum/simple-catch-pro-premium/

    I see that you are using Header Image and we don’t have option for this. We have Enable option only for Slider in Simple Catch Pro. For slider, you need to go to “Appearance => Customize => Featured Slider => Slider Options”.

    We will work on the update of Simple Catch Pro theme. So, that we haven enable option for header image as well. This will be there in next version update only. For now, you can hide with the help of custom css.

    Just add the following css in “Appearance => Customize => Theme Options => Custom CSS Options” box:

    .headimg { display: none; }
    .home .headimg { display: block; }
Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Header Image only on Homepage’ is closed to new replies.