Strange CSS being added to page
-
Hi there,
For some reason the below CSS is being added to my pages header. From searching, the CSS relates to the plugin and what is even more strage – discus <script> has been insterted into this css injection in my header. I cannot find anything in your plugins file that point to either of these two issues. I know this injected CSS is related to your plugin from the selectors – but I am stumped as to why this is being injected here and also where it is coming from.
Notes:
1. The CSS is injected into every page’s header (not just the page containing the pricing table)
2. The discus script is only appended to the plugins css injection on the home page.Any thoughts? Here is the CSS that is injected into the home page – on all other pages, the same CSS injection takes place (just without the discus <script):
<style type="text/css"> #ptp-1063 div.ptp-item-container { border-radius: 5px; padding: 0px; margin-left: 0px; margin-right: 0px; } #ptp-1063 div.ptp-item-container div { margin: 0px; } #ptp-1063 div.ptp-plan{ border-top-right-radius: 5px; border-top-left-radius: 5px; font-size: 2em; padding: 0.9375em 1.25em; } #ptp-1063 div.ptp-price{ font-size: 1.25em; padding: 0.9375em 1.25em; } #ptp-1063 div.ptp-cta{ border-bottom-right-radius: 5px; border-top-left-radius: 5px; padding-top: 1.25em; padding-bottom: 1.25em; } #ptp-1063 a.ptp-button{ border-radius: 5px; font-size: 1.5em; color: #ffffff ; background-color: #3498db ; border-bottom: #2980b9 4px solid; margin: 0px; } #ptp-1063 a.ptp-button:hover{ background-color: #2980b9 } div#ptp-1063 .ptp-highlight a.ptp-button{ color: #ffffff ; background-color: #e74c3c ; border-bottom: #c0392b 4px solid; } div#ptp-1063 .ptp-highlight a.ptp-button:hover{ background-color: #c0392b ; } #ptp-1063 div.ptp-bullet-item{ font-size: 1em; padding: 0.9375em 0.5em 0.9375em 0.5em; } #ptp-1063 div.ptp-most-popular{ border-radius: 5px; font-size: 1.3em; } <script type="text/javascript"> // <![CDATA[ var disqus_shortname = 'magnetichq'; (function () { var nodes = document.getElementsByTagName('span'); for (var i = 0, url; i < nodes.length; i++) { if (nodes[i].className.indexOf('dsq-postid') != -1) { nodes[i].parentNode.setAttribute('data-disqus-identifier', nodes[i].getAttribute('rel')); url = nodes[i].parentNode.href.split('#', 1); if (url.length == 1) { url = url[0]; } else { url = url[1]; } nodes[i].parentNode.href = url + '#disqus_thread'; } } var s = document.createElement('script'); s.async = true; s.type = 'text/javascript'; s.src = '//' + 'disqus.com/forums/' + disqus_shortname + '/count.js'; (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s); }()); //]]> </script> </style>
- The topic ‘Strange CSS being added to page’ is closed to new replies.