monniblog
Member
Posted 1 year 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?
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.
monniblog
Member
Posted 1 year 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>
monniblog
Member
Posted 1 year ago #
That just removed the tab all together.
monniblog
Member
Posted 1 year 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>