- This topic has 16 replies, 3 voices, and was last updated 6 months, 3 weeks ago by
Leo.
-
AuthorPosts
-
August 10, 2020 at 11:13 pm #1396475
Jason
Hey Folks – I’m trying to customize the image caption on my site. Both the Background Color, font, etc.
I’m using the following CSS, but it’s not working. Any help is appreciated!
.entry-content .wp-caption .wp-caption-text {
text-align: center;
background-color: #eaeae8;
padding-top: 5px;
padding-bottom: 5px;
font-size: 18px;
text-transform: uppercase;
font-family: “Oswald”;
}August 11, 2020 at 3:55 am #1396839David
StaffCustomer SupportHi there,
try:
.entry-content .wp-block-image figcaption { text-align: center; background-color: #eaeae8; padding-top: 5px; padding-bottom: 5px; font-size: 18px; text-transform: uppercase; font-family: “Oswald”; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/August 11, 2020 at 10:47 am #1397546Jason
Hello, this worked to an extent.
The font family is not changing. Neither is the font weight when I attempt to customize it. There is also a gap under the picture and the background color change, and I would like to to be up against the picture.
August 11, 2020 at 10:51 am #1397553Jason
Here is the code I used:
.entry-content .wp-block-image figcaption {
text-align: center;
background-color: #F3F7F7;
border-width: 10px;
border-color: #1C1F33;
padding-top: 10px;
padding-bottom: 10px;
font-size: 20px;
font-weight: 700px;
font-color: #1C1F33;
font-family: “Rubik”;
}August 11, 2020 at 11:48 am #1397641Leo
StaffCustomer SupportAny chance you can provide the password so we can view your site?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/August 11, 2020 at 11:59 am #1397657Jason
I’ve unhidden it for just a bit
August 11, 2020 at 12:04 pm #1397661Leo
StaffCustomer SupportTry
font-weight: 700;
instead offont-weight: 700px;
and
color: #1C1F33;
instead offont-color: #1C1F33;
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/August 11, 2020 at 12:24 pm #1397689Jason
Thanks. These worked. However, It’s still not transforming to Rubik, and there’s still the space in between the top of the background color and the image. I’d like them to connect so there’s no gap.
August 11, 2020 at 2:38 pm #1397818Leo
StaffCustomer SupportIs the Rubik font selected anywhere in the customizer?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/August 11, 2020 at 2:58 pm #1397840Jason
Yes, for all headings. Body font is Nunito.
August 11, 2020 at 3:00 pm #1397842Leo
StaffCustomer SupportCan you unlock the site again? Or provide the password so we can always access it?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/August 11, 2020 at 3:05 pm #1397857Jason
Unlocked – is there a way to provide the password securely?
August 11, 2020 at 3:10 pm #1397865Leo
StaffCustomer SupportReplace:
font: “Rubik”;
with
font-family: "Rubik", sans-serif;
Make sure you are using the right quotation marks.
Also if you right click on the element and use browser inspect tool, then you can see all the invalid command/CSS:
https://www.screencast.com/t/zWl5eh6mPtzDocumentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/August 11, 2020 at 3:20 pm #1397877Jason
Thanks, how can I remove the white space in between the caption and image?
August 11, 2020 at 3:50 pm #1397903Leo
StaffCustomer SupportTry this CSS:
.wp-block-image figcaption { margin-top: -0.5em; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.