Adding Widget Area to a Single Page
I keep messing this up, so I figured I'd ask.
Here's what I'm trying to do: I want to have a page that shows the page content, as the page template normally would. Right after the content, there will be a widget area. While I imagine just about any widget could be used here, I intend to use the Genesis Responsive slider to show and scroll through several subpages' worth of content without having to navigate to them.
Ideally, this will be a full width page (no sidebars).
I can't seem to get a custom template to work for this. :bang:
Help? Pretty please?
Related to your other post - this is the part where you;d use the eleven40 widget tute to add the widget area with a hook. ;)
Or... if you made a new page template, add the widget area right in the template. Can also use a hook here.
I got it. Well, it works, but I figured I post the code here for someone else's benefit, as well as your vetting for whatever code compliances and compatibilities I may have missed :razz:
Here's the template (I called mine page_widgetized.php):
Of course, this need to be registered in functions.php :
It's been assigned a class, so that the CSS is (with whatever width value works for user):
:clap: Pretty snazzy - move to the head of the class. ;)
|All times are GMT -5. The time now is 11:19 AM.|
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.