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
- DIVI Theme customizer changes not applied on existing pages and designs are not shown on the front
- Custom post type not pulling CSS
- custom post type single page not found after aotumatic publish By the author’s robot
- Accessing download link from the loop with WP Download Manager Pro
- Set a template on a custom post in the plugin
- Simple way to hide\show an announcement (just a div) on homepage?
- Custom Post Type works when registered in functions.php but not when registered in plugin
- Is it possible to link an external stylesheet, exclusively within a specific single post template?
- Reading Custom Post data so I can have user update Manually
- Why is this function so slow?
- Permalink URL connection between two custom types
- How to show link to product in custom fields?
- 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
- Custom Post Type Front Page Gives 404
- Multiple useres editing specified content
- Show Post columns to specific users on condition
- Filter Custom Post Type Posts by Taxonomy
- Add input radio menu to post
- Disable ‘Add New’ in custom post that is made from CPT UI
- Insert custom taxonomy into category query
- Custom Post Type single post type shown in theme single.php
- CPT UI: Connect a custom post type to a custom post type
- Simple Data picker meta box
- How to check if a new private custom post type is created?
- Looping through image object using ACF and CPT UI [SOLVED]
- Default custom post type url
- Run query on specific admin options page and send results to select field in another function
- Link two different post using there post_id in post meta
- Custom post type that lets users create a set of posts?
- Include images from pages in wp search.php results in default wp search
- Create Inclusions and exclusions
- How to create groups like that in buddypress?
- Post that populates itself (almost) automatically using data from imported excel file
- I broke it! Custom post type archive gets redirected to home
- Populate metabox dropdown with post title from another Custom Post Type (issues with wp_reset / global $post)
- Custom Fields through plugin in a Custom Post Type
- Can’t save custom post type fields
- Enable shortcodes on custom post type
- Multiple domains, Single database, 1 Parent/Master with all content, other domains/slaves with filtered content (based on “location” variable)
- How to Create movie schedule by custom post type query
- Best Plugins for Complex Index of Resources [closed]
- How to display all custom fields associated with a post type – IN THE ADMIN AREA?
- Change Background Color For CPT Template
- WP_Query return highest number only
- Display subcategories in the filter on CPT
- Remove custom post type generated by a plugin (The Events Calendar) [closed]
- Show custom taxonomy not in submenu
- Understanding the workflow of form creation plugin
- Adding CPT changes entire layout of my site except for the archive of that CPT
- How to load custom post type plugin after acf options page (or get settings from there another way)?
- Use Custom Post Type as Storage Container Without Registering It
- Loop carousel slider in wordpress
- How to Fix WordPress 500 Internal server error due to custom post type
- Custom Fields as Post Type Options
- get_post_types doesn’t work in plugin
- next/prev post link by relationship post 2 post
- How to display custom post type in a submenu?
- Plugin Error on activating
- Custom Post Type parent slug as menu item
- Customizing a plugin function using a hook
- Custom Info Box at end of posts?
- Add Excerpt On Quicksand Plugin
- Author profile comments system
- Can’t open Custom Post Types Link in navigation
- Custom Post Types in plugins?
- Plugins for putting Custom Post Types into the Menu
- Configure which plugin custom post types get registered
- Multiple search template with separate stylesheets
- Multiple Block Quotes without using HTML
- How to insert post into a page?
- Extending a CPT by Created by another plugin
- How to add post type in masonry posts elementory widget
- Remove plugin’s custom post type archive page and single pages [closed]
- Display Custom Post Type on Toolset Types Plugin
- Plugin – read post into blank page [duplicate]
- How to Create Short Code Using Custom Post type
- How to hide home title on pages and posts?
- WP_Query is getting the post but the_post() not rendering any Post
- make playlist from a custom post type
- Custom Post Type to Plugin
- How to delete unnecessary custom post types in the UI
- add_filter > posts_where works partially
- Simple Share Buttons Add Plugin and Custom Post Type
- WordPress custom post type odd and even styling [duplicate]
- 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
- How to add custom settings to the menu of custom post types?
- how to display custom taxonomies in front page
- WP 4.4 upgrade custom post type cannot add new
- Pull total post count for child category and parent if term ID