• i am using oria theme by flyfreemedia,
    by default it has header image enabled all over the pages.

    i want to diplay it only on homepage
    pls help

Viewing 2 replies - 1 through 2 (of 2 total)
  • Probably need to edit the theme’s header.php file and add a is_home() check to the part of the code that displays the image. Something like this:

    <?php if ( get_header_image() && is_home() ) : ?>
    		<a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="<?php header_image(); ?>" class="header-image" width="<?php echo esc_attr( get_custom_header()->width ); ?>" height="<?php echo esc_attr( get_custom_header()->height ); ?>" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" /></a>
    		<?php endif; ?>

    Thread Starter prasad2180

    (@prasad2180)

    i am new to wordpress can u just guide me in step by step

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘display header image on homepage only’ is closed to new replies.