Community Forums › Forums › Archived Forums › Design Tips and Tricks › Adding New Widget Areas to Metric
Tagged: metric adding widget areas
- This topic has 11 replies, 2 voices, and was last updated 13 years, 2 months ago by
wp guy.
-
AuthorPosts
-
March 13, 2013 at 1:05 pm #25906
wp guy
MemberFirst, 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.
March 13, 2013 at 8:07 pm #26097Brad Dalton
ParticipantFind 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.
March 13, 2013 at 8:22 pm #26099wp guy
MemberI looked through StudioPress but couldn't find any theme with 4 content areas in a row.
March 13, 2013 at 8:42 pm #26103Brad Dalton
ParticipantYou could use content column classes as another option. http://www.billerickson.net/using-column-classes/
March 13, 2013 at 8:54 pm #26105wp guy
MemberGreat 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.
March 13, 2013 at 8:57 pm #26107Brad Dalton
ParticipantMarch 13, 2013 at 9:05 pm #26108Brad Dalton
ParticipantYou can use any of these code snippets and modify them http://designsbynickthegeek.com/tutorials/add-widgeted-sidebar
March 13, 2013 at 9:20 pm #26113wp guy
MemberThe 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.
March 13, 2013 at 9:27 pm #26117Brad Dalton
ParticipantUsing this map, what hook location? http://genesistutorials.com/visual-hook-guide/
Use the code from this snippet
After Post Subscribe Boxadd_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>'; }}Change the hook if needed.
March 14, 2013 at 7:35 am #26160wp guy
MemberOk, 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?
March 14, 2013 at 9:38 pm #26959Brad Dalton
ParticipantOk. Simply change the hook in the above code snippet and also register a widget. Grab the code using the link above to Nicks site.
March 15, 2013 at 5:28 am #27090wp guy
MemberThank you!
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.