Forums

Adding link to outside page in menu bar (2 posts)

  1. hilaryamelia
    Member
    Posted 5 months ago #

    I'm trying to add a link to an outside page in the menu bar inside of the header and I'm having a bit of trouble. When I added just a regular html link it worked but it was white and didn't have the roll-over effect. Is there a way to fix that so it looks more consistent?

    http://www.cfentonfilms.com/wordpress

    It's an awesome theme that works really well for my brother's blog. Thank you so much for making it!

  2. cais
    Member
    Posted 5 months ago #

    From the theme, the code is:

    <div id="menu">
    	<ul>
    		<li class="page_item <?php if ( is_home() ) { ?>current_page_item<?php } ?>"><a href="<?php bloginfo('url'); ?>"><?php _e('Home', 'elegant-grunge') ?></a></li>
    		<?php wp_list_pages('title_li=&depth=1'); ?>
    	</ul>
    	<div class="clear"></div>
    </div>

    If you want to add your own "HTML" link at the end of the menu then try this:

    <div id="menu">
    	<ul>
    		<li class="page_item <?php if ( is_home() ) { ?>current_page_item<?php } ?>"><a href="<?php bloginfo('url'); ?>"><?php _e('Home', 'elegant-grunge') ?></a></li>
    		<?php wp_list_pages('title_li=&depth=1'); ?>
    
                      <li><a href="#">Your Link</a></li>
    
    	</ul>
    	<div class="clear"></div>
    </div>

    In the middle of the menu is possible it will just take a few modifications of the code.

Reply

You must log in to post.

About this Topic