i am wanting to add a left hand sidebar to the theme i am going to be using. I want to be able to add widgets to this sidebar. I do not have a clue where to begin doing this or anything. (i would be using a child theme for twenty twelve)
Im a complete noob at this kind of thing.
If it was possible could you please list the code to get it to work and where i need to add this code and what files i would need to copy over
]]>Anybody did it already and has suggestions?
]]>I really have only the vaguest idea about how to do this as I have almost no experience with coding and editing files etc.
I began by adding the new sidebar in functions.php and creating a sidebar-top.php file but the new side bar had then taken the place of the left sidebar.
I think the problem is in adding styles in css but have no idea how to correct it.
]]>Im trying to add a seccond sidebar in Twenty eleven theme, so I went to functions.php and added this
register_sidebar( array(
'name' => __( 'rightsidebar', 'twentyeleven' ),
'id' => 'sidebar-6',
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
'after_widget' => "</aside>",
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>',
) );
in this section
function twentyeleven_widgets_init() {
Now I can see the new sidebar in the widgets area, but I can’t figure how to add it in the index template.
I’ve tryied to add this
<?php get_sidebar(sidebar-6); ?>
but it doesn’t display anything.
Any idea?
Thank you!
]]>This is my project: https://www.jorgenaskfamiliekiropraktor.no/blog/
and i need to add three more sidebars just below the two i have already got there. I want to use a grey banner for “Seneste innlegg”, “F?lg oss p?”, and “Linker”, like have on the two top categories.
Fred
]]>I have actually successfully added a second sidebar into my theme. It comes up on my dashboard fine, I can drag widgets into it, etc. The only problem is when I put it in the index.php file, my posts push the sidebar down. In other words, it isnt fixed like the right sidebar is. I used this code in the index …
<?php include (‘sidebar2.php’); ?>
Wherever I seem to place it, the same thing happens. This should be pretty easy to resolve for someone experienced. PLEASE HELP!
]]>1) if you look at my page ” https://outdooractivitiesforkids.com/chalk-it-up-to-fun/ ” the second widget(similar posts) looses its format ( font style etc) while other widget (top rated posts) retain the format. Now, its here worth mentioning that this theme came with 3 sidebars and ‘top rated widget’ is part of sidebar # 3 ( named sidebar_c in theme). The 4th sidebar ( sidebar_4) is created by ME by duplicating sidebar_c.php and then changing register_sidebars to 4 in fuctions.php.
Here is code I inserted in single.php to show up sidebars.
<div id="sidebar">
<?php include (TEMPLATEPATH . "/sidebar_c.php"); ?>
</div>
<div id="sidebar">
<?php include (TEMPLATEPATH . "/sidebar_4.php"); ?>
</div
Now results are same even if I insert sidebar_4 in sidebar.php. So, I think something need to be declared in style.css or somewhere else for the NEW SIDEBAR, I created i.e. Sidebar_4. Please guide me into the direction…
2) Also you see the widget ( top rated posts) has round cornered box while widget (similar posts) have square corners.
]]>