Skip to content

pilotessa/slug-as-body-class

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

=== Slug as body class ===
Contributors: carloroosen, pilotessa
Tags: url, slug, body, class
Requires at least: 3.7
Tested up to: 3.9
Stable tag: 1.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Show a counter above each post with number of displays and number of views

== Description ==

Want to have css styling rules for individual pages or posts?

This plugin adds a unique class to the body tag of the html. The added class is formatted as "[post_type]-[post_name]". For a page with slug (= post_type) "about" it will be "page-about", and for a post named "today" it will be "post-today". Currently no slug will be added for archive and category pages. Please let us know if you need this and we will add it.

= example =

Say you want to have a red title on your contact page. With this plugin all you need to do is add this line to your css:

body.page-contact h1 {
	color : red;
}

== Installation ==

In the WordPress backend, search for the plugin 'slug-as-body-class'. Install and activate it and you are done. 

== Frequently Asked Questions ==

= I miss feature X =

Feel free to send us an email, if more people request the same feature we will build it.

== Changelog ==

= 1.0 =
First publication on 2014 August 4

== Upgrade Notice ==

= 1.0 =
First release.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages