Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

[SOLVED] New WP Create Gallery ~ captions do not center


  #1  
Old Jan 28, 2018, 05:21 PM
VivBounty
 
51 posts · Jun 2012
Canadian Maritimes
Hello ATA angels.

Page is here: https://thosbartlettantiquesandoddments.com/gallery.

I have created a gallery with the new WP create gallery option from New Page.

However the captions on the pictures are indented or right-aligned. I would like them centered.

In the creation of the page the caption looks centered, but when the page is viewed in browser all the captions are off center.

Can anyone please shed some light on this problem?

Thanks,
Viv
  #2  
Old Jan 29, 2018, 06:40 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
The caption IS centered, it just doesn't look it because the image is not centered in the space given. If you make the width of your browser window smaller you will see the three images but up against each other and the text will be centered.

So the next question is why are all the images left aligned? go yo ATO->HTML/CSS Inserts->CSS Inserts and look for the code:
HTML Code:
.hentry img {
max-width:100%;
 height:auto !important;
display:block !important;

}
if you remove the 'display:block !important;' the images will be centered - however this may break what ever you added this code to fix.....
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Jan 29, 2018, 07:03 PM
VivBounty
 
51 posts · Jun 2012
Canadian Maritimes
I have tried adding the following code:

Code:
.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%; /* Image does not overflow the content area */
    padding: 5px 3px 10px;
    text-align: center;
}
to no avail.

Can anyone please shed any light?

Thanks.
  #4  
Old Jan 29, 2018, 07:06 PM
VivBounty
 
51 posts · Jun 2012
Canadian Maritimes
Oops didn't see your reply, JD. Sorry about that.

That did the trick. Fantastic.

Thank you so much!

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Captions Not Displaying In Gallery iuchewie Montezuma Theme 12 Aug 20, 2013 08:03 AM
Next Gen Gallery : Captions not showing up on thumbnails shalinisridhar Plugins & Atahualpa 2 Jul 28, 2012 11:28 AM
Center Dynamic Content Gallery htobor Plugins & Atahualpa 2 Feb 16, 2011 06:06 PM
How can I center, in grid layout, pictures with captions on a page... Masselyn Center area post/pages 0 Nov 18, 2010 09:30 AM


All times are GMT -6. The time now is 03:37 AM.


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