Passing WordPress info to php stylesheet
-
Hello!
I’m recent to WordPress (within a couple years), and new to Thematic (used by one of my clients). We are using a child theme within Thematic. It is mostly custom, and we use mainly pages for the site.I need to use a dynamic style sheet to change the background image and link colors depending on the page.
I have been able to:
enqueue the style sheet “wp_enqueue_style()” correctly.
I have tested and verified the style sheet is working, using both basic css, and php functionality.I am stuck here:
Getting “any” kind of id to be recognized by the stylesheet. pagename, slugname, id… any of these would be fine.I have tried various functions, arguments, variables in the header, functions page, and style sheet itself. I can get an output if they are in the header, or functions, but nothing at all… ever… is passed to the style sheet that I can use to identify these various pages.
I feel like I’m missing something pretty easy, but can’t wrap my mind around it.
Any help would be appreciated. Thanks!
- The topic ‘Passing WordPress info to php stylesheet’ is closed to new replies.