• Hello friends,

    I am new to the world of WP blog. I just started my Blog and using the Ample theme. All good till now and I have also used a Header Image which get displayed on every Single Post view as well which I do not want.

    I just need the Header Image to be sown only on the Home Page of the Blog, not on single Blog Post page.

    How can I hide this, as i could not find any settings provided by Ample theme. May be some Custom CSS help?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi prabhatnath

    To hide Header Image on every Single Post viewed you need to do little customization.
    First create and activate child theme. Reference here https://codex.www.ads-software.com/Child_Themes
    After doing that you need to look for header.php file in main theme’s folder.
    Copy and paste that file in child theme’s folder.Now find the start and ending line as shown below and replace the section with below code.

    <div class="header">
             <?php if( ample_option( 'ample_header_image_position', 'above' ) == 'above' ) {
                if(!is_single()){
                   ample_render_header_image();
                }
    
                } ?>
    
             <div class="main-head-wrap inner-wrap clearfix">

    Hope this will work let us know if any confusion.

    Best Regards!!!

    Thread Starter prabhatnath

    (@prabhatnath)

    Hi WEN Solutions, Thank you for your help. I am very new and need to learn Child Theme to do this. I will try this for sure.

    Any chance if we can achieve this with custom CSS?

    Thanks.

    I just tried that and it did not work.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove Header Image from Single Post View on Ample Theme’ is closed to new replies.