Support » Themes and Templates » ok this is the part where i ask for help

  • Resolved yohn1985

    (@yohn1985)


    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 comes

    I 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. ]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter yohn1985

    (@yohn1985)

    lol now i made matters worse, now when i add a new widget to any bar it changes into a box that doesnt let me type into the widget and gives me two options to either delete or close.

    Thread Starter yohn1985

    (@yohn1985)

    so i figured how to add widgets but not the normal way, but i dont know whats causing this or how to fix it or make the widgets appear in the new sidebar

    Try this:
    List. Add a list of your favorite books, movies, or anything you like.
    Link List. Add a collection of your favorite sites, blogs, or web pages.
    Picture. Add a picture from your computer or from somewhere else on the web.
    Text. Add some words to your blog – like a welcome message – with our rich text editor.
    HTML/Javascript. Add third-party functionality or other code to your blog. You can add any Javascript here. Javascript need not be written for beta blogger specifically. To search for Javascripts just Google for them and then copy paste here.
    Adsense. Display AdSense ads targeted to your blog.
    Feed. Add content from a site feed to your blog.
    Labels. Show all the labels of posts in your blog.
    Logo. Choose from a variety of Blogger logos to add to your page.
    Profile. Display information about yourself.
    Blog Archive. Display links to older posts.
    Page Header. Display your blog’s title and description.

    hope that works!

    Thread Starter yohn1985

    (@yohn1985)

    @ajkent i have no idea what you talking about..

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘ok this is the part where i ask for help’ is closed to new replies.