Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Zachary Johanson Posted September 9, 2015 Posted September 9, 2015 Any idea why if I add this"<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-55efae41057b3edd" async="async"></script>" to the globalTemplate part it doesn't display anywhere?
Flitterkill Posted September 9, 2015 Posted September 9, 2015 If s7.addthis.com..... is a legitimate url you need to add http: or https: in front of those //
TSP Posted September 9, 2015 Posted September 9, 2015 If s7.addthis.com..... is a legitimate url you need to add http: or https: in front of those //It's a protocol-relative URL and is perfectly valid without http and https. You need to tell us more about the context here, @Zachary Johanson. What do you expect it to display? Have you added any other code than this in order to let it be displayed? I doubt this is the only codebit required. Where exactly in the globalTemplate have you added the include?
Zachary Johanson Posted September 9, 2015 Author Posted September 9, 2015 It's a protocol-relative URL and is perfectly valid without http and https. You need to tell us more about the context here, @Zachary Johanson. What do you expect it to display? Have you added any other code than this in order to let it be displayed? I doubt this is the only codebit required. Where exactly in the globalTemplate have you added the include?Based on their website:http://support.addthis.com/customer/portal/articles/381220-default-code#external-js That is the only code I need to use for external JS. I want the one that fits to the left side. I've noticed ISP has a lot of issues with any JS stuff I add, from anyone. I added the 'include' in two spots to test, one in the <head> portion and one in the <body> portion, neither worked.
Zachary Johanson Posted September 9, 2015 Author Posted September 9, 2015 I read a bit more, I did add the Inline Javascript and then the external.
Dll Posted September 9, 2015 Posted September 9, 2015 Have you activated the item you want to display from the control panel in Addthis?
Zachary Johanson Posted September 9, 2015 Author Posted September 9, 2015 Have you activated the item you want to display from the control panel in Addthis? Genius. I didn't know you had to 'activate' the account for that particular code.Thank you
Flitterkill Posted September 9, 2015 Posted September 9, 2015 It's a protocol-relative URL and is perfectly valid without http and https. Would you believe after all these years I never actually came across this. Crazy...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.