WordPress.org

Ready to get started?Download WordPress

Forums

Where to edit Title CSS in posts (edit.php) (3 posts)

  1. Sergio.Diaz
    Member
    Posted 1 year ago #

    I've been looking over all the files within WordPress because I didn't know where to look. Maybe it's in a place where it's no so obvious.

    I'm trying to find where the html/css of the Title within the posts list are (edit.php?post_type=X); I want to make the last 8 characters a different color (red) and the rest can stay the same. The last 8 characters are the stock number of a vehicle for a client, and should be distinguished since there's so much inventory.

    Unless there's an addon that puts a var next to the Title in the edit.php posts list page.

    Thanks for your help.

  2. Jerry
    Member
    Posted 1 year ago #

    Have you considered adding an extra post meta box. I'm on a tablet right now so my typing sucks, but if you google add_meta_box that'll get you pointed in the right direction.

  3. bcworkz
    Member
    Posted 1 year ago #

    Jerry has the right idea for adding a field next to the title, but to specifically answer your initial question, fwiw:

    The answer is theme dependent, so specifics can be misleading. In twentyeleven, the html for most views is in the theme's content.php and content-single.php template. The css is in the theme's style.css or one of the colors css files. The css selectors for color are .entry-title, .entry-title a or .singular .entry-title

    Could be completely different for another theme. To determine what template gets used where, I like to insert html comments at the top of each template, outside of php blocks. Viewing the page source in a context highlighting editor makes it easy to see how the various templates interweave when so labeled.

    Some sort of css style analyser browser tool is essential for WP CSS work. I use firebug for firefox. Other browsers have tools built in.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.