Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

How to change 'home' in top nav in Autofocus pro theme? WordPress

  • SOLVED

Hello,

I'd like to rename 'home' as 'work' in the top right nav the in AF+pro theme. Any advise would be very helpful... not sure where the code for that will live, have looked around but none of my ideas so far have got me to the right place.

Thanks

Tim

www.mkmd.co.uk

Answers (5)

2011-01-12

Nilesh shiragave answers:

Open functions.php from your autofocus theme folder in an text editor.

search for following php function inside that functions.php file


function sandbox_globalnav() {
echo '<div id="menu"><ul><li class="page_item"><a href="'. get_settings('home') .'/" title="'. get_bloginfo('name') .'" rel="home">Home</a></li>';
$menu = wp_list_pages('title_li=&sort_column=menu_order&echo=0'); // Params for the page list in header.php
echo str_replace(array("\r", "\n", "\t"), '', $menu);
echo '<li class="page_item"><a href="'. get_bloginfo_rss('rss2_url') .'">RSS</a></li></ul></div>';
}


just replace above code with this one



function sandbox_globalnav() {
echo '<div id="menu"><ul><li class="page_item"><a href="'. get_settings('home') .'/" title="'. get_bloginfo('name') .'" rel="Work">Work</a></li>';
$menu = wp_list_pages('title_li=&sort_column=menu_order&echo=0'); // Params for the page list in header.php
echo str_replace(array("\r", "\n", "\t"), '', $menu);
echo '<li class="page_item"><a href="'. get_bloginfo_rss('rss2_url') .'">RSS</a></li></ul></div>';
}


Tim Godwin comments:

Looked like the best answer, but I can't find a sandbox_globalnav section of code in either the functions.php file in either Autofocus+ Pro or Thematic folders... any ideas?

Thanks

Tim


Nilesh shiragave comments:

hi
open <strong>thematic-functions.php</strong> file search for following code


function childtheme_menu_args($args) {
$args = array(
'show_home' => 'Home',
'sort_column' => 'menu_order',
'menu_class' => 'menu',
'echo' => false
);
return $args;
}


and change this to

function childtheme_menu_args($args) {
$args = array(
'show_home' => 'Work',
'sort_column' => 'menu_order',
'menu_class' => 'menu',
'echo' => false
);
return $args;
}


I just changed <strong>"Home"</strong> to <strong>"Work"</strong>

2011-01-12

John Cotton answers:

It looks a bit like a menu item - have you looked under Appearance > Menus on the dashboard?

2011-01-12

Victor Teixeira answers:

Have you looked into the header.php file?

2011-01-12

Espreson Media answers:

Find function sandbox_globalnav() in your theme functions.php and replace with the below code:

function sandbox_globalnav() {
echo '<div id="menu"><ul><li class="page_item"><a href="'. get_settings('home') .'/" title="'. get_bloginfo('name') .'" rel="home">Work</a></li>';
$menu = wp_list_pages('title_li=&sort_column=menu_order&echo=0'); // Params for the page list in header.php
echo str_replace(array("\r", "\n", "\t"), '', $menu);
echo '<li class="page_item"><a href="'. get_bloginfo_rss('rss2_url') .'">RSS</a></li></ul></div>';
}

2011-01-13

hemant hapani answers:

Please login in admin.

And go to Appearance > Menus and remove home menu.