Like the front-end in WordPress, the admin pages have various css classes added to the <body>
tag.
You could use:
body.post_type-page .fun-stuff-here {
color:aqua;
}
Keep your action the same – the CSS will be loaded everywhere on admin, but only becomes relevant in the Pages
section.
(There’s a post_type-...
for each.)
Related Posts:
- Check if wp-login is current page
- Conditional tag to check if ‘page.php’ is being used?
- Can I display the widget admin in the page admin?
- Change admin startpage to Pages-page?
- How do I load custom scripts and styles for a page?
- Only allow new subpages to be created
- What are the options for running custom css and javascript files on a page?
- Is there a way to remove or hide individual pages on the Edit Pages screen?
- How to disable Page Attributes dropdown in wp-admin
- How to change redirect after moving a page to trash?
- wordpress with many custom styled static pages
- Dashboard–> All Pages “How to create folders?”
- How to make certain page templates visible to admin only
- Add a Menu Link (to a WordPress Page) in the Admin Menu/Sidebar
- Remove pages from backend list *and* update counter accordingly
- Edit page’s “Restore the backup” link does nothing
- conditional tags- how to use with shortcodes
- Missing ‘Page Attributes’ in page edit
- Admin pages, edit notes of the title of posts and pages
- Can’t locate a hidden private page
- Role – edit page but not publish
- Adding Page URL to the Pages Admin Table
- Google Analytics tracking code on just one page?
- Add external css to Contact Page
- External stylesheet per page
- How to use is_admin in page content?
- Adding a Calculator to a WordPress Page
- Prioritize visible content – Page speed issue on Google insights
- Change a Page’s Header Image
- Styling Previous/Next Pages differently from Index
- Change page name in admin list
- logout redirect only from admin page
- Is it possible to restrict access to specific pages in the admin area based on the page slug?
- Different css file not working for the page template I created
- Show content if page is a grandchild of top level page
- Publish page by invoking submit via jQuery
- Multiple Loops That Pull Pages (Child/Grandchild) While Styling the First Entry
- accessing the Admin page
- remove “Edit” from select pages
- Set different heights per screen size with inline styles CSS into the ‘Text’ section of a Page
- WordPress default theme cannot get full page on entry content div
- How can a .css file be applied to a virtual page?
- Converting HTML to WordPress theme: integrating pages function and using its text editor, conditional enqueuing
- Blank white space where header was [closed]
- Search Page: activate html code if the tag is on the page
- Displaying Content Only in Certain Page IDs Not Working
- Group Pages based on Parent in Admin Area
- disable trashability for certain pages
- Custom admin menu for a selection of pages
- CSS Styling for a Page/ Site made with Pagelines
- How to align bold,italic and underline in wp-admin?
- How to access variables from one plugin in another
- Edit the text location of a form
- custom css in one page
- Create a page without adding a page in the Database
- What methods to use to create small, editable pieces of text for static pages?
- Require title for pages
- Add a new page to wordpress programmatically
- Get Permalink for the top level parent of child pages
- Get page id by title?
- List all pages and children in separate ul
- How should I best incorporate WordPress in my static website?
- WP won’t save changes in post (any)
- Call the content of a page in AJAX in WordPress
- Registering multiple sidebars with data from an array
- How to dynamically save a selected option from page “Templates” selectbox?
- Extra title output with this function wp_list_pages
- Where is the key _wp_page_template passed?
- Missing Page, But Still Exists In Preview
- Adding Author and Updated Schema Markup to WordPress Static Pages
- Trying to Edit a Page but it sends me to a Product Edit page
- How to edit a HTML list in WordPress?
- Is it possible to activate page template without manually selecting it in wp-admin?
- Excerpt Now Showing on the Post Page
- All Pages visible on the Frontpage
- How do we exclude multiple pages (like opposite of is_page)
- Create page template with some static contents
- Link to Particular Page Within Template PHP Code
- Can I schedule my site to launch at a set time and date?
- If I use a static page-slug.php for a page, is the database still queried?
- conditional: if is page, and all subpages
- Get all children titles of a page as a link to them
- Two different pages that share the same content?
- Use conditionals with wp_enqueue_style to attach stylesheet according to post type displayed
- After creating a new page, filling the page with structure
- Identify that a page is a grandchild page
- Suggestions: Customizable header image and style colors that are different for each page
- Cover block always has margin
- When I enter password, I’m redirected to the WordPress login form
- How do I add a new item to this menu on the Add New Page section?
- how to change permalink for dynamic page without 404 error
- Problem with deleting a “Page”
- Adding styles/scripts to specific page
- Maximum number of characters in a wordpress page?
- 1st Level Page with No Children
- Previewing Draft shows white page, publishing works fine?
- Grabbing the_content from “about us”
- making a pseudo-static page
- Woocommerce – Making product pages child of shop
- How to read a page’s “Shortcodes” from the Template File?