Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages »

[SOLVED] Different widths for pages and posts


  #1  
Old Aug 9, 2016, 02:13 PM
pvelte
 
38 posts · Apr 2010
I thought I could easily figure this out but am finally losing my mind... so Help, please!

The page width for the site I am building is 1600px, which I have set in the ATO / Layout. The posts, on both the single posts and the homepage for posts needs a width of 1000px. When I try using using left/right margins, e.g.

div.post {margin-right: 300px;}

but the right sidebar (used only on posts, not used on pages) stays far to the right. I need to bring both left and right sides in 300px each.

I've tried setting the layout width to 1000px and changing each page's width in CSS to 1600px but having been unsuccessful using variations of:

.page-id-51 #content {
margin-left: -300px;
}

or

body.page-id-11 .container {
max-width: 1600px;

but have had no success. I only have 5 pages so it's not a problem to style them individually, if I could only get it to work.

What am I missing that should be obvious? Thank you or your help.
  #2  
Old Aug 9, 2016, 04:46 PM
juggledad's Avatar
juggledad
 
23,560 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Here is an easy way to solve this
1) get rid of the CSS you have entered
2) at ATO->Style & configure SIDEBARS->RIGHT INNER sidebar WIDTH set it to '300'
3) at ATO->Style & configure SIDEBARS->RIGHT sidebar: Display on: UNCHECK
Front Page
"Page" pages
"Not Found" (your choice)
Attachments (your choice)
4) at ATO->Style & configure SIDEBARS->RIGHT INNER sidebar: Display on: CHECK ONLY
Front Page
"Page" pages
"Not Found" (your choice)
Attachments (your choice)
5) go to Appearances->Widgets->Right Inner Sidebar and add a 'TEXT widget
6) in the contents of the TEXT widget enter ' ' (this is a blank character)

You are all done.

So now you will display the Right Sidebar on the pages with posts (blog, author, tag etc) but not the RIght Inner side bar. On teh PAGE pages you will display the Right Inner sidebar and not the Right sidebar. You have to add a text widget to teh Right Inner sidebar so you don't get the three default widgets
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Aug 10, 2016, 12:42 PM
pvelte
 
38 posts · Apr 2010
Wow! Thank you so much for the rapid response and an easy peasy solution. So much better (and successful) than the direction I was taking!
  #4  
Old Aug 10, 2016, 05:51 PM
juggledad's Avatar
juggledad
 
23,560 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Glad to be of help. I'll mark this one solved.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Header image box has different widths on different pages Roar Header configuration & styling 7 Oct 2, 2012 07:45 PM
[SOLVED] How to set header, footer and center body widths to different widths #2 ozbod Header configuration & styling 2 Mar 4, 2011 09:27 AM
[SOLVED] How to set header, footer and center body widths to different widths ozbod Header configuration & styling 4 Mar 3, 2011 09:28 AM
[SOLVED] Style POSTS and PAGES - widths not correct in IE WhitePhantom Center area post/pages 4 Nov 4, 2010 05:36 PM
sidebar widths in single post pages wadams92101 Sidebars & Widgets 8 Jul 25, 2010 05:09 PM


All times are GMT -6. The time now is 12:31 AM.


Powered by vBulletin® Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.