how do i add a sidebar to WPfolio Two?
-
I’m trying to add a widgetized sidebar to the WPfolio Two theme. I’ve registered the sidebars using this tutorial https://www.wpbeginner.com/wp-themes/how-to-add-dynamic-widget-ready-sidebars-in-wordpress by pasting the code in the functions of my child theme.
I don’t know where I’m supposed to place this code:
<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?> <div id="secondary" class="widget-area" role="complementary"> <?php dynamic_sidebar( 'sidebar-1' ); ?> </div> <?php endif; ?>
the menu i have now is in the header. but i would prefer it in the sidebar. by default this theme only has widgets in the footer but it seems all the sidebar.php etc., files are there, just not activated.
my website is https://www.lizartlizard.com
if there’s another/better way to do this i’d greatly appreciate any tips!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘how do i add a sidebar to WPfolio Two?’ is closed to new replies.