-
AuthorPosts
-
August 26, 2015 at 6:45 am #369882
I cannot edit this page: http://laurengoss.com/ Without the twitter feed script breaking. Any ideas on that?
Thanks.
August 26, 2015 at 7:28 am #369930Thanks for writing in! Regretfully, at this time I am not entirely certain what it is you would like to accomplish based on the information given in your post. If you wouldn’t mind providing us with a little more clarification on what it is you’re wanting to do (a link to a similar example site would be very helpful, or perhaps some screenshots), we’ll be happy to provide you with a response once we have a better understanding of the situation.
August 26, 2015 at 9:29 am #370066when I edit the page in the text editor (not touching the code to pull in the twitter feed), and if I switch to the visual editor and back again, my script gets commented out.
This:
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?’http’:’https’;if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+”://platform.twitter.com/widgets.js”;fjs.parentNode.insertBefore(js,fjs);}}(document,”script”,”twitter-wjs”);</script>[/column]Gets changed to this:
<script>// <![CDATA[
!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?’http’:’https’;if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+”://platform.twitter.com/widgets.js”;fjs.parentNode.insertBefore(js,fjs);}}(document,”script”,”twitter-wjs”);
// ]]></script>[/column]August 26, 2015 at 1:42 pm #370317Hi there,
Instead of Text element, add your code in a Raw JavaScript element (see: http://prntscr.com/8978un).
Thanks!
August 26, 2015 at 5:22 pm #370469I don’t use Visual Composer — is there another way?
August 26, 2015 at 7:55 pm #370607I found the [x_raw_content] tags and they don’t help – it still gets commented out.
August 26, 2015 at 10:04 pm #370719Hi there,
Thanks for updating the thread! Please update to the latest X version. If it still doesn’t fix it, would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / password
– FTP credentialsDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
August 27, 2015 at 9:55 am #371300This reply has been marked as private.August 27, 2015 at 4:04 pm #371580Hi there,
You can add script in your Customizer via Appearance > Customize > Custom > Javascript and make sure you remove the
<script>
tags before adding the code in Customizer.Let us know how this goes!
August 31, 2015 at 8:21 am #374403oh….gosh…OK. Thank you! That makes sense and worked just fine!
August 31, 2015 at 8:47 am #374432You’re welcome! 🙂
-
AuthorPosts