change font size in Gallery captions

  • Author
    Posts
  • #13038

    melindaboumans
    Member
    Original poster

    Hi,
    How can I change the font-size of the gallery captions? I tried this, but it didn’t work:

    .jp-carousel-light .jp-carousel-info h2 {
    font:16px/1.5em!important “Helvetica Neue”, sans-serif!important;
    text-align:center!important;
    }

    Also, is there any way to remove the extra spacing between the photo and the caption?

    Thanks,
    M

    The blog I need help with is: spotcleanfood.com

    #13241

    Hi M,

    I would try using the !important tag here:

    .jp-carousel-photo-info h2 {
    font-size: 20px !important;
    }

    and for the spacing try:

    .jp-carousel-info {
    margin-top: -20px;
    }

    Best regards,
    Scott

    #13255

    melindaboumans
    Member
    Original poster

    Almost…margin worked, font-size didn’t. Any other ideas?

    Thanks,
    M

    #13295

    Hey M,

    Regarding the font size:

    It actually looks like you can’t override this since the script (for galleries) is loaded after the custom CSS.

    The h2 tag has an !important on it already which is overriding the one we are trying to set.

    Will let you know if I find another way to get this done.

    Best Regards,
    Scott

    #13305

    melindaboumans
    Member
    Original poster

    Thanks for digging in. I’ll play around too.

The topic ‘change font size in Gallery captions’ is closed to new replies.