• Resolved Sameer

    (@msameerbutt)


    Hi there

    i am using this plugin only on two page
    1) On home page as widgets
    2) On inside page as archive

    Following CSS and JS is loading on each page I want to prevent this from happening.

    Following the JS & CSS

    <style type="text/css">
    .wp-polls .pollbar {
    	margin: 1px;
    	font-size: 6px;
    	line-height: 8px;
    	height: 8px;
    	background-image: url('http://cile/en/wp-content/plugins/wp-polls/images/default/pollbg.gif');
    	border: 1px solid #c8c8c8;
    }
    </style>

    JS

    <script type='text/javascript'>
    /* <![CDATA[ */
    var pollsL10n = {bla bla bla};
    /* ]]> */
    </script>
    <script type='text/javascript' src='your-domain/plugins/wp-polls/polls-js.js?ver=2.68'></script>

    https://wordpress.org/plugins/wp-polls/

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to prevent loading Javascript on every page’ is closed to new replies.