Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #909192
    RoPadel
    Participant

    I’m using WordPress 4.5.1 with X version 4.4.2 with the Integrity stack in a development environment. On the gallery page http://www.ascendant-technologies.com/at_wp/gallery/ I have set up a WordPress native gallery, something I’ve done many times before in non-X sites. However, I cannot get the captions to work satisfactorily. Some of these images have long captions – I can do nothing about that – and left without any styling from me, the gallery items stretch to the width of the caption, rather than the caption wrapping. To fix this, I tried adding the CSS .wp-caption-text {max-width: 150px;} which appeared to do the trick. I hadn’t even got as far as finding out whether this would have any negative effects on the responsive nature of the gallery, but now at full width, the wrapped caption sticks below the others and is forcing the row below to display oddly.

    I tried reverting to a WordPress default theme and it doesn’t happen. Can you tell me what may be different about the styling X applies that would cause this to happen?

    Thank you

    #909362
    Thai
    Moderator

    Hi There,

    Please add the following CSS under Customizer > Custom > Global CSS:

    .gallery .gallery-item {
        min-height: 200px;
    }

    Hope it helps 🙂

    #909556
    RoPadel
    Participant

    It does – thank you 🙂

    #909955
    Jade
    Moderator

    You’re welcome.

  • <script> jQuery(function($){ $("#no-reply-909192 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>