Support » Fixing WordPress » Static Page: title of blog overrides 'home'

  • Resolved monnibo

    (@monniblog)


    I followed the WP instructions to set a static page as my home page and my blog/news as a secondary page… but for some reason both pages appear as “NEWS” on my navigation. see site in action

    I’ve tried deleting the pages and redoing the static page instructions, but nothing happens. What did I do wrong?

Viewing 5 replies - 1 through 5 (of 5 total)
  • esmi

    (@esmi)

    Forum Moderator

    Check your theme’s header.php file to see if it is picking up the front page setting for your site and hard-coding that into the nav bar menu.

    This is the k2-header.php code via pastebin

    Any suggestions?

    esmi

    (@esmi)

    Forum Moderator

    Try removing:

    <li class="<?php if ( is_front_page() && !is_paged() ): ?>current_page_item<?php else: ?>page_item<?php endif; ?> blogtab">
    		<a href="<?php echo get_option('home'); ?>/" title="<?php echo esc_attr( get_option('k2blogornoblog') ); ?>">
    			<?php echo get_option('k2blogornoblog'); ?>
    		</a>
    	</li>

    That just removed the tab all together.

    Okay this worked. The code you told me to remove, I replaced it like this:

    <li>
    		<a href="<?php echo get_option('home'); ?>/" title="<?php echo esc_attr( get_option('k2blogornoblog') ); ?>">Home</a>
    	</li>
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Static Page: title of blog overrides 'home'’ is closed to new replies.