x

Gallery caption font

Hi there,

How can I change the colour of gallery captions? They are white by default and I can't see any options for changing the colour.

Thank you in anticipation of your help.

Kind regards,

1,943 Views
Message 1 of 12
Report
1 Best Answer

Best Answer

Add this to Settings > SEO > Header Code, and it will change the color on the published site:

<style>
    .imageGallery .galleryCaptionInnerText
    {
        color: #f8eaa9 !important;
    }
</style>

That hex code can be changed to something else; one in my example is the color used right above the gallery.

View Best Answer >

1,893 Views
Message 13 of 12
Report
11 REPLIES 11
Square

We don't include a color option for gallery captions in Theme > Change Fonts, so you'd need to do this with CSS customizations. Are you familiar with CSS and HTML at all, @ypryor?

1,938 Views
Message 13 of 12
Report

Thanks Adam for your reply to my enquiry. I'm not familir with CSS  and have only basic understanding of HTML. But I do have a science and programming backgroud. Please provide instructions as to the way forward. I'm sure I'll make sense of it (with a bit of research along the way).

Kind regards,

1,929 Views
Message 13 of 12
Report

Is your site published? I could probably give you a quick css override that you could paste into Settings > SEO > Header Code.

1,919 Views
Message 13 of 12
Report

Yes, the site is published:

www.highlandsmediator.com

Thanks

1,910 Views
Message 13 of 12
Report

Best Answer

Add this to Settings > SEO > Header Code, and it will change the color on the published site:

<style>
    .imageGallery .galleryCaptionInnerText
    {
        color: #f8eaa9 !important;
    }
</style>

That hex code can be changed to something else; one in my example is the color used right above the gallery.

1,894 Views
Message 13 of 12
Report

Fantastic! Many thanks, BJ.

1,884 Views
Message 13 of 12
Report

You're welcome!

1,877 Views
Message 13 of 12
Report

Hi weebly,

When i hover on my gallery images, the caption font color or either opacity is too light, which the they are not easy to read.
May i know how to change the font color to solid white? Thanks.
It needs to be applied to all gallery page.

Here's one of the pages I'm talking about.
https://www.kwokwahtyre.com/mb-e-cls.html

ben

1,858 Views
Message 13 of 12
Report
Square

Hi @benj Thanks for posting. Smiley Happy It doesn't look like there's an option to change the font color in the editor, but there is an option to bold the font. I think that could definitely help. Log into the editor and click Theme>Change Theme>Gallery Captions. You should see the dropdown to change the style of the font to bold. 

1,853 Views
Message 13 of 12
Report

BJ

Your code to change the Caption text works.

I want to change the Background colour so I used

<style>
.imageGallery .galleryCaptionBackground
{
color: #f8eaa9 !important;
}
</style>

But that didnt work . Please what is the wording used to change the Background

Thanks

1,333 Views
Message 13 of 12
Report

That's great! You want something more like this:

<style>
.imageGallery .galleryCaption
{
background-color: #f8eaa9 !important;
}
</style>

1,328 Views
Message 13 of 12
Report
This thread has been archived and locked. Please start a new thread if you would like to continue the conversation.