WordPress.org

Ready to get started?Download WordPress

Forums

Show something instead of title in navbar (2 posts)

  1. mimfrona
    Member
    Posted 5 years ago #

    I have about 9 pages on my site, and many of the pages have long titles, say 5 words or more.

    This is much too long to fit in my navbar at the top. Is there any way I can change the anchor text in the navbar to show just one word (like "intro", "step 1", "step 2", etc) instead of the whole title?

    Here is the code from my navbar:

    <div id="navbar">
    
    	<div class="navbarleft">
    		<?php bloginfo('description'); ?>
    	</div>
    
    	<div class="navbarright">
    		<ul>
    			<?php wp_list_pages('title_li=&depth=1'); ?>
    		</ul>
    	</div>
    
    </div>

    Thanks!

  2. stvwlf
    Member
    Posted 5 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic