logo
Ask your WordPress questions! Pay money and get answers fast! (more info)

Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

If the asker does not get an answer then they have 10 days to request a refund.

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

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

This question has been answered.

Tim Godwin | 01/12/11 at 10:02am Edit


(5) Possible Answers Submitted...

See a chronological view of answers?

Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

  • avatar
    Last edited:
    01/12/11
    10:07am
    John Cotton says:

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

  • avatar
    Last edited:
    01/12/11
    10:08am
    Victor Teixeira says:

    Have you looked into the header.php file?

  • avatar
    Last edited:
    01/13/11
    5:18am
    Nilesh shiragave says:

    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>';
    }

    Previous versions of this answer: 01/12/11 at 11:25am

    • 01/13/11 4:31am

      Tim Godwin says:

      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

    • 01/13/11 5:01am

      Nilesh shiragave says:

      hi
      open thematic-functions.php 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 "Home" to "Work"

  • avatar
    Last edited:
    01/12/11
    10:28am
    Sarbartha Das says:

    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>';
    }

    Previous versions of this answer: 01/12/11 at 10:28am | 01/12/11 at 10:28am

  • avatar
    Last edited:
    01/12/11
    10:10pm
    hemant hapani says:

    Please login in admin.

    And go to Appearance > Menus and remove home menu.

This question has expired.





Current status of this question: Completed



Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

If the asker does not get an answer then they have 10 days to request a refund.