-
Digiarth
Hello,
I have added pages like About Us and Contact Us on my website. I want to add a margin-top for H2, but I can’t find any settings as I can only see the margin-bottom in typography.
I am using the following code:
h2 { margin-top: 60px; }
Kindly let me know the correct CSS, as this one is not working.
-
David
Hi there,
that CSS should work as long as there is no other CSS that is overwriting it, and the element before it does not have larger bottom margin.
Can you share a link to where i can see it on your site ?
-
Digiarth
Thanks for the quick reply.
I have attached the link in private for you to check:
-
David
Ok, that CSS should work ok.
Where did you add the CSS?NOTE: In your child theme styles.css you have this:
add_filter( 'generate_editor_styles', function( $editor_styles ) { $editor_styles[] = 'style.css'; return $editor_styles; } );
That needs to be moved to your functions.php as it is PHP.
-
Digiarth
Thanks, I had mistakenly used the above code in CSS and that was the issue.
It’s working now thanks.
-
David
Glad to hear that!
- You must be logged in to reply to this topic.