Hi Im’ running the latest wordpress.
Website: awadphotography.com
Theme: Snapshot premium (latest)
Plugins:Page builder
Was just wondering if there’s a way to enable the sidebar through this theme?
I tried adding this code as advised here:
http://codex.wordpress.org/Widgetizing_Themes
/**
* Register our sidebars and widgetized areas.
*
*/
function arphabet_widgets_init() {
register_sidebar( array(
‘name’ => ‘Home right sidebar’,
‘id’ => ‘home_right_1’,
‘before_widget’ => ”,
‘after_widget’ => ”,
‘before_title’ => ”,
‘after_title’ => ”,
) );
}
add_action( ‘widgets_init’, ‘arphabet_widgets_init’ );
That did add the “Home right sidebar” widget area to the “widgets” under settings.
Howefver no matter what widgets i add to that widget area it won’t show up anywhere on my website.
What i would like to do utilimitally is add a widget in the top right corner of my website.
Thanks
Hi Elie
Please ensure that you’re working in a child theme when making these kind of customisations. After registering your widget area in the functions.php file of your child theme you’ll still need to render it.
Something like that. You could try inserting that after line 87 in single.php which should also be in your child theme.