Support » Themes and Templates » Styling PHP generated text

  • Resolved 1timothy412

    (@1timothy412)


    I am using the theme Blankslate by TidyThemes to design a website, and I am having a styling difficulty. I set styles for p, h1, h2, (etc), but its not showing up in the widgets or other places where the content is put out by a PHP statement(i.e. <?php dynamic_sidebar('primary-widget-area'); ?>). How can I get my custom styling to show up in PHP generated content?

    I hope this makes sense, and for anyone who can help, please know that I am not super familiar with PHP, although I do know HTML and CSS pretty well.

Viewing 5 replies - 1 through 5 (of 5 total)
  • WPyogi

    (@wpyogi)

    In that theme, you pretty much need to add all the CSS you want.

    Thread Starter 1timothy412

    (@1timothy412)

    Sorry, WPyogi, I accidentally posted before I was finished.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Are you sure you’re using specific-enough selectors?

    WPyogi

    (@wpyogi)

    LOL – I was kinda wondering… Are you using Firebug to look at the relevant rendered HTML (tags, classes, ids)? Validating is always a good troubleshooting step, too, in case you have any errors that are interfering with the CSS working.

    Thread Starter 1timothy412

    (@1timothy412)

    Thanks guys, I’ve got it working now. It looks like my problem was that I was actually being TOO specific, and wondering why it wasn’t working all over the site. 🙂 Thanks for the article link… it helped me figure it out. And gotta love Firebug – so helpful every time!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Styling PHP generated text’ is closed to new replies.