You can add this to your body tag of your current theme <body <?php body_class('class-name'); ?>>
and then specifically target the container.
body.post-id #yourdiv { border: 2px solid red; }
Always work for me.
Related Posts:
- Is It Possible To Add Custom Post Type Menu As Another Custom Post Type Sub Menu
- Style custom columns in admin panels (especially to adjust column cell widths)
- Create a custom archive page for a custom post type in a plugin
- Media library – Limit images to custom post type
- How to Add Custom Taxonomy To Woocommerce Plugin
- Development of a WordPress Search Plugin – Best Practices
- Prevent trash/delete action on specific post types
- How to add custom content template part for a custom post type on main query using a plugin
- echo value from ‘select’ field type into page template using cmb2?
- register_taxonomy with multiple object type and update_count_callback
- How often do you need to register_post_type?
- How to use a dedicated template for the Custom Post Type from a plugin?
- Add Capabilities to Custom Post Type after it has been created [duplicate]
- CSS for Custom Post Types
- Maintaining WP_Query Relation Among CPT, Custom Taxonomy, Permalinks- CPT UI
- update a post meta from a single table cell TablePress
- Remove POST_TYPE from custom post type permalink
- How to add post_author column to custom post type
- How to register custom post types in a plugin?
- Display custom taxonomy as dropdown list
- Hide Meta Boxes for Non-Admins
- Issue to get wp_get_attachment_image with cmb2
- Best action hook to create custom post and assign taxonomy terms to it on plugin activation?
- Custom post type and body_class: Remove “blog” class
- Can’t get order_by meta_value_num to work properly
- Is possible add class for last post of Custom Post Type?
- Show listings from Impress Listing plugin in random order using taxonomy and terms
- One-to-many post relationships that are displayed by category (using posts-to-posts plugin)
- Custom posts don’t work
- single-{cpt}.php ignored
- Insert and then update post_type by wp_update_post
- Custom Post Types. Are there any disadvantages/advantages in using a plugin to develop them?
- add category name to permalinks on product page /category-name/product-name
- Customize my custom taxonomy table in Admin panel
- Action or Filter Hook for a Custom Importer
- How to set a CPT to have a page as a parent, then rewrite urls accordingly?
- Addition of custom option panel crashes Media Library & Admin Area
- Dynamic dropdown select values depending on other custom field value
- How to Create Columns with WordPress and CPTUI display page ?
- Post injections into Site Origins Page builder [closed]
- WordPress randomly shows 404 errors
- Custom Post Type slug same as page name
- How to Get WordPress custom post data in WooCommerce product meta panel? [closed]
- How can you use one database with multisite
- Adding CSS to custom post type admin page causes error
- Redirect to another page using contact form 7? [closed]
- Custom post type, have only my meta boxes
- New “Custom Types” item in admin menu. Is this a plugin or a new wordpress feature?
- Add custom CSS class to custom post type
- Give each post type label a different color?
- Displaying custom post types as a gallery
- Pagination hitting 404 page on /page/4
- Can’t delete a custom post in front end with custom role
- Post URL based on Custom Post Types variables
- Add custom field to admin area witthout using a metabox
- Override Plugin Custom Post Type ‘single’ view
- Can I assign a theme to a custom post type?
- Custom pages missing on “front page” setting
- Add custom columns in custom post type browse page
- Create Custom Post type that uses Page.php template
- How can I modify a custom post type and custom page template for a child theme if all content seams to be handled by theme’s ‘native’ plugin?
- Accessing a protected property of a post
- Multiple archives to display parent and subcategories content
- Plain links in single-class.php and archive-class.php not working
- wordpress post_where set only for my costum post type
- Questions regarding add_meta_box()
- how can i show a google map in custom post type
- Custom post type 404 error on “default” or “numeric” permalinks
- Multiple Stylesheets For Post and post type?
- Use conditionals with wp_enqueue_style to attach stylesheet according to post type displayed
- DIVI Theme customizer changes not applied on existing pages and designs are not shown on the front
- Set a template on a custom post in the plugin
- Simple way to hide\show an announcement (just a div) on homepage?
- Is it possible to link an external stylesheet, exclusively within a specific single post template?
- Why is this function so slow?
- Permalink URL connection between two custom types
- Taxonomy counter on Taxonomy List(plugin)
- Is it possible to arrange Custom Post Types from CPTUI into a Folder?
- Restrict Custom Post Type to One Item
- Multiple useres editing specified content
- Filter Custom Post Type Posts by Taxonomy
- Add input radio menu to post
- Insert custom taxonomy into category query
- Simple Data picker meta box
- Link two different post using there post_id in post meta
- Custom post type that lets users create a set of posts?
- Custom Fields through plugin in a Custom Post Type
- WP_Query return highest number only
- Remove custom post type generated by a plugin (The Events Calendar) [closed]
- Show custom taxonomy not in submenu
- Loop carousel slider in wordpress
- How to display custom post type in a submenu?
- Configure which plugin custom post types get registered
- Multiple Block Quotes without using HTML
- How to Create Short Code Using Custom Post type
- How to get ‘Products’ on home page?
- How do I target a links only in a custom post type and only in the p tag?
- Add a background image into a post [closed]
- Retrieve a post with its ACF repeater fields in wordpress
- WP 4.4 upgrade custom post type cannot add new