[Theme: 2014]. Increase page content width
-
Hi – the page content width seems very narrow meaning images are not displayed very well and text is always wrapped meaning alot of space is not used. I don’t want to use a side bar on the right so want to increase the width of the pages and posts – can somebody please tell me how to do this please ?
-
Hi Simon,
This sounds something that can be easily fixed. Can you give us the URL to your blog to see whats actually happening?
Cheers!
Rachid
Hi,
Sorry for my late response. You are website looks awesome.
Do you want to remove the LEFT sidebar, or just use full content width to display images.
Please give more details about your needs, as you mentioned three (3) things :
-
content width seems very narrow
I don’t want to use a side bar on the right (left or right?)Cheers!
Rachid
Hi, thanks for getting back. I don’t want to use the right hand side bar anymore so have removed the menys from that. I am happy just to make use of the top and left hand side bars/menus.
As you can see the text and any photos within a page or post are very narrow, on the link above the featured image fills the space acroos the page but the text and image ars only about half the width, if they were to fill about 80% of the space beneath the featured image it would look better.
Thanks for your help !
Hi,
Now I see what you are looking for.
Lets try this :
customize your css (style.css file) using a plugin like “Simple Custom CSS”(link : https://ww.wp.xz.cn/plugins/simple-custom-css/).
Then add the code snippet below :
.size-large { width:80%; height:auto; }you can follow this tutorial (http://www.elmastudio.de/en/wordpress-en/custom-css-wordpress/) to do this.
Here is a snapshot (http://screencast.com/t/bvYWh4Lvx).
Please let me know if you find any problems.P.S : all the snippet does is scale the images to 80%.
Cheers!
Rachid
Hi again, thanks for youf help so far !
My theme has an Edit CSS function so I added your code to it, saved it, and then previewed it. It does what I want and expands the width and pictures, but – when I go direct to the website if seems to ignore the code and it is back to normal again.
Any ideas ?!
Ok, its playing tricks on me !! Now it seems to be doing it – mostly !!
Not sure what was happening but now its displaying photos larger than before and the text goes the full width of the page so thank you for your help !!
you are welcome. i am glad you fixed your problem.
Don’t hesitate if you encounter any other problems.
Cheers!
rachid
Hi again, my problem seems to have reverted !! It displays smaller pictures and the text is narrow like before ?
I’ve checked my CSS and it still has the code in it as described above, it just seems to be ignoring it.
What can I do please ?!
Regards,
Simon
Welcome again,
I’ve checked your website, and found the snippet code below. It is the reason your getting the narrow paragraphs (line 1962 in your style.css file).
.site-content .entry-header, .site-content .entry-content, .site-content .entry-summary, .site-content .entry-meta, .page-content { margin: 0 auto; max-width: 474px; }Jus change the property value to somthing bigger
max-width: 474px; to max-width: 900px; for example (I prefer to use percent instead of pixel like this : max-width: 90%;).
Here is preview of the website :
Hi,
Thanks again for sorting this out !
I assume though that if they issue a new version of the theme that this change will be over written ?
Do you know why the addition in the CSS is now being ignored ?
Regards,
Simon
Hi simon,
Yes of course, if the theme changes, the look chnages too and affects your modification.
To give priority to your custom css, you should use the ‘!important’ value, like this :
property:value!important; /*without space between the value and the important property)*/For example, for the above code, use this :
.page-content { margin: 0 auto; max-width: 474px!important; }I hope this helps.
Cheers.
Right, same old thing. Has reverted back to narrow text and small images. I have a custom css bug its ignoring it and doesn’t let me save any changes to it ? Any ideas ?
The topic ‘[Theme: 2014]. Increase page content width’ is closed to new replies.