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 »

[SOLVED] How to Hard Code Links into Cat Menu


  #1  
Old Jul 1, 2010, 10: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, 10:59 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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, 02: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 05:36 PM
CSS widget: changing il margins to increase type leading between links/hard returns white gazelle Sidebars & Widgets 2 Sep 3, 2010 09:26 AM
Can I hard code some text in a new widget area? horsemansarts Sidebars & Widgets 0 Nov 10, 2009 04:59 PM
How about a "Hard Copy Log" in the ATO? juandrah New Versions, & Updating 4 Jul 18, 2009 08:39 AM
Page to Cat paulharrisjr Atahualpa 3 Wordpress theme 1 Mar 31, 2009 11:23 PM


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


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