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 http://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 http://www.lizartlizard.com
if there’s another/better way to do this i’d greatly appreciate any tips!
I agree that the current state is, that the WPfolio Two theme doesn’t currently support sidebars with widgets. (if one has a sidebar with widgets showing up fine in the default wordpress theme, they disappear the moment one switches to the WPfolio Two theme!)
That being said i think this is a case of us wanting to add a feature to the theme.
I see you’ve already attempted to patch/modify the theme by following the wpbegginner.com.. … how-to-add-widget-sidebars… tutorial.
What do you think of attempting to contact the theme author and tell them what we’re trying to do and see if they can implement this as a new feature?
i have actually already been in contact with the author about other issues which she was very helpful with but i haven’t gotten a reply back about the sidebars. i did see somewhere on the theme how to page that it’s only a matter of changing some php to add the sidebars but i just don’t know where to add the code. it was only as a comment there were no actual instructions on how to do it.
Well, i tried to read up on this some more. looks like the author of this theme used a thematic framework to make their theme. so that’s my progress.
That’s great that you arleady contacted the author about this question.
Ah, it sounds like its unknown at this point how soon the theme author will be able to reply with this.
I did see in reading though, that i think the author mentioned in a blog comment reply to someone else that they have a place in the theme’s github repository for something like “enhancement request”…
Have you looked into this? (or is the “enhancement request” what you already submitted to the author?)
I think the next best step might be to try to hack/patch/modify/enhance it ourselves. I’m trying to learn more about the “thematic” and also about wordpress theme in general, to be able to tell how much of an effort this would be.
What do you think?
thanks. i don’t expect to hear back from the author any time soon as it’s already been several weeks. but i really appreciate you trying it for me! i’ve been looking around studying how to add sidebars but none of the variations i’ve tried have worked. and yes, it’s based on the thematic theme, as is the original wpfolio theme.
- The topic ‘how do i add a sidebar to WPfolio Two?’ is closed to new replies.