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
- How to make a secondary Pages Screen
- Remove element from admin page editing part
- Edit css for search results page
- Role can edit just one page [closed]
- Cannot enter “::before” for li tag when editing a WordPress page
- How to get page_id for url rewrite or how to use page slug for calling a page?
- JQuery Plugins in WordPress
- how can i remove page title on desktop view
- Is there a way to schedule changes to a page?
- Option for pages order in backend
- Return subpages of an author if the parent page was published by an other author
- Removing custom sort order from admin page listing
- Page menu not showing in admin, new Page button missing in toolbar too
- Allow a user to edit their own page and profile only
- WordPress Page doesn’t load the template selected
- How to change widget’s form color in admin?
- Highlight comments made by registered users of the site
- Custom folder for wordpress page templates
- Editing Help Section
- Separate URL for a specific page
- Pages that don’t look like blog posts?
- Can I use Pages like a Wiki
- Next and Previous Page links based on ‘Order’ attribute
- Create multiple pages with tables from json file
- Attaching a file to a page without adding to media library?
- Every change made by “Author” role is going to “pending review”
- Groping Pages Per Department Option
- Requiring a Visitor to Enter a Password Each Time They visit a Page
- How to remove the duplicate title tags and duplicate meta descriptions?
- Two different layouts for the same post
- My page title turns into a h2 tag – What to do?
- problem with loading pages
- How to turn post into pages and via versa?
- Content not displaying on page
- Featured Image not displaying in a page
- Display child pages on homepage template
- Set order acs and no paging for archive page
- Page can not be updated and disappeared in “show all page”
- Search page different title per results
- Approve Page Edits
- Load new Posts on Scroll on Page
- Default pages to be unpublished – possible?
- How do you add a featured image to a page (not post)?
- All pages duplicated like a mirror with critical errors
- Change the environment for creating a WordPress page
- How to change the default location where new post gets stored?