Hi there,
for a specific Post you use this CSS that Fernando provided:
.postid-26249 h1,.postid-26249 h2, .postid-26249 h2 {
border-bottom: solid 1px var(--contrast-2);
padding-bottom: 8px;
}
For all Single Posts you can do:
.single-post h1,.single-post h2,.single-post h2 {
border-bottom: solid 1px var(--contrast-2);
padding-bottom: 8px;
}
For all Pages you can do:
.page h1,.page h2,.page h2 {
border-bottom: solid 1px var(--contrast-2);
padding-bottom: 8px;
}
OR if you want to specify many locations you can do the following:
1. Create a new Hook Element in Appearance > Elements.
2. In the text area add:
<style>
body h1,body h2,body h2 {
border-bottom: solid 1px var(--contrast-2);
padding-bottom: 8px;
}
</style>
3. Set the Hook to wp_head
4. Set the Priority to 100
5. Set you Display Rules to the page, post etc. where you want it applied.