Static page issue
-
Hi there,
I’ve got a problem with the header in a static page…it doesn’t show.
I’m using the theme “Sparkling” and all other pages work flawless, but my static (home) page doesn’t show the header image.
Any solution for this?
This is the code that’s bringing up the images (as you see I’ve quoted out the original code for displaying the header. Again, this works for all other pages but not for the static page:<?php if( get_header_image() != '' ) : ?> <div id="logo"><!--<a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="<?php header_image(); ?>" height="<?php echo get_custom_header()->height; ?>" width="<?php echo get_custom_header()->width; ?>" alt="<?php bloginfo( 'name' ); ?>"/></a>--> <?php do_shortcode('[WP_HEADER_IMAGES]'); ?> </div><!-- end of #logo --> <?php endif; // header image was removed ?> <?php if( !get_header_image() ) : ?> <div id="logo"><!--<?php echo is_home() ? '<h1 class="site-name">' : '<p class="site-name">'; ?> <a class="navbar-brand" href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a> <?php echo is_home() ? '</h1>' : '</p>'; ?>--> <?php do_shortcode('[WP_HEADER_IMAGES]'); ?> </div><!-- end of #logo --> <?php endif; // header image was removed (again) ?>
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Static page issue’ is closed to new replies.