WordPress.org

Forums

[resolved] Which WordPress Theme File Contains This HTML? (5 posts)

  1. agfreesafety
    Member
    Posted 10 months ago #

    I'm trying to center the words "Popular Posts" in the right sidebar of my site.

    Using Firebug, I identified where this modification needs to be made.

    Here's a screenshot of what I found. I just needed to add the <center> tag.

    My issue, is that I'm having a hard time figuring out which of the theme files contain this code, so I can make the modification on the actual HTML.

    How do I go about finding the right file? I've searched through the theme files, but have unable to find this piece of html code.

  2. Seacoast Web Design
    Member
    Posted 10 months ago #

    Actually, this is best done with CSS.
    Such as:

    sldr_title {text-align:center;}
  3. ClaytonJames
    Member
    Posted 10 months ago #

    @agfreesafety

    You should be able to add the code Seacoast Web Design gave you right to the bottom of your master.css or style.css, style sheet. I think probably either place will work. That way you won't have to edit anything in the smooth-slider plugin files.

    [edit] Whoops! sorry about that, I just noticed... the correct code will look like this:

    .sldr_title {text-align:center;}

    The "dot" defines the class selector in the style sheet.

  4. Seacoast Web Design
    Member
    Posted 10 months ago #

    Oh my bad! Clayton is correct, I forgot the required dot!

  5. agfreesafety
    Member
    Posted 10 months ago #

    Awesome. You guys ROCK!

Reply

You must log in to post.

About this Topic

Tags