Jump to content

Archived

This topic is now archived and is closed to further replies.

Kedmyster

Include custom js/css files to a specific page

Recommended Posts

Kedmyster

Hey,

 

I want to include my own js/css files in a specific page which implemented with PageLines DMS.

How can it be done?

 

Thanks!

Share this post


Link to post
Share on other sites
Danny

Hi,

 

You can add your custom CSS to either your child theme, customize plugin or the custom CSS/LESS editor in DMS Toolbar > Custom Code. If you want this custom CSS to only appear on a specific page, you will need to prefix your custom CSS with the page-id-X class, which appears in the body tag for that page.

 

As for your custom JS, what I would recommend is adding this as a hook in your child theme or customize plugins functions.php file. For example:

 

if( is_page('x')) { ?>
// Your JS
<?php }

Please search our forums, before posting!

Share this post


Link to post
Share on other sites

×