• bbelack

    (@bbelack)


    Ok. Here is my site. benbelack.com/blog I use the Imprezz theme.

    In the control panel, there is only one sidebar. But, there are two sidebars in the theme.

    Can someone please, PLEASE help me make my second sidebar (the one on the right), dynamic?

    I can’t figure it out, and I really would like to be able to add widgets with ease.

    I’d be happy to send over code, or if you can point me to a tutorial that worked for you — I’d greatly appreciate it.

    Thanks!

Viewing 12 replies - 1 through 12 (of 12 total)
  • esmi

    (@esmi)

    Have a look at your 2 sidebar files. One will have the code that adds the dynamic widgets option, the other won’t. Once you’ve located the relevant block of code, you’ll need to replicate that in your non-dynamic sidebar with a few extra tweaks. Finally you’ll need to edit your functions.php file to, essentially, activate the newly dynamic sidebar.

    If you need help, paste the content of each of the three relevant files in the WordPress specific pastebin at: http://wordpress.pastebin.ca/ then paste the links to those files here.

    Thread Starter bbelack

    (@bbelack)

    Thanks Esmi!!

    I uploaded the index.php file to pastebin here: http://wordpress.pastebin.ca/1386487

    And, the sidebar.php file here:
    http://wordpress.pastebin.ca/1386492

    I’d like the second sidebar in the admin control panel, so I can just add widgets to it right below the twitter emblem and the image that is currently there.

    I think the code referring to that sidebar is “sidebar-right”

    Thanks!

    esmi

    (@esmi)

    Actually I need functions.php – not index.php.

    And I need the code for sidebar-right.php

    Thread Starter bbelack

    (@bbelack)

    Thank you so much esmi!

    Ok. Functions.php is here: http://wordpress.pastebin.ca/1387380

    And, all sidebar code is in sidebar.php and index.php.

    There isn’t a separate php file for it.

    Let me know if you need anything else.

    How to create a dynamic sidebar.

    Step 1: Open functions.php and register it.

    register_sidebar( array( 'name' => 'Sidebar Name', 'id' => 'sidebar-id', 'before_widget' => '<div id="%1$s" class="widget %2$s widget-%2$s"><div class="widget-inside">', 'after_widget' => '</div></div>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>' ) );

    Step 2: Place this where you’d like to show this dynamic sidebar.

    <?php dynamic_sidebar( 'sidebar-id' ); ?>

    Of course, replace Sidebar Name and sidebar-id with something unique.

    Thread Starter bbelack

    (@bbelack)

    Yes, but I have “sidebar left” and sidebar right” right now. I just want to leave the left sidebar alone, and be able to add widgets to the sidebar right underneath the twitter widget and image already in place.

    Thread Starter bbelack

    (@bbelack)

    I got it to work! BUT… How do I align the widgets with the images that are above? Take a look at http://www.benbelack.com/blog

    Thread Starter bbelack

    (@bbelack)

    Actually made a new post… Please take a quick look:

    Thread Starter bbelack

    (@bbelack)

    ldexterldesign

    (@ldexterldesign)

    ldexterldesign

    (@ldexterldesign)

    @greenshady, @bbelack – Hmmm, having a bit of a problem getting this to work guys. Can you offer any help?

    – Does it matter where I drop the functions.php code into the file?

    ldexterldesign

    (@ldexterldesign)

    Sorted*

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Help me make my 2nd sidebar dynamic??’ is closed to new replies.