• Hello!
    I am using twentyevelen as my theme and im confused to 100% atm.

    I’m trying to add “widgets/sidebars” to my theme so i can have diffrent sections insted of one large sidebar with all content in i like to have polls and login in one sidebar and poll in another sidebar but i have no clue on how to do this what so ever.

    However i have managed to at least got 2 widgets to show up and if you check out my site you can see how it looks like, you will see that this is not really what i want:
    http://www.tuxxen.com

    I have been trying to get this to work now for 4-5 days but i become more and more confused by each day.

    my php skills is very poor i only know how to copy/paste.
    I guess i need to call for the secound widget/sidebar in my index.php but what would the code be? right now im using:

    <div id=”secondary” class=”widget-area” role=”complementary”>
    <?php if ( ! dynamic_sidebar( ‘sidebar-1’ ) ) : ?>

    <aside id=”archives” class=”widget”>
    <h3 class=”widget-title”><?php _e( ‘Archives’, ‘twentyeleven’ ); ?></h3>

      <?php wp_get_archives( array( ‘type’ => ‘monthly’ ) ); ?>

    </aside>

    <aside id=”meta” class=”widget”>
    <h3 class=”widget-title”><?php _e( ‘Meta’, ‘twentyeleven’ ); ?></h3>

      <?php wp_register(); ?>

    • <?php wp_loginout(); ?>
    • <?php wp_meta(); ?>

    </aside>

    <?php endif; // end sidebar widget area ?>
    </div><!– #secondary .widget-area –>

    This is just so i can see something to show up on my site.
    Any tips are more then welcome!

Viewing 12 replies - 1 through 12 (of 12 total)
  • Do you want a left and right sidebar?

    Thread Starter tuxxen

    (@tuxxen)

    Do you want a left and right sidebar?

    I only want a right sidebar for now.

    what i want is to have all bars underneath each other on the right side
    /tuxxen

    You drag and drop the widgets to the sidebar in the widget menu. If the widgets you want aren’t there, install them. Remember to click ‘save’ at the bottom of the widget area before you close it.

    I just read your post again… Perhaps there’s a plug-in that let’s you have more than one sidebar if your theme doesn’t already.

    Hope I’ve helped.

    Thread Starter tuxxen

    (@tuxxen)

    You drag and drop the widgets to the sidebar in the widget menu. If the widgets you want aren’t there, install them. Remember to click ‘save’ at the bottom of the widget area before you close it.

    This i know already but thanks for pointing it out.

    maby i should tell you, i use my own layout that i have “integrated” with wordpress and i think the problem begins here, there are 2 sidebars installed by the defult twenty eleven theme and i can use them both right now but when i drag for exemple theme my login (from a plugin) to my secound sidebar it dosent show up what show up is the same stuff as in the first widget.

    so there must be something wrong with the code i have put in inside index.php where i want my secound sidebar to show up.

    I just read your post again… Perhaps there’s a plug-in that let’s you have more than one sidebar if your theme doesn’t already.

    Hope I’ve helped.

    Does this really work when i have my own theme/layout integrated to workdpress? i think i still need to fix some code, problem is i have no clue on what to do since im a complete noob =)

    /tuxxen

    Yeah, if it’s your own theme it’s got to be widget ready. I’m sure wordpress has help on how to do this.

    Thread Starter tuxxen

    (@tuxxen)

    Wow i cant belive this i actually found the problem

    this need to be changed:
    <?php if ( ! dynamic_sidebar( ‘sidebar-1’ ) ) : ?>

    to:

    <?php if ( ! dynamic_sidebar( ‘sidebar-2‘ ) ) : ?>

    Now my login show up.

    now i only need to figure out how to add more sidebars and how to change the order of them 🙂 tips on this would be awesome!

    Thread Starter tuxxen

    (@tuxxen)

    Yeah, if it’s your own theme it’s got to be widget ready. I’m sure wordpress has help on how to do this.

    i will see if i can find plugin that adds more sidebars, thank you so much for you’re replys it really helps!

    /tuxxen

    Thread Starter tuxxen

    (@tuxxen)

    hmm i think i manually need to add new sidebars, someone here must know how this is done? 🙂

    /tuxxen

    If you would like to add additional side bar to display your widget which is separated with the original 1, you need to define a new sidebar in function.php.

    If you do not know where to place, simple click ctrl+f (windows) or cmd+f(Mac), find ‘sidebar’, find the coding where the theme define sidebar in function.php. Copy and paste the whole sidebar script, define a new name for it by editing the old name. Then update.

    The new sidebar should appear in widgets page now

    [link removed]

    gREAT suggestion

    Thread Starter tuxxen

    (@tuxxen)

    If you would like to add additional side bar to display your widget which is separated with the original 1, you need to define a new sidebar in function.php.

    If you do not know where to place, simple click ctrl+f (windows) or cmd+f(Mac), find ‘sidebar’, find the coding where the theme define sidebar in function.php. Copy and paste the whole sidebar script, define a new name for it by editing the old name. Then update.

    The new sidebar should appear in widgets page now

    I dont know why but when i upload functions.php to my child theme everything stop working, my site dosent show up and my admin area dosent work and i have not edit the function.php its the orginal one from the parent theme.

    Thread Starter tuxxen

    (@tuxxen)

    I have a new question, where do i edit the file thats under under this tab in wordpress: pages – All pages?

    I have a page there called (calendar) that i need to edit.

    /tuxxen

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

The topic ‘Widgets questions’ is closed to new replies.