Viewing 6 posts - 1 through 6 (of 6 total)
  • #107876
    Sand
    Member
    Post count: 33

    Hi – I’m having a small styling issue. I would like image captions for certain images to be centered but they won’t obey my html:) Can you advise how I can get the theme to listen to <center><H5>red</H5></center>? See the screen grab of where I would apply this – I’ve been entering the HTML in the media > caption field. Thanks!

    Attachments:
    You must be logged in to view attached files.
    #108105
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please use this custom css code:-
    .wp-caption-text.gallery-caption h5{margin-right:8px !important}
    Thanks

    #108413
    Sand
    Member
    Post count: 33

    thanks mohammad! that works for short captions but “american walnut” is apparently too long for it to work well. is there something more general such as centering for any image caption text? i tried .wp-caption-text.gallery-caption [text-align: center;] but that didn’t seem to work.

    #108486
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    Please remove Mohammad’s css and add this:

    .wp-caption-text, .gallery-caption {
      margin: 0;
    }

    That should do the trick

    – Kyle

    #108895
    Sand
    Member
    Post count: 33

    thanks kyle – that worked like a charm!

    #108896
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You most welcome. I’m glad that issue resolved. Thanks Kyle 🙂
    With Best Regards
    Mohammad

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register