Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #369882

    fortyninegroup
    Participant

    I cannot edit this page: http://laurengoss.com/ Without the twitter feed script breaking. Any ideas on that?

    Thanks.

    #369930

    Thai
    Moderator

    Thanks 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.

    #370066

    fortyninegroup
    Participant

    when 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]

    #370317

    Zeshan
    Member

    Hi there,

    Instead of Text element, add your code in a Raw JavaScript element (see: http://prntscr.com/8978un).

    Thanks!

    #370469

    fortyninegroup
    Participant

    I don’t use Visual Composer — is there another way?

    #370607

    fortyninegroup
    Participant

    I found the [x_raw_content] tags and they don’t help – it still gets commented out.

    #370719

    John Ezra
    Member

    Hi 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 credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    #371300

    fortyninegroup
    Participant
    This reply has been marked as private.
    #371580

    Nabeel A
    Moderator

    Hi 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!

    #374403

    fortyninegroup
    Participant

    oh….gosh…OK. Thank you! That makes sense and worked just fine!

    #374432

    Paul R
    Moderator

    You’re welcome! 🙂