ThemeShaper Forums » Thematic

[closed]

Place widget area next to nav (within #access?)

(5 posts)
  • Started 2 years ago by roowilliams
  • Latest reply from helgatheviking
  • This topic is not resolved
  1. Hi there,

    I would like to place a search widget next to thematic's navigation, which I think would need to be in the #access div, but there is no action hooks in this area to make use of apart from underneath or over the navigation. What would be the best way to insert a widget here? Please see a pic of what I mean here (the green area is where I would like to add the search function)

    http://www.roowilliams.com/nav.jpg

    Thank you

    - Roo

    Posted 2 years ago #
  2. the new thematic way
    http://forums.themeshaper.com/topic/something-new-bout-widgetized-areas#post-6660

    or the regular WP way

    http://forums.themeshaper.com/topic/widgets-in-the-header

    there are no hooks in #access, but it is on priority 9, you could put your widget on priority 10 and float them next to each other.

    Posted 2 years ago #
  3. Thank you Helga... and a separate thank you for all the work you do on this forum - your responses have already answered many a question I have had during my child theme development!

    - Roo

    Posted 2 years ago #
  4. Hi Helga,

    Would you please expand on adding the widget on priority 10 and moving it next to access? I successfully made a new widget area as per Chris' code on 'the new thematic way' link, but after messing with the code and trying to make my own widget area (floated next to access as you suggest), I am having trouble understanding how the widget gets positioned within the flow. The priority thing is new to me, and this is my first theme; I am having trouble getting my head around it!

    Posted 2 years ago #
  5. priority is just like a traffic cop. you can add a 100 functions to the same hook and WP will just run them all as it finds them unless you get out your orange flag and tell them there to go.

    i did forget the CSS for #access is full width... it is the div class="menu" inside of it that limits the menu to 960px wide and then floats it in the middle.

    before i launch into the different ways to achieve this why don't you see if this won't do what you need?
    http://forums.themeshaper.com/topic/add-search-bar-to-thematic-using-override

    you might not need a widget at all.

    Posted 2 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.