Creating new widget area below home featured boxes in Outreach

Community Forums Forums Design Tips and Tricks Creating new widget area below home featured boxes in Outreach

This topic is: resolved

This topic contains 7 replies, has 2 voices, and was last updated by  braddalton 1 year, 1 month ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #51001

    MakeYourselfVisible
    Participant
    Post count: 33

    Hi,

    I’m trying to create a new widget area between the 4 featured boxes and the sub-footer widget area on the Outreach homepage but I can’t figure out what hook to use. I’m able to add the area below the header following the instructions here (http://philipgledhill.co.uk/genesis-framework-widget-area/)

    If anyone could direct me towards how to add it below the featured boxes, that would be much appreciated!

    Thanks,
    David

    #51004

    braddalton
    Participant
    Post count: 9212

    Try this David:

    Change the hook position if needed.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #51013

    MakeYourselfVisible
    Participant
    Post count: 33

    Hi Brad, thanks for the help! That put the widget area after the home page slider and before the home page widgets (which could work) but ideally I’d want to place it after the home page widgets.

    Do I have to change the ‘genesis_after_content_sidebar_wrap’ to something else? I’m kind of n00b but it looks like it’s after the whole wrap and before div #home-sections.

    Thanks,
    David

    #51014

    braddalton
    Participant
    Post count: 9212

    Yes, All you need to do is change the hook from[php]genesis_after_content_sidebar_wrap[/php] to another lower down like [php]genesis_before_footer[/php]


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #51017

    MakeYourselfVisible
    Participant
    Post count: 33

    That worked :D Thanks so much Brad. I had to place your function above the sub-footer function which was also using the genesis_before_footer hook but once I did that it worked like a charm!

    Also added in the styles from Brian Gardner’s tutorial and changed .welcome-text to .home-widget and now it’s styling as well :)

    .home-widget {
        border-bottom: double #ddd;
        border-top: double #ddd;
        font-family: 'Lora', serif;
        font-size: 30px;
        line-height: 1.0;
        overflow: hidden;
        padding: 25px 0;
        text-align: center;
    }
    
    .home-widget p {
        font-size: inherit;
        line-height: 1.0;
        margin: 0;
    }

    Appreciate your help!
    David

    #51060

    braddalton
    Participant
    Post count: 9212

    i see, in the functions file? that would give it a higher priority which you can also do using the third parameter. Good stuff!


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #51208

    MakeYourselfVisible
    Participant
    Post count: 33

    Yep, in funcitons.php. I definitely need to do some Genesis tutorials on hooks, but that worked in solving the current problem at hand :) Thanks Brad!

    #51213

    braddalton
    Participant
    Post count: 9212

    Action Hooks are the easiest part of PHP with Genesis.

    They’re simply a position in the Genesis templates files.

    You use them in your child theme to hook in widgets and content to a specific hook location.

    There’s nothing more to them.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

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

You must be logged in to reply to this topic.