Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

WordPress plugin. Allows part of a post title to be styled as a subtitle.

branch: develop

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 assets-wp-repo
Octocat-spinner-32 css
Octocat-spinner-32 js
Octocat-spinner-32 languages
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.md
Octocat-spinner-32 class-visual-subtitle.php
Octocat-spinner-32 deploy.sh
Octocat-spinner-32 readme.txt
Octocat-spinner-32 visual-subtitle.php
README.md

Visual Subtitle

Allows part of a post title to be styled as a subtitle. It is still within the title heading, but is wrapped in a span to be styled differently.

Installation

Upload

  1. Download the latest tagged archive (choose the "zip" option).
  2. Go to the Plugins -> Add New screen and click the Upload tab.
  3. Upload the zipped archive directly.
  4. Go to the Plugins screen and click Activate.

Manual

  1. Download the latest tagged archive (choose the "zip" option).
  2. Unzip the archive.
  3. Copy the folder to your /wp-content/plugins/ directory.
  4. Go to the Plugins screen and click Activate.

Check out the Codex for more information about installing plugins manually.

Git

Using git, browse to your /wp-content/plugins/ directory and clone this repository:

git clone git@github.com:GaryJones/Visual-Subtitle.git

Then go to your Plugins screen and click Activate.

Description

This plugin adds a Visual Subtitle field to all post, page and custom post types that have support for a title.

In a future version, this plugin may include a user interface with a list of checkboxes, so users can deselect which post types visual subtitle is applied to.

Those comfortable with code can filter the indexed array of post types via the visual_subtitle_supported_types filter.

The plugin allows you to include a string of text that will still be part of the post title, but be wrapped in a small tag, giving something like:

<h1>Main Title<small class="subtitle">This is a subtitle</small></h1>

Keeping it as part of the main level 1 or two heading, means it maintains as much keyword SEO importance as the main title, yet can be given a style (in your own theme) of display: block; to make it visually appear as a subtitle.

The visual subtitle is appended to to the title on on the Posts screen, with a | separator, and appended to the title part of the document title with a filterable colon and space (:) separator.

Screenshots

The back-end interface, showing the Visual Subtitle field.
The back-end interface, showing the Visual Subtitle field.


Showing the visual subtitle on the front-end, in this case, styled red, smaller, italic and bold.
Showing the visual subtitle on the front-end, in this case, styled red, smaller, italic and bold.


The front-end markup, showing the span inside the existing heading element (may differ for your own theme).
The front-end markup, showing the span inside the existing heading element (may differ for your own theme).


Showing the subtitle in the Posts list - the second entry has no subtitle.
Showing the subtitle in the Posts list - the second entry has no subtitle.


The subtitle can also be amended from the quick edit feature.
The subtitle can also be amended from the quick edit feature.

Credits

Built by Gary Jones
Copyright 2013 Gamajo Tech

Something went wrong with that request. Please try again.