Okay
  Public Ticket #1478653
3rd party scripts not working
Closed

Comments

  • silverlithomes started the conversation

    Hi, I'm finding it hard/impossible to use 3rd party scripts or code with your theme. Here are two examples, but over the course of the day yesterday I tried at least half a dozen different forms from different companies and none of them worked. 

    So for example, I'm trying to have this code, a Bitrix widget, show up on my page:

    <scr<script data-skip-moving="true">
            (function(w,d,u){
                    var s=d.createElement('script');s.async=1;s.src=u+'?'+(Date.now()/60000|0);
                    var h=d.getElementsByTagName('script')[0];h.parentNode.insertBefore(s,h);
            })(window,document,'https://cdn.bitrix24.com/b6262545/crm/site_button/loader_3_edhwvh.js');
    </script>ipt type="text/javascript"> alert("Enter your js here!" ); </script>

    NOT WORKING AS YOU CAN SEE HERE http://studiolaflamme.com/bitrix-widget-preview/

    Here is one that's just html form from Agile CRM, also doesn't work http://studiolaflamme.com/agile-crm-preview-form/

    [vc_row type="in_container" full_screen_row_position="middle" scene_position="center" text_color="dark" text_align="left" overlay_strength="0.3" shape_divider_position="bottom"][vc_column column_padding="no-extra-padding" column_padding_position="all" background_color_opacity="1" background_hover_color_opacity="1" column_shadow="none" column_border_radius="none" width="1/1" tablet_text_alignment="default" phone_text_alignment="default" column_border_width="none" column_border_style="solid"][vc_column_text]

    Fill out my
  •  2,744
    Andrew replied

    Hey there,

    Thanks for reaching in,

    Please use the code in the google analytics section under salient options > General settings > CSS/Script related.

    Hope this helps,

    Regards


  • silverlithomes replied

    I don't think you understood what I'm trying to do here. The codes  pasted below are forms. They need to appear on a page, in a specific place. Using visual computer I'm putting them into a text box but none of them are appearing anywhere. I'm not sure how you answer is relevant to my problem. 

  •  2,744
    Andrew replied

    Hey there,

    Thanks for reaching in,

    My answer is relevant because you can never paste js code inside of visual composer text element like that. That's why they are embedded elsewhere.

    Regards

  •  2,744
    Andrew replied

    Alternatively you can try and use the raw js element in the salient visual composer

  • silverlithomes replied

    Ok. So I embed the code in the same box as google analytics, correct? Can you explain how to I make it appear at the right place within the page? Thanks

  • silverlithomes replied

    Oh that worked. Ok thanks, didn't know that was for that....sorry:-)

  •  2,744
    Andrew replied

    Hey there,

    Thanks for reaching in,

    Awesome, Please be sure to reach in incase you encounter another issue.

    Regards

  • silverlithomes replied

    Hi

    So it worked for the script, but this one here isn't a script and it didn't work using js element:-(

  •  2,744
    Andrew replied

    Hey there, 

    Thanks for reaching in,

    Can you add the code here as an attachment so we can take a look at it.

    Regards

  • silverlithomes replied

  •  8,466
    Tahir replied

    Hey Again,

    If you have Page Transitions Turned On Please Switch the Animated Transition Method to "Standard" in Salient Theme Options -> Page Transition Section.

    Also be sure to check/uncheck this Disable Fade Out On Click option : http://prntscr.com/8f3bj7

    Moreover if it doesnt work Turn off the Page Transitions and check for Browser Console Errors : https://codex.wordpress.org/Using_Your_Browser_to_Diagnose_JavaScript_Errors

    Could you allow us to log in to your website backend dashboard so we can check on this for you more?. We are gonna need the username and password of admin user as well as the login url.

    Be.st


    ThemeNectar Support Team