Hello, I use yhis custom code for put color and a extra line in H2
.single h2 {
color:#1e73be!important;
}
.td-post-content h2 {
border-bottom: 2px solid #e86215;
}
I don’t know about programming. I would like to know, how to do so that the H2 title, comes out centered.
Also I want to know, how to make the title of H1 also comes out centered.
Is that possible? And… Can i Change the color of H1?
Thank you
https://fotos.subefotos.com/3e4e452d43f7255189166f2224cf060eo.jpg
-
This topic was modified 7 years by
Jose.
to center h2’s u can use:
h2 {
text-align: center;
}
Hi,
If you want to add for all h2, and h1 center align just paste the below css in Newspaper>Theme panel>Custom code>Custom css
h1, h2 {
text-align: center;
}
If you are using mobile theme you need to paste this css in Neaspaper>Theme panel>Mobile Theme> Custom code ” WRITE YOUR OWN CSS HERE ” too, in this way will apply on mobile too.
Also you can fallow our tutorial about Create custom code with the browser’s Inspector or the Live CSS Box
Thank you .
Hello @Calin ,
Thank you very much for your help 🙂
Now everything is centered, it’s perfect. If, for example, I want to use a specific color for H1 in the all post (publications), what should I do?
Thank you for the link, I have reviewed it but although it seems strange, it is still complex for me. However, I will do tests to improve.
Cheers
Hi,
Here is a custom css that you can use to change the color for all post ( only post, no category or pages ) that have h1.
https://www.screencast.com/t/vWGC8AMpn9
.single .td-pb-row h1{
color: green!important;
}
You can change the color green if you want , you can pick a color from here: https://www.w3schools.com/cssref/css_colors.asp
Thanks.