Hi,
You can try this css:
.page-id-55 .entry-content {
padding-right:0;
}
.page-id-55 .tertiary {
display:none;
}
This codes is applied only to the post #55 which in the current case is your home page. It removes the padding on the right where the sidebar was and it makes the sidebar disappear. You’ll need a custom css plugin or child theme to avoid breaking compatibility with future updates.
Hope this helps
Thread Starter
satrap
(@satrap)
Hi Thimothe,
Thanks very much for taking time to look at the site and going through all the trouble to find the solution for me. I really appreciate it.
The css code worked wonderfully. Thanks for that.
While I have you here, the only problem I have now is the alignment of the content in relation to the top menu bar and the footer line (green).
You can see it on the homepage now.
The text isn’t centered. It seems its way to the right side. How do I get that to align center?…
This problem was there even before I added your CSS code. But I guess when the sidebar is there, its less noticeable, but with the sidebar being gone, it looks awkward.
I should mention that I did change the original CSS of the 2013 theme, changing the width of the menu bar and the footer line. Perhaps that may be the issue?…
Thanks in advance.
Thread Starter
satrap
(@satrap)
Ok, so I just realized what causes the issue. Th original CSS of the 2013 had the menu bar and footer line/bar with a max-width of 1600 px but I changed it to be 1200 px. I am assuming I will need to move the content a bit to the left using CSS, but not sure where and how to do it. I would appreciate any help. Thanks.
Are you aware that all of your changes to theme files will be erased when WP is updated? And that you should have an unmodified copy of the default theme for troubleshooting purposes?
You should be using a child theme to modify the theme –
http://codex.wordpress.org/Child_Themes
Hi,
There are a few CSS changes you’ll need to do and as WPyogi mentionned, they should be changed in Custom CSS or a child-theme.
#primary {
max-width:1200px;
margin:auto;
padding:0 20px;
}
These values were copied from #masthead so if you change the width of one, you’ll need to change the width of the other. Best way would be make a CSS declaration to modify both #masthead and #primary together.
#primary .entry-content {
margin-left:0;
padding-left:0;
}
This will make your content align to the left side of your container. You might want to change the padding-right to tweak the placement near the sidebar.
Keep in mind that this code is general and will apply to all of your pages. If you want to apply it only for the homepage, refer to my previous code for declaring CSS only for the home page.
I hope this helps.
Thread Starter
satrap
(@satrap)
Hi Thimothe,
Thanks again for taking time to help.
I tried the new cod but it doesn’t seem to be doing anything. After adding this to the end of my CSS file, do I need to remove any code (perhaps the original code i,e…
#primary {
max-width:1200px;
margin:auto;
padding:0 20px;
}
)?
And yes, I am aware of that. Though I am not using a child theme or custom CSS. I change lots of files, so it’s just easier for me to keep a copy of the ones I changed and replace them when I upgrade.
By the way, as for css custom file, do you just create a new CSS file with your custom codes in it and name it css-custom or whatever else and upload the theme’s folder?…
Thanks again.