Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

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

[SOLVED] How to Hard Code Links into Cat Menu


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Jul 1, 2010, 11:52 AM
agcoco
 
3 posts · Jun 2010
I'm attempting to hard code a link into the cat menu. I seached the forum, found what I thought was the proper way to do this, but failed.

Would some please tell me the correct way to do this? Here's what I did:

In bfa_header_config.php I added:

// Category Menu Bar
if ( strpos($header_items,'%cats') !== FALSE OR strpos($header_items,'%cat-center') !== FALSE
OR strpos($header_items,'%cat-right') !== FALSE ) {

ob_start();

echo '<div id="menu2">';

if ( strpos($header_items,"%cat-right") !== FALSE ) {
echo '<ul id="rmenu" class="dropdown clearfix rMenu-hor rMenu-hRight rMenu">' . "\n";
} elseif ( strpos($header_items,"%cat-center") !== FALSE ) {
echo '<table cellpadding="0" cellspacing="0" style="margin: 0 auto"><tr><td align="center">
<ul id="rmenu" class="clearfix rMenu-hor rMenu">' . "\n";
} else {
echo '<ul id="rmenu" class="clearfix rMenu-hor rMenu">' . "\n";
}

// Home Link?

$cat_menu_bar .= '<li><a href="http://crucerosislas.net/galeria-de-videos/">
Galeria de Videos</a></li>';

if ( $bfa_ata['home_cat_menu_bar'] != '' ) {
echo '<li class="cat-item';
if ( function_exists('is_front_page') ) {
if ( is_front_page() OR is_home() ) {
echo ' current-cat';
}
} elseif ( is_home() ) {
echo ' current-cat';
}
echo '"><a href="'; bloginfo('url'); echo '/" title="'; bloginfo('name'); echo '">' .
$bfa_ata['home_cat_menu_bar'] . '</a></li>' . "\n";
}
  #2  
Old Jul 1, 2010, 11:59 AM
juggledad's Avatar
juggledad
 
22,380 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
change
HTML Code:
$cat_menu_bar .= '<li><a href="http://crucerosislas.net/galeria-de-videos/"> 
Galeria de Videos</a></li>';
to
HTML Code:
echo '<li><a href="http://crucerosislas.net/galeria-de-videos/"> 
Galeria de Videos</a></li>';
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Jul 1, 2010, 03:35 PM
agcoco
 
3 posts · Jun 2010
Hours of frustration solved with just a few lines of correct code. Thank you, thank you, thank you for sharing your knowledge and quick reply.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing category order in category menu bar, not in sidebar cat. list paulae Page & Category Menu Bars 13 Mar 30, 2011 06:36 PM
CSS widget: changing il margins to increase type leading between links/hard returns white gazelle Sidebars & Widgets 2 Sep 3, 2010 10:26 AM
Can I hard code some text in a new widget area? horsemansarts Sidebars & Widgets 0 Nov 10, 2009 05:59 PM
How about a "Hard Copy Log" in the ATO? juandrah New Versions, & Updating 4 Jul 18, 2009 09:39 AM
Page to Cat paulharrisjr Atahualpa 3 Wordpress theme 1 Apr 1, 2009 12:23 AM


All times are GMT -6. The time now is 11:12 AM.


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