Get rid of side bar and center text
-
I would like to get rid of all side bars on my website pages. I’ve managed to figure out how to turn them off on basic pages, but can’t figure it out for image pages (like: https://joshuajenkinsart.com/2015-2/untitledportrait/).
I would also like to center the image description text if possible.
Help?!
The blog I need help with is: (visible only to logged in users)
-
Try adding this code to your existing custom CSS:
body.attachment .entry-content-wrapper, body.attachment .entry-content, body.attachment .comments-area { max-width: 100%; } body.attachment .attachment { text-align: center; }The first bit expands the primary area on attachment pages and the second centres everything in the content area.
-
Hi there, since your images are smaller than the div they are inserted into in the Gallery, if we center only the caption text, it looks odd (paste in the first rule I have below to see that). I added the second rule to center the images within the div also.
figcaption, .wp-caption-text { text-align: center; } .gallery-item .gallery-icon { text-align: center; }See what you think and let me know.
-
-
- The topic ‘Get rid of side bar and center text’ is closed to new replies.