Place Custom Widget/Area into Other Primary Framework Location
-
Topic
-
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.
Tagged: widget function framework
Hi Jason,
By default, Widget and Widget Areas can be placed in the default locations available (left, right, above content, below content, etc).
But I’d like to be able to create a widget location that will appear in one of the other Primary Framework Locations, such as themeblvd_fixed_sidebar_before, or themeblvd_header_before, or some other unused location.
I can create a function that adds a div or image.
But can you share how to add a widget/area to a Primary Framework Locations via a function or other method?
Thanks!
(This will be for JS2.0.4)
Hi,
You’d use the themeblvd_add_sidebar_location()
function in your child theme’s functions.php, and then you display that widget area location with themeblvd_display_sidebar()
. This will setup everything with the framework custom widget area system at Appearance > Widget Areas.
See “Examples” here under themeblvd_add_sidebar_location description:
http://dev.themeblvd.com/tutorial/addremove-widget-area-location/
Hi Kenneth,
I put some samples in the Code Snippets on my site, too:
http://wpcourses.askwpgirl.com/code-snippets/
Angela