Image gets larger when aligned in centre, Takes the whole page width

Posted in: Newspaper
Post count: 66

Hey,

When I try to align and image in the center it takes the whole page width. And this only happens when I am using caption. Without caption it works fine.

This is without caption: https://emperorpost.com/wp-content/uploads/2017/12/without-caption.jpg
This is with caption: https://emperorpost.com/wp-content/uploads/2017/12/caption.jpg

And this is my website: emperorpost.com

I guess when I use caption the theme somehow aligns the picture with the text.

Post count: 20688

Hi,

I cannot view the images you posted
https://www.screencast.com/t/LDagEqlw
There was a issue similar to what you are describing, this happened after the WordPress update. If I recall correctly this was fixed by a theme update, version 8.2.

Thanks

Post count: 66

without caption: https://imgur.com/a/eLDnH
with caption: https://imgur.com/a/foAYH

And I am on the version 8.1. I don’t want to update my theme altogether. That way I lose some of the changes I made in the theme files. Can I somehow just update the files that were updated in the update?

  • This reply was modified 8 years by junaiddar.
Post count: 20688

Hi,

There were many modified files in the 8.2 update, after the WordPress update. These fixed various issues that were present at the time. The problem was not just with the captions.
You should try and update the theme to the latest version, version 8.5 introduced many new features.
If possible try and make customization using a child theme, that would be a lot more future proof ten modifying actual theme files. Only if the files are not supported by the child theme you should modify them directly.
Here is an update guide – https://forum.tagdiv.com/how-to-update-the-theme-2/

Thanks

Post count: 66

Yes, I have made most of my modifications using a child theme.

Okay, I will update it in a staging site and see if everything works fine.

Post count: 66

Okay so I updated the theme to 8.5.1 via filezilla and I still have this problem.

Many other problem have resolved itself.

I just want to make sure of one other thing. I am using a child theme, do I need to do something (upgrade) to my child theme as well? or that should be good to go ?

Post count: 66

I checked it in another browser and everything seems to be fine. must be something to do with cache.

Just let me know about the child theme? Will my child theme work fine with 8.5.1? I am using the child theme that I activiated with newspaper 7 I guess.

Post count: 20688

Hi,

Activate the child theme and see if there are any issues. Depending on the child theme customization there could be need to adapt the code used in it, if there are problems. make tests to check for potential problems.

Thanks

Post count: 66

Hey,

Looks alright. I try to customise as little as possible. So that update doesn’t cause problems.

Thank you for your support.

Viewing 9 posts - 1 through 9 (of 9 total)
The forum ‘Newspaper’ is closed to new topics and replies.