• Resolved Slopsema

    (@slopsema)


    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) ?>

    https://www.ads-software.com/plugins/wp-header-images/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Fahad Mahmood

    (@fahadmahmood)

    Is this page related to any menu item? This plugin works with the menu items, try to check and let me know the status.

    Thread Starter Slopsema

    (@slopsema)

    It is the start page (homepage) of the menu structure.
    In the widgets it is set as a static homepage, I’ve got two options in the widgets: “static page” or “last posts”.

    When I set the widget to “last posts”, the homepage is not longer the first page. Still I want the homepage to be the first page, so “last posts” is not an option.
    All other pages like info, links, contact etc. work flawless. It’s just the static page that won’t show the header

    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    Recent version which you are using, is already coded for this case. In menus, place the first menu item as your HOME page so it will pick that up as HOME menu item. If still you think that its not working, reach me through my blog and let me inspect.

    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    Version 1.4.0 released, check it please.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Static page issue’ is closed to new replies.