Getting the sidebar on every page / post?
-
Hi, I’m new to self hosting. Had a WP.com blog for 4 years but am on a sharp learning curve regarding css and customisation. Is there anyone who can help, please…?
I’m using theme TwentyEleven.
I found the stylesheet under Appearance: Editor.
There, I found the section on structure.
Within that I found this reference to the sidebar:/* Right Content */
.left-sidebar #primary {
float: right;
margin: 0 0 0 -26.4%;
width: 100%;
}
.left-sidebar #content {
margin: 0 7.6% 0 34%;
width: 58.4%;
}
.left-sidebar #secondary {
float: left;
margin-left: 7.6%;
margin-right: 0;
width: 18.8%;
}At present the sidebar is only showing on the Home Page.
What do I need to do to get it to show up on every single page / archive / etc? Do I input some additional code in that little chunk of html I pasted above?Thank you!
-
This explains how to do that:
http://www.transformationpowertools.com/wordpress/twenty-eleven-sidebar-on-single-posts-and-pages
You definitely need to create a child theme before making any changes to a default theme – see:
you should be able to find further information when you use the forum search;
if you don’t get my tutorial to work, or would rather use a plugin, consider to use the plugin I mention at the end:
http://wordpress.org/extend/plugins/twenty-eleven-theme-extensions/Thank you WPyogi and alchymyth. Aplologies for the delay in responding but I have been working on your suggestions.
I have for the time being opted for the plugin and this has given me the sidebar I want. But I would gradually like to learn about CSS. I’ve now created a child theme as per your advice and it’s saved on my host server but it seems to be only 4KB…? Does that sound right?
If I wanted to use code to customise the theme, would I add the code to this child theme rather than to the stylesheet under appearance: edit on my blog dashboard? And somehow the child theme would override this…?
Thank you – again!
- The topic ‘Getting the sidebar on every page / post?’ is closed to new replies.