ThemeShaper Forums » Thematic

Move menu to sidebar

(5 posts)
  • Started 1 year ago by oldmankit
  • Latest reply from oldmankit
  • This topic is resolved

Tags:

  1. I am sorry if this has been answered elsewhere. I did have a look...

    I'd like to move the superfish menu to my sidebar. I've had a quick look to see how to do this in the functions.php, page.php and content-extensions.php files, but nothing jumps out.

    BTW, I just entered my logon details at http://suzetteklierocks.appspot.com/themeshaper.com/forums/, without realising it wasn't the usual themeshaper forum. They look pretty damn similar. Have my login credentials been stolen by an imposter? What's up with that address?

    Posted 1 year ago #
  2. i believe all the menu info is in header-extensions.php

    don't know anything about that link, but moving the menu is just a manner of removing thematic_access() and adding it somewhere else.

    function move_access(){
      remove_action('thematic_header,'thematic_access',9);
      add_action('thematic_abovemainasides','move_access');
    }
    add_action('init','move_access');

    trying to condense my code... if that doesn't work then pull the thematic_abovemainasides line out of the function and on to its own line.

    drop the whole thing into your Child's functions.php

    Posted 1 year ago #
  3. I can't tell you how much I appreciate that. Here is what I used in the end, to get the menu between primary and secondary menus (BTW, there was a missing ' in the original code.

    function move_access(){
      remove_action('thematic_header','thematic_access',9);
      add_action('thematic_abovemainasides','move_access');
    }
    add_action('init','move_access');
    
    add_action('thematic_betweenmainasides','thematic_access',9);
    Posted 1 year ago #
  4. sometimes i type too fast. don't forget to mark the topic as resolved.

    function move_access(){
      remove_action('thematic_header','thematic_access',9);
    }
    add_action('init','move_access');
    add_action('thematic_betweenmainasides','thematic_access');

    i wasn't sure if :
    add_action('thematic_abovemainasides','move_access');
    was doing anything... i don't think you can reference a function within itself?

    also you don't need the priority on thematic_betweenmainasides unless you are adding other functions there. the priority is for when you are adding more than one function to the same hook. it established their queue order.

    cheers.

    Posted 1 year ago #
  5. What you put in the final version worked great.

    Thanks again!

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.