Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Page & Category Menu Bars »

Making menu bar links shorter


  #1  
Old Feb 8, 2009, 03:59 PM
gesman
 
35 posts · Feb 2009
I have pages with long names.
They look ugly on menu bar.
Is there any way to create custom 'slugs' just for the menu bar (pages and categories)?

Gleb
  #2  
Old Feb 8, 2009, 08:46 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
You can do that with custom fields, see http://forum.bytesforall.com/showthread.php?t=149 , the second half of post #7 (the upper part of post #7 is about something different)
  #3  
Old Feb 8, 2009, 08:52 PM
gesman
 
35 posts · Feb 2009
The magic of custom fields, thanks!
(I'll re-copy for others)

In index.php, around line 97-99, change
PHP Code:
             } ?>"><?php 
        
the_title(); 
        if( !
is_single() AND !is_page() ) { ?>
to
PHP Code:
} ?>"><?php 
        
} if (is_page()) { echo get_post_meta($post->ID'long-title'TRUE); } else { the_title(); }
        if( !
is_single() AND !is_page() ) { ?>
Thanks!

PS: would be nice to have this a documented part of theme for both pages and categories.

Gleb

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Atahualpa Page Menu Bar -&gt; BFA Page Menu Bar? bhannemann Page & Category Menu Bars 16 Feb 21, 2011 04:49 AM
Shorter Page Menu Title tkeller Page & Category Menu Bars 3 Jul 13, 2009 09:35 PM
[SOLVED] Page Menu Bar - Strange Space Occurring Between Menu Items NealSchaffer Page & Category Menu Bars 2 Jun 20, 2009 10:18 AM
how to shift the text in menu bar without shifting the entire side bar? collymore Page & Category Menu Bars 10 May 9, 2009 06:29 PM
How to make popup menu links? Hansuke Page & Category Menu Bars 5 Feb 13, 2009 10:49 AM


All times are GMT -6. The time now is 03:49 AM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.