Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
0 answers
26 views

Styling best practices for single pages/templates

What's the best practice for CSS that is specific to one PHP file? For example, let's say I make a page page-456.php that is styled differently from the rest of the site, what's the best practice to ...
Coopero's user avatar
  • 101
2 votes
1 answer
243 views

Dequeue theme stylesheets but keep widget styling on custom page template

Bit of an unusual one. I have created a plugin that will only display content on a custom page template. For this reason, I have dequeued all the theme styles via $wp_styles and loaded in the plugin ...
scopeak's user avatar
  • 213
0 votes
2 answers
4k views

different style sheet for just one page template

I've been using site/page builders for so long in WP that I'm OOTL with the current setup of templates, stylesheets and functions in the newer WP builds. I've got an older theme that I need to make a ...
Reece's user avatar
  • 101
0 votes
2 answers
2k views

Page Template Won't Load Correct CSS File

I can't get the correct css file to load for my page template. The page is correctly loading the template but still using the default css file. This is the code I'm using to load the page template's ...
coolpup's user avatar
  • 13
5 votes
4 answers
2k views

Is it possible to enqueue a raw CSS string directly from within a template file?

I was wondering if it's possible to enqueue raw CSS as a string directly from within a template file? I'm writing a custom template for a page and need to add some style rules for it. What I want to ...
Bucky's user avatar
  • 235