New action hook before content-main but after sidebar2?

  • TommyNation

    #6426

    Hi again guys!

    I am tinkering with my “feature banner ad” and layout on TommyNation.com and got an idea:

    Wouldn’t it be nice if I was able to place the featured top ad banner just above the main content div, below the menu, but so that the sidebars would go all up to the menu, while only the main area would get pushed down? That way the white space on either side of the banner wouldn’t be so … empty 🙂

    But I couldn’t get this to work with any of the existing action hooks in graphene for some reason, so I inspected the code and found that the action hook for “before content-main” goes before “sidebar 2”, while logically to make this work, it should probably go after sidebar2, before content-main and sidebar1, right?

    Would it be possible to make an action hook for this in a future release?

    Here’s how it looks with the before content main hook activated:

    <div id="content" class="clearfix hfeed">
    <div id="graphene-dynamic-widget-graphene_before_content-main" class="graphene-dynamic-widget">
    <div id="sidebar2" class="sidebar grid_4">
    <div id="content-main" class="clearfix grid_8">
    <div id="sidebar1" class="sidebar grid_4">
    Admin

    Syahir Hakim

    #34315

    What about using the graphene_top_content hook?

    TommyNation

    #34316

    Why didn’t I try that one before?!

    It works perfectly. Thanks so much 🙂

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.