WordPress.org

Ready to get started?Download WordPress

Forums

Adamos
[resolved] Delete header image on pages (2 posts)

  1. Cristina306
    Member
    Posted 10 months ago #

    Hi,

    How I can delete the picture of header in every page???... I just want this on the homepage.
    I havethe premium version of Adamos, and I did some questions...But I've already solved some of them by my own...

    I going to try again...

    An answer will be apreciated

  2. Template Express
    Member
    Theme Author

    Posted 9 months ago #

    In the header.php file look for:

    <div class="header-image">

    Delete everything inside this div and replace with:

    <?php if(is_front_page()):?>
        <?php $header_image = get_header_image();
    		if ( ! empty( $header_image ) ) { ?>
    			<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
    				<img src="<?php header_image(); ?>" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" />
    			</a>
    		<?php } // if ( ! empty( $header_image ) ) ?>
    
        <?php endif; ?>

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.