Genesis after content hook behavior

Community Forums Forums Design Tips and Tricks Genesis after content hook behavior

This topic is: not resolved

Tagged: 

This topic contains 5 replies, has 2 voices, and was last updated by  SoZo 1 year, 6 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #17371

    nver
    Participant
    Post count: 2

    My goal is to wrap a div around the #content div or have a div inside of it, like this:

    <div id=”content-wrap”>
    <div id=”content”>…</div>
    </div>

    OR

    <div id=”content”>
    <div id=”content-inside”>… rest of the content …</div>
    </div>

    I tried to use the genesis_before_content/genesis_after_content to wrap #content-wrap div around the #content div, but the #sidebar div always ends up inside my #content-wrap div.

    For the #content-inside div I tried to use genesis_before_post/genesis_after_post, which of course is not a good solution for home and archive pages, because it wraps every single post.

    Any ideas on this one?

    Thanks,

    Norbert

     

    • This topic was modified 1 year, 6 months ago by  nickthegeek.
    • This topic was modified 1 year, 6 months ago by  nickthegeek.
    #17425

    SoZo
    Moderator
    Post count: 1573

    Did you try adding priority numbers?


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    #17497

    nver
    Participant
    Post count: 2

    Thanks for your reply!

    I’m not sure what those are. Could give me sample or an example, please?

    #17499

    SoZo
    Moderator
    Post count: 1573

    The 5 in this string is a priority number. [php]add_action( ‘genesis_before_footer’, ‘include_bottom_widgets’, 5 );[/php]
    You can read more about add_action parameters here.


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    #17557

    nver
    Participant
    Post count: 2

    MAGIC!!!

    I didn’t know about priority numbers before. they sure do work.

    Thanks so much!!

    #17599

    SoZo
    Moderator
    Post count: 1573

    You’re welcome :)


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

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

The topic ‘Genesis after content hook behavior’ is closed to new replies.