ok this is the part where i ask for help
-
Hi guys i hope someone can help me with this, since i am pulling my hair out, i have been trying for 3 days and nothing, i am sure it is really simple i cant see it.
So here it comesI got a site with a template from buddypress fishbook, i modified the template to my liking, but there is a space on the right unused that would be perfect for a sidebar, i have been trying to add the sidebar but nothing.
Ok so this is what i did, i created
rightsidebar.php<div id="rightsidebar"> <?php dynamic_sidebar( 'rightsidebar' ) ?> </div><!-- #sidebar -->
then put it in my functions.php
<?php add_action( 'widgets_init', 'bpcol_register_sidebars' ); function bpcol_register_sidebars() { register_sidebar( array( 'id' => 'rightsidebar', 'name' => 'rightsidebar', 'before_widget' => '<div id="%1$s" class="widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<h3 class="widgettitle">', 'after_title' => '</h3>' ) ); } ?>
then in my index.php
<?php locate_template( array( 'leftsidebar.php' ), true ) ?>
and finally style.cc
[Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]
Sorry about the longgg post, but hopefully someone can help with this.
this is of course a child, the index file i took from buddypress default and put it in the same folder as the theme file, now with the functions i just have the one snippet.oh the website name is city kaster
Note:
I can see the sidebar in the widgets and add widgets to it but nothing shows up on the site.Thanks in advance
[ Please do not bump, it’s not permitted here. ]
- The topic ‘ok this is the part where i ask for help’ is closed to new replies.