Skip to content

Instantly share code, notes, and snippets.

@danott
Created March 7, 2015 06:13
Show Gist options
  • Save danott/9d6ae14c08c3cbfe2ab4 to your computer and use it in GitHub Desktop.
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?
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