Intrepidity WP menu hack

I was struggling with the intrepidity WordPress theme. Where to find the code for the menu. Normally you will find the menu in the Header.php of your theme or you can add the menu item through the admin panel. But this is not possible with the Intrepidity theme.

To add a external link to the menu of the Intrepidity theme you have to adjust the  footer.php. Why the footer.php ? This has something to do with SEO friendly. Search engines will look at last in the footer. So to content will be scanned first.

Search in the Footer.php for;

<div id=“globalnav”>

I used the code below to add my Photo Album to the menu.

<li><a href=“http://eosfotografie.nl/foto-album/”>Foto Albums</a></li>

Place the above code after the <?php endif; ?>

Example

<?php if(get_option(‘tbf1_nav_hide_home’) != ‘yes’) : ?>
<li><a href=“<?php echo get_option(‘home’); ?>” rel=“nofollow”><?php _e(‘Home’)?></a></li>
<?php endif; ?>
<li><a href=“http://eosfotografie.nl/flickr/”>Foto Albums</a></li>
<?php wp_list_pages(‘title_li=&sort_column=menu_order&exclude=’.get_option(
‘tbf1_exclude_pages’)); ?>

 

.

Tags: external link, intrepidity, theme, Wordpress

2 Reacties

Reactie plaatsen
Je e-mailadres wordt niet gepubliceerd. Verplichte velden zijn gemarkeerd met *

*