Adding New Widget Areas to Metric

Community Forums Forums Design Tips and Tricks Adding New Widget Areas to Metric

This topic is: not resolved

This topic contains 11 replies, has 2 voices, and was last updated by  wp guy 1 year, 6 months ago.

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #25906

    wp guy
    Participant
    Post count: 232

    First, let me say that this place has been invaluable to me – the free advice is insane. I try to give back where I can but I can do more with CSS than PHP. I know…I know…there are tutorials on how to register widget areas and style them but I’m looking for a tad bit more hand holding.

    Using Metric, I need 4 widget areas (in a row) below Home Top Right and Left. Basically, I need to add 1 widget area there. Then below those 4 widget areas I need one more widget area that will be full site width.

    Hand holding greatly appreciated.

    #26097

    braddalton
    Participant
    Post count: 9769

    Find a child theme does already uses this layout and copy the PHP into your home.php file. You’ll also need to modify the CSS for the classes generated by that code based on your themes width.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #26099

    wp guy
    Participant
    Post count: 232

    I looked through StudioPress but couldn’t find any theme with 4 content areas in a row.

    #26103

    braddalton
    Participant
    Post count: 9769

    You could use content column classes as another option. http://www.billerickson.net/using-column-classes/


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #26105

    wp guy
    Participant
    Post count: 232

    Great idea! However, that solves my issue for the 4 widget areas but I still just need to add one widget area in Metric below the three content areas. If I can get that accomplished I’ll be set.

    #26107

    braddalton
    Participant
    Post count: 9769

    Which hook location? Which conditional tag? Home page only?


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #26108

    braddalton
    Participant
    Post count: 9769

    You can use any of these code snippets and modify them http://designsbynickthegeek.com/tutorials/add-widgeted-sidebar


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #26113

    wp guy
    Participant
    Post count: 232

    The location on Metric would be a new content area below Home Middle 1, 2 and 3 and above the footer. And yes, only on the home page.

    #26117

    braddalton
    Participant
    Post count: 9769

    Using this map, what hook location? http://genesistutorials.com/visual-hook-guide/

    http://designsbynickthegeek.com/tutorials/add-widgeted-sidebar

    Use the code from this snippet
    After Post Subscribe Box
    [php]
    add_action( ‘genesis_after_post_content’, ‘child_after_post_box’ );
    /** Loads a new sidebar after the post on single pages*/
    function child_after_post_box() { if( is_home() ) {
    echo ‘<div class="after-post-box">’;
    dynamic_sidebar( ‘after-post-box’ );
    echo ‘</div>’;
    }}
    [/php]

    Change the hook if needed.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #26160

    wp guy
    Participant
    Post count: 232

    Ok, I installed the visual hook plugin…wow – fantastic tool. For Metric, I want the new content area to be below the three content areas: Home Middle 1, 2, 3 and before the footer. Based on the visual guide I guess it would go genesis_before_footer?

    #26959

    braddalton
    Participant
    Post count: 9769

    Ok. Simply change the hook in the above code snippet and also register a widget. Grab the code using the link above to Nicks site.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #27090

    wp guy
    Participant
    Post count: 232

    Thank you!

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

You must be logged in to reply to this topic.