Page Style

Page Style

viniciusbo

Allow pages/categories to have different styles by adding a CSS Class (the Page Name or Category/Tag Slug) to the BODY.

The CSS class can be the following:

  • Home Page: “home”
  • Search Page: “search”
  • Category Page: category slug
  • Single Post/Page: page/post slug
  • Posts listed by any date: “archive”
    • If posts are listed by year: “archive year”
    • If posts are listed by month: “archive month”
    • If posts are listed by day: “archive day”
  • Posts listed by author: “author”
  • 404 Error: “404”

Please, feel free to contribute or give me any feedback!

Any questions can be asked just by sending me an e-mail. My contacts are on my website: http://vinicius.borriello.com.br/contato.php

1.0

  • First plugin release.

1.1

  • Some improvements
  1. Upload page-style.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Have fun!

Reviews

0 out of 5 stars

  • Version: 1.0
  • Last updated: 15 years ago
  • Active installations: 10
  • WordPress version: 2.8.2
  • Tested up to: 2.8.4
  • PHP version: false