WordPress.org

Forums

[resolved] Static Page: title of blog overrides 'home' (6 posts)

  1. monnibo
    Member
    Posted 4 years ago #

    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?

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    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.

  3. monnibo
    Member
    Posted 4 years ago #

    This is the k2-header.php code via pastebin

    Any suggestions?

  4. esmi
    Forum Moderator
    Posted 4 years ago #

    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>
  5. monnibo
    Member
    Posted 4 years ago #

    That just removed the tab all together.

  6. monnibo
    Member
    Posted 4 years ago #

    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>

Topic Closed

This topic has been closed to new replies.

About this Topic