Add custom Widget Sidebar
Hi,
I bought the vatage Theme yesterday.
For my community I need to have another Sidebar.
I read throughthe WP Codex and followed the instructions, but I didn´t manage to add a Sidebar.
At first I set up another teplate. Therefor I copied the page.php and renamed it to “buddypress.php”. I added Template Name: buddypresss after the php tag.
I changed get_sidebar(); to get_sidebar(‘buddy’) and tried different methodes to bring my instrallation to show another sidebar.
I saved it to the vantage/template folder. I was able to select it in the Template drop down then.
I registered it in the functions.php. The widget area shows up in “Dashboard->Widgets” but I was not able to display it on the page I wanted.
Let me say that I´m a WP noob. So I don´t know what to do now to get on with that.
This is our free support forum. Replies can take several days.
Need fast email support? Get SiteOrigin Premium
Replies
5Forgot ..I also copied the sidebar.php and renamed it to sidebar-buddy.php where i call dynamic_sidebar( ‘buddy’ ) in line 13 then instead of the normal one.
Hi. Please don’t forget that any files you change must be contained within a child theme so they aren’t overwritten the next time you update Vantage.
That sounds fine. Where have you included sidebar-buddy.php though? That’s just a template part, not a complete template file.
Hmm, nowhere I guess. I tired it with “include (TEMPLATEPATH . ‘/sidebar-buddy.php’)” but without efford.
..in buddypress.php of course…
Please send me a copy of the edited/new files and buddpress.php to [email protected] and I’ll take a look.
Replies on this thread are closed.
Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.