-
AuthorPosts
-
July 18, 2023 at 12:09 am #1413546
I am trying to reduce the size of the h2 tag when used in Special Heading element. I have added a custom css class in deveolper settings under the advanced tab. And according to your own documentation that should be the right way to do it, but nothing happens.
Any idea on what I am doing wrong?Regards
NinaJuly 18, 2023 at 11:27 am #1413573Hey Advantage09,
Did you try to set the responsive sizes under Enfold->General Styling->Typography? If not, then please try doing so. If you need further help, then please post a link to where we can see the actual element.
Best regards,
RikardJuly 18, 2023 at 11:29 am #1413574I know I can style the H2 tag in general, but I only need to change it in one place. So general styling will not help.
July 18, 2023 at 12:25 pm #1413589Hi,
I’m not sure that I understand your last reply. Did you try changing it in the place I mentioned earlier? If you change it there, then you won’t need any custom CSS, or changes under Advanced Styling.
Best regards,
RikardJuly 18, 2023 at 12:42 pm #1413594if I style it either under advanced styling or general styling/typography, the change would be site wide. Right?
I only need to change the font-size in one place. That is why I thought giving it a custom css class would do the trick.July 18, 2023 at 8:04 pm #1413629Hi,
Thanks for the clarification. Then we would need to see the actual element, and the code you are trying to use.
Best regards,
RikardJuly 18, 2023 at 10:43 pm #1413654I used css like this
h2 .smallheading {
font-size: 29px;
}
or just
.smallheading {
font-size: 29px;
}
And in the elements advanced tab I added smallheading as a custom css classregards
NinaJuly 19, 2023 at 11:04 am #1413689Hi,
Thanks for that, and where can we see the actual element with the class added? We can’t tell you why your code is not working unless we can see the actual problem.
Best regards,
RikardJuly 19, 2023 at 12:48 pm #1413705You can see here. I would like the all headings to be the same size using H2 tag, but not the default size.
Regards
NinaJuly 19, 2023 at 8:29 pm #1413745Hi,
Please try this CSS instead:
.smallheading h2 { font-size: 29px; }
Best regards,
RikardJuly 20, 2023 at 11:00 am #1413819That was it, thank you!
Just to many things to figure out at the same time. Great support, thank you.Regards
NinaJuly 21, 2023 at 4:52 am #1413897Hi Nina,
I’m glad that Rikard could help you :)
Thanks for using Enfold and have a great day!Best regards,
Nikko -
AuthorPosts
- The topic ‘Styling H2 tag’ is closed to new replies.