Removing sidebar from Liqourice theme
-
Hi, I have a site I’m rebuilding from a Travel blog I did last year.
http://www.calligraphers-synonymous.com/
I changed the theme to Liquorice but am having trouble configuring it. Goal is to remove the sidebar completely and have the content take the full width. To that end, I renamed sidebar.php to sidebar_OLD.php, and it removed the sidebar from the page. Then i changed#primary-content { clear: both; float: left; margin: 70px 40px 0 0; padding: 0 20px 0 0; width: 622px; }to
#primary-content { clear: both; float: left; margin: 70px 40px 0 0; padding: 0 20px 0 0; width: 100%; }Eureka! The content taking up all the space.
Butttttt now all those original sidebar links are appearing at the bottom.
I figure I need to comment things out in style.css but there is so much stuff in there under the /* =Sidebar and Widgets tag, I’m apprehensive about commenting the huge chunk out. Is there a better way to do this?
Thanks
Dwayne
-
Edit: below is done without modifying any PHP – review output CSS as per below:
Add:
#secondaryContent {display:none;}To discover what CSS is output by your theme, use a web inspection tool such as Firebug: http://getfirebug.com/ , Chrome Inspect Element: https://developers.google.com/chrome-developer-tools/ or Internet Explorer 9+ F12 Dev. Tools: http://msdn.microsoft.com/en-us/library/dd565627(v=vs.85).aspx#csstool
There are others.
When editing CSS, use a Child Theme
http://codex.wordpress.org/Child_Themes
Custom CSS Plugin, or Theme provided custom CSS option.
Edits to parent themes are lost on theme update.Learn CSS: http://www.w3schools.com/css/
Hey dood,
Thanks for the advice!
I’m just in the process of creating a Child theme now actually, saw someone else suggest it in another post and thought I better get on it 🙂
But yea, I’m a Flash coder first and foremost, my CSS experience is lacking :/
Cheers
DwayneHey Seacoast Web Design
I’ve got my Child theme up and running, and there was an update for the theme so i applied it, so now the content has reverted to the original theme style and I have to port my changes over again, all good, I will applie them to the child now.
My style.css in liquorice-child currently has :
/* Theme Name: Liquorice_Child Theme URI: http://www.nudgedesign.ca/wordpress-themes/liquorice Description: Child theme for the Liquorice theme Author: Dwayne Schick Author URI: http://www.calligraphers-synonymous.com/ Template: liquorice Version: 0.1.0 */ @import url("../liquorice/style.css");I’m thinking I need to take individual tags from the parent version of style.css and paste them into my child version, and then modify them there right?
The topic ‘Removing sidebar from Liqourice theme’ is closed to new replies.