Created
March 7, 2015 06:13
-
-
Save danott/9d6ae14c08c3cbfe2ab4 to your computer and use it in GitHub Desktop.
Creating a WordPress theme that nudges authors towards SEO with CSS. Good idea or bad idea?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body.admin-bar .post-content h1 { | |
border: 2px solid red; | |
&:before { | |
content: "Using H1 tags in post content is bad for SEO. Change to an H2 tag. (You're only seeing this because you're signed in as an admin. Your visitors won't see this warning)"; | |
background-color: red; | |
color: white; | |
font-size: 1rem; | |
line-height: 1; | |
padding: 1em; | |
display: block; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment