Theme Author
Tom
(@edge22)
Hi there,
What about them are you wanting to change?
For example, we can make them bold and aligned left like this:
.wp-block-gallery .blocks-gallery-image figcaption,
.wp-block-gallery .blocks-gallery-item figcaption {
font-weight: bold;
text-align: left;
}
Hi Tom,
Firstly thank you so much for your work, your GP is amazing!
Secondly, thanks for the answer, it works!
Thirdly please, two more question:
1 – How could I remove the transparent-white background of the fonts?
2 – How could I make fonts go down in order to avoid they are on the gallery pics?
Thank you in advance.
Cheers!
Theme Author
Tom
(@edge22)
Try this:
.wp-block-gallery .blocks-gallery-image,
.wp-block-gallery .blocks-gallery-item,
.wp-block-gallery .blocks-gallery-image figure,
.wp-block-gallery .blocks-gallery-item figure {
display: block;
height: auto;
}
.wp-block-gallery .blocks-gallery-image figcaption,
.wp-block-gallery .blocks-gallery-item figcaption {
position: relative;
background: none;
}
It works!!
You’re a beast bro, thank you so much.
Keep hustling!!
Hi Tom,
Let’s do it even more epic.
What about if I would like to keep gallery fonts as default by theme on the rest of pages. It means, to do previous modifications just on Home page?
Thanks a lot in advance!
Isaac
Theme Author
Tom
(@edge22)
Hi there,
I’m not too sure what you mean – can you explain a bit more?
Hi Tom,
Sure. What I mean is:
> Keep fonts of galleries as default (on all pages except home page)
> Make changes we were talking about at first just on home page
Theme Author
Tom
(@edge22)
Ah, change your CSS to this:
.home .wp-block-gallery .blocks-gallery-image,
.home .wp-block-gallery .blocks-gallery-item,
.home .wp-block-gallery .blocks-gallery-image figure,
.home .wp-block-gallery .blocks-gallery-item figure {
display: block;
height: auto;
}
.home .wp-block-gallery .blocks-gallery-image figcaption,
.home .wp-block-gallery .blocks-gallery-item figcaption {
position: relative;
background: none;
}
Thank you for all your help Tom. Really apreciatted.
I would like to go, if you allow me, for another target on this.
How could we get to set up each font gallery independently? It means, modifying just the gallery font that we chose and to keep the others as default.
Thank you so much in advance
Isaac
Theme Author
Tom
(@edge22)
I believe the gallery block allows you to add a custom class to it. In that case, you can replace .home
with the class you specify: https://www.screencast.com/t/j7oeecwn2u38
Hi Tom,
I´ll do what you suggest me and will come back to tell you how it worked.
Thank you so much for your help.
Isaac