ThemeShaper Forums » Thematic

[closed]

Move menu to sidebar

(7 posts)
  • Started 3 years ago by oldmankit
  • Latest reply from helgatheviking
  • 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 3 years 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 3 years 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 3 years 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 3 years ago #
  5. What you put in the final version worked great.

    Thanks again!

    Posted 3 years ago #
  6. I used Helga's last code and was able to move the menu. Hoever it ended up next to my primary aside and also overflowing below it. Do you have any recommendations for CSS to make the #access behave more like the #primary or asides? I just want it inside the sidebar box and eventually displaying to the left of the menu instead of below. You can see my work-in-progress here:

    http://sonomacountyhomeless.org/wp/

    Thanks,

    Posted 2 years ago #
  7. you could apply the CSS from #primary and #secondary (probably .main-aside) to #access.

    or you could just create a menu widget and put it in the primary widget area

    Posted 2 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.