Only load plugin on specific pages
-
Hello, and thanks again for the great plugin.
We’re using Super Socializer for Social Login only. It appears that the Super Socializer code is only then required on the Login and Register pages.
However, Super Socializer appears to be always loading its scripts/styles on every page on the site, which is causing some conflicts with other plugins and some slowdowns for the site. For example, this code is in the top of every page:
<script type="text/javascript">var theChampCloseIconPath = 'https://our.news/wp-content/plugins/super-socializer/images/close.png';var heateorSsSDKBlockedMsg = <code>Your browser is blocking some features of this website. Please follow the instructions at <a href=\'https://support.heateor.com/browser-blocking-social-features/\' target=\'_blank\' style=\'color:#33a9d8\'>https://support.heateor.com/browser-blocking-social-features/</a> to unblock these.</code></script> <script> var theChampSiteUrl = 'https://our.news', theChampVerified = 0, theChampEmailPopup = 0; </script> <script> var theChampFBKey = '<redacted>', theChampFBLang = 'en_US', theChampFbLikeMycred = 0, theChampSsga = 0, theChampCommentNotification = 0, theChampHeateorFcmRecentComments = 0, theChampFbIosLogin = 0; </script> <style type="text/css"> .the_champ_horizontal_sharing .theChampSharing{ color: #fff; border-width: 0px; border-style: solid; border-color: transparent; }
Social Commenting, Social Sharing, and Like Buttons are all disabled in the admin dashboard, but that code above still appears on every page.
We even tried dequeuing some of the scripts/styles in functions.php, but that doesn’t appear to work as this code appears to not be enqueued normally.
Is there any way for us to specify to only load this plugin on the Login and Register pages, and/or remove the code it inserts on all other pages?
Thank you!The page I need help with: [log in to see the link]
- The topic ‘Only load plugin on specific pages’ is closed to new replies.