As of 3.4, some classes have been added to TinyMCE so you can target them, including for custom post types. So, for instance, you will see post-type-{$slug}
as a class on the body. See Trac ticket #19437 for more information.
Related Posts:
- How to load scripts/styles specific for a page
- Child Theme Not Overriding Parent Theme
- Enqueue styles after a plugin
- Register and enqueue style.css custom theme
- Enqueue Style Only On Certain Pages Not Working
- different style sheet for just one page template
- Split Media Queries in different files!
- Some questions about how proper add 2 CSS file in a WordPress theme?
- Parent theme styles overriding child theme CSS [closed]
- I can’t add CSS with functions.php
- Theme JS is available but theme CSS isn’t
- Proper Way to Load stylesheet on Condition
- Custom styles in Tiny MCE with an external CSS file
- get_template_directory_uri() links to child theme not parent
- Page Template Won’t Load Correct CSS File
- Advanced method to control cache of enqueued style/script
- How to reference different css (bootstrap) stylesheets for the header and body of a page?
- CSS style and app.js not loading
- Stylesheet does not load despite functions.php
- How do I dequeue a Stylesheet, stored in an ‘Assets’ folder?
- Child Theme not loading multiple stylesheets
- Should I use `get_stylesheet_uri()` or `get_template_directory_uri()` when calling my CSS Stylesheet?
- wp_head not injecting css
- functions.php inject inline css
- TinyMCE custom styles remove class when switching styles
- Logout/login redirect CSS issue
- Can I remove the Rich Text box editor for a specific post?
- Remove “says” from comments
- Dequeue Scripts and Style for Mobile not working?
- How to add CSS style sheet dynamically in wordpress
- Simple/basic use of get_current_screen
- I created a child theme and it doesn’t work for some of the css files
- CSS stylesheet not loading
- How to add background image control to page admin controls?
- If is multiple page templates
- Multiple CSS body classes to specific page I.D.’s – is this possible?
- Tiny MCE-modifications (plugins) stopped working in WordPress 5.6
- functions.php How to add css/js depending on Template Name?
- Child Theme files – what is needed?
- How do I add Bootstrap and LESS to my migrated WordPress site?
- Only let plugin add actions to wp_head & wp_footer on single posts
- How to Display Frontend CSS for Administrator only
- change the url paths in the stylesheet dynamically
- Please Explain the Importing Process of Multiple Stylesheets for Child Themes
- Adding a colorbutton in tinymce dialog with current api
- responsive.css in the WordPress should be prioritized
- Change CSS for logged in users
- Javascript function not working when placed in Text Block
- How to stop wordpress from injecting hard-coded style into image attachments with captions
- Custom styles.css sheet for visual editor
- header_image() with CSS
- Scripts not loading when using the wp_enqueue_scripts action
- Why does get_template_directory_uri() not include “www”, only for enqueued stylesheets?
- How to insert class in each list of categories?
- This code works, but the way I integrated it is breaking the media uploader. How can I integrate it properly?
- WordPress wraps span tags into p tags
- why can’t i add front.css to my frontpage.php
- Do we need to change our child function.php to require/include child dir files when we add an over-riding file.php into the child theme
- remove/hide wp-editor
- Getting out side of wp root folder from function.php using absolute path
- current_page_item is missing inside wp_nav_menu
- define css class in functions.php
- Completely Disable WordPress RSS Feeds
- Add custom css file after plugin css with WordPress Child Theme functions.php
- Combine page types and Custom Taxonomy in a functions.php command
- wp enqueue style on about us page
- Test CDN link from function.php or wp_enqueue_script/style?
- Can we have conditional CSS styling?
- Post content overflows on my mobile phone
- Remove clickable Link of WordPress Site Logo from Woocommerce Single Product page
- How to make the RTL.css the dominant css code?
- How do I make a custom “Read More Blogs” button for my blog page
- function class doesnt work
- Help using ShortCodes to style whole chunks of the post
- Setting Up Child Theme To Take Priority
- how to remove a tag in the_category function
- Classic TinyMCE messing up only Contributor’s HTML
- Reference multiple style sheets, clearing styles for permalink page, custom fields for css
- Woocommerce – Switching Price for Category
- Adding a class to the body of an inactive site using multisite
- Conditionally apply css for a specific template part
- Help with is_page() and calling css for specific pages in a Child Theme
- Child theme style.css didn’t work properly but the Customize Additional CSS did [closed]
- Why is style.css not loading through the functions.php
- How to automatically add custom classes to headings in content area
- Javascript and Stylesheet in child page
- Quicktags external functions file
- Edit TinyMCE Button Functionality
- Changing the color of post title [closed]
- Preventing PHP Execution in Parent Theme
- Remove heading tags on line break
- Random text changing to weird icons in both admin & front end
- Syling Custom Fields echo’s from from functions.php
- functions.php / replacing div’s with new ones?
- using enqueue_script in a shortcode isn’t working
- How can I append and prepend something to all post hyperlinks without using ::before or ::after? PHP hook solution?
- Image width issue in IE [closed]
- How do I make my child theme’s CSS update when I save it?
- How to fix enqueue_styles error for a twenty-seventeen childtheme
- Change TinyMCE undeline outpout