Support » Plugin: CPT Bootstrap Carousel » Glitch after updating to WP 4.5.3 – images don't fit anymore

  • Resolved nusa surf


    Hi developers,
    We have been using Bootstrap-Carousel for a while with no problems.
    Until now. We just updated WP and other plugins (maybe Bootstrap-Carousel too? we did it without paying much attention).

    So after those WP and plugins updates a glitch showed up in the gallery where the images don’t fit the gallery frame anymore (they used to fit perfectly). Now they leave a blank space to the right.

    We found a similar post/support about it, but it is not our case, since we didn’t change images and before updates they fitted perfectly.

    Please check to see.

    Thanks developers in advance for any help and thanks for the awesome plugin.


Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Phil Ewels


    Hi nusa,

    How did the carousel look before? Was it taller? There’s a gap because the images aren’t as wide as the page (try making your browser window smaller, then there’s no gap).

    It looks like the source images themselves are big enough when opened by themselves. I think the problem is a cheeky sizes="(max-width: 900px) 100vw, 900px" which is creeping into the image tags. The plugin isn’t doing this, it gets this code from a core WordPress function. It could be a new / different setting when you set the featured images – maybe check that these are set to use the full size images?

    Sorry, can’t be much more help than this as I think it’s something else that’s causing the problem.. Let me know if I can do anything else.


    Phil (the developer)

    ps. Cool site! I was in Denpasar and Ubud last summer, gorgeous part of the world – I’m jealous!

    pps. Some slightly weird stuff going on in your HTML – might be worth checking that you have tags in the right place in your templates. eg. This yoast code should be inside the <head> section (not at the top where it is now):

    <title>nusa mag | nusa </title>
    <!-- This site is optimized with the Yoast SEO plugin -->
    <meta property="og:image" content="" />
    <!-- / Yoast SEO plugin. -->

    Also this code should be in <body> instead of inside <head> where it is now:

    <div class="container" style="text-align:right">
    <a href="" target="_blank"><img src="" title="eshop cart"style="width:33px;" />cart</a> &nbsp;
    <a href="" target="_blank">sign in</a></div>

    Thanks Phil for the quick reply.

    Locally we haven’t made the updates (we are having some problems updating WP locally) so the carousel still looks good there. The height of the images is greater locally. It looks like in the live site the images shrunk proportionally leaving that space on the right of the carousel frame. (the height of the frame in live version did scale down with the image though).
    We thought it was because of the WP update, but since you don’t think so, we are a bit lost.

    We haven’t changed the settings for the images so they should be set to use “full size images”. But we’ll double check tomorrow (Bali time… I mean, Bali pace)

    We’ll look into those HTML that you mentioned also.

    Thanks and thanks for the feedback on the site!


    Hi Phil,

    The settings of the carousel are for full size image…

    Any other leads to try to fix this? Locally there is no problem (previous WP version).
    Should we post this question in another forum category?


    The only thing we did this morning was to update JetPack.

    For some reason now carousel images are fitting right.

    Maybe the

    cheeky sizes=”(max-width: 900px) 100vw, 900px”

    was from Jet Pack?

    Thanks and keep up the good work!

    Plugin Author Phil Ewels


    Hi Diego,

    Sorry for being slow to respond – great that you got it working! Yeah this is the only downside of WordPress with its hundreds of plugins, lots of things affect each other and it can be super tricky to track down what’s causing what.

    Anyway, nice work!


Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Glitch after updating to WP 4.5.3 – images don't fit anymore’ is closed to new replies.