Hello,
How can I make a font size of a header text smaller when the website is open on a mobile phone.
Hello,
How can I make a font size of a header text smaller when the website is open on a mobile phone.
Hi,
You can use for example this CSS snippet:
@media only screen and (min-width: 48em) {
.header-navbar {
font-size: 12px;
}
}
Please note that it can require further customization.
Thank you, Andrii. Unfortunately, it did not change anything. Just to clarify, I want to change the font size of the text of the header on the home page.
Hi,
Please use this CSS snippet:
@media only screen and (max-width: 48em) {
h1.wp-block-heading {
font-size: 15px !important;
}
}
Please note that it can require further customization.
Also, you can refer to this topic How can I change header text size? - #3
Still no affect on the font size.
Hi,
We have provided you with a different code for the entire header. Please send a screenshot of the text you need to change, and we will try to help.
Hi,
We checked this CSS snippet, and it work correctly:
@media only screen and (max-width: 48em) {
h1.wp-block-heading {
font-size: 15px !important;
}
}
Please make sure you add this snippet using this doc How to add custom code snippets - HivePress Help Center
Also, If you use a caching plugin, make sure that caching is disabled for logged-in users.
Thank you, Andrii. It looks like my title was in H2 and the snippet did not affect it. I changed it to H1 and now it works.
Cheers,
Givi
Hi, I have two questions:
…and menu items to be in the center of the block
Hi,
@media only screen and (max-width: 48em) {
h1.wp-block-heading {
display: none;
}
}
@media only screen and (max-width: 48em) {
.header-hero__content p.has-medium-font-size{
display: none;
}
}
Please note that it can require further customization.
Thanks!
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.