Will display an auto-generated list of your characters with descriptions.
Directions on using:
1. Create a new page.
2. Editing the page, add the shortcode, [cast-page] to it, exactly as written.
3. Click update or publish on your page you just created to save it.
4. Add page to menubar if you want it on the menubar.
CSS Elements & Styling:
.cast-box - The box that contains each of the characters
.cast-pic - The box the image for the character is in
Adding Character Image to the Cast Page:
First you need to know what CSS to use, it starts with .character then the name of the character in slug format (slug means that its a lowercase dash seperated naming convention for URL and CSS usage).
- Code: Select all
.character-<character-slug>
Example: If you have a character named "Mad Dog" it should look something like this:
- Code: Select all
.character-mad-dog
You can find out what it is exactly by 'viewing the source' of your page or using something like firebug for the firefox browser to get the exact.
Then, knowing what element to use for that character after finding it, you can add the image for it. Store the image on your server or upload it via the media library which will give you a link to the local drive location for it.
- Code: Select all
.character-mad-dog {
background: url('http://frumph.net/wp-content/uploads/2012/05/mad-dog.jpg') top center no-repeat;
}
Note that the url for your image will be different, use the one the media library has in it for the image you uploaded or use one relative to the URL you use for where you put the image.
The default height and width of the image to use is 150h by 150w, 150x150.
FAQ:
Q? The boxes extend passed the available width that I have on my page and get cut off, how do I fix that?
A. By changing the width of the .cast-box and .cast-info elements with CSS. .cast-info starts out with a width of about 370px wide, and it is contained in the .cast-box that has a starting width of 530px; to start.
- Code: Select all
.cast-box { width: 480px; }
.cast-info { width: 320px; }
Will reduce it, remember whatever you take from box, you have to remove also from .cast-info
