Support has been upgraded!
The Support Forum is closed. Not to worry! Providing the top quality support you expect and we're known for will continue! We're not ending support, just changing where you submit requests. This will provide you with the best experience possible.
Have you purchased an addon for Connections such as one of our premium templates or extensions with a valid license and you need help?
Please open a Support Ticket in your user account.
Are you using the free Connections plugin? Don't worry, you are still very important to us! We are still providing you with the same high quality support that we're known for.
Please open a new support topic in the WordPress support forums for Connections.
03/18/2016 at 6:34 pm #369718SusanParticipant
How can I adjust the plugin so the CSS and JS files are only loaded on pages that have directory entries? I have the following files loading on every page:
/wp-content/plugins/cmap-directory/cmap-directory.min.css (this is the customized version of cmap we use)
Directory entries are only displayed on a small percentage of pages on our site, so it would be more efficient to only load the files where needed.
I’ve found directions for de-queuing plugin files globally and then enqueuing them for specific pages, but that means that every time we make a change involving the directory I have to make sure the page id’s are correct in the functions file. Most of the plugins we use only call scrips and styles where required – is it possible to have Connections do the same?
Thanks, Susan03/21/2016 at 10:16 am #369870Steven ZahmKeymaster
re: Most of the plugins we use only call scrips and styles where required – is it possible to have Connections do the same?
Other than de-enqueuing them and then re-enqueueing them, sorry, no. I did have this at one time but quickly removed it because many users use the shortcode in places that can not be checked for in the post/page content (which is how other plugins do it). So examples. In text widgets and a few visual page builder plugins/themes that are popular enough that they can not be ignored.
Hope that answers your question thoroughly.
You cannot reply to this support topic. Please open your own support topic.