0

This question already has an answer here:

I have a settings page under a custom post type menu.

The url for the page is like this - /wp-admin/edit.php?post_type=movies&page=movies_settings

How do I load the stylesheet just on that page?

Thanks in advance.

marked as duplicate by cjbj, Community Jun 29 '17 at 8:49

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

0

Try using parent and child class to use css on specific page

<div class="top-container"><span class="header-text"> content here</span> </div>

Assign a page level class .top-container{} And then assign use it as a parent class for styling rest of elements on page

.top-container .header-text{}

You do not need to load a separate stylesheet rather than you can load a part of your css file for that specific page

Not the answer you're looking for? Browse other questions tagged or ask your own question.