Viewing 20 posts - 1 through 20 (of 20 total)
  • Author
    Posts
  • #716554

    Hello, guys!

    I have this javascript, and I need to put it on my homepage.

    <script id=”despegar-root-js” type=”text/javascript” src=”//www.decolar.com/comunidadeafiliados/widgetGenerator/widgetCore.js” data-id=”29111″ data-context-path=”//www.decolar.com/comunidadeafiliados”></script>

    Tried with both codeblock and textblock but the script seems to interact with other entities nearby – posts sliders, some background images are vanishing with the code on layout.

    Can someone help me?

    • This topic was modified 8 years, 1 month ago by Jubaboxer.
    #716583

    Hi Jubaboxer!

    function add_custom_js(){
    ?>
    <script id=”despegar-root-js” type=”text/javascript” src=”//www.decolar.com/comunidadeafiliados/widgetGenerator/widgetCore.js” data-id=”29111″ data-context-path=”//www.decolar.com/comunidadeafiliados”></script>
    <?php
    }
    add_action('wp_footer', 'add_custom_js');

    Let us know if we can do anything else for you.

    Thanks a lot

    Best regards,
    Basilis

    #716595

    Can I paste it on codeblock? Cuz is messing with the text above the java block!

    Look at my homepage!

    :D Ty for the fast response!

    #716610

    Help!

    #716710

    Hi,

    Please try to paste it to the bottom of your themes functions.php file under Appearance->Editor.

    Best regards,
    Rikard

    #716858

    Pasted on, but nothing… still buggin’

    On my previous site is working fine! I’m no programmer, but Ive pasted the script on a code block in my old theme and all went well…

    • This reply was modified 8 years ago by Jubaboxer.
    #716864

    Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /home/calicultural/www/wordpress/wp-content/themes/enfold/functions-enfold.php:1) in /home/calicultural/www/wordpress/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/masonry_entries.php on line 32

    #716868

    OMG now WP is not working anymore…

    Warning: Cannot modify header information – headers already sent by (output started at /home/calicultural/www/wordpress/wp-content/themes/enfold/functions-enfold.php:1) in /home/calicultural/www/wordpress/wp-admin/post.php on line 197

    Warning: Cannot modify header information – headers already sent by (output started at /home/calicultural/www/wordpress/wp-content/themes/enfold/functions-enfold.php:1) in /home/calicultural/www/wordpress/wp-includes/pluggable.php on line 1174

    #716894

    Please, Im tottally desperate… Clear the browser cache, and cant login on WP-admin anymore.

    Tryed to reedit functions.php via FTP, ando nothing. It’s my working project, I can’t loose everything!

    Please, help ASAP!

    #716901

    Hi!

    Please post FTP and WP admin logins here privately so we can look into it.

    Best regards,
    Yigit

    #716903

    The WP error is:

    Warning: Cannot modify header information – headers already sent by (output started at /home/calicultural/www/wordpress/wp-content/themes/enfold/functions-enfold.php:1) in /home/calicultural/www/wordpress/wp-includes/pluggable.php on line 1174

    #716905

    Hey!

    Please post FTP and WP admin logins here privately, otherwise we cannot really help.

    Best regards,
    Yigit

    #716911

    Here it goes!

    #716921

    Did you get the infos?

    #716960

    hello?

    #716980

    OMG, Thanks Google.
    I’ve resaved both functions.php and functions-enfold.php on Notepad++ in UTF-8 without BOM and finally I can login in WP again. All working without session crashes.

    Still, I cant make the JS works…

    So, Im back to the start.

    #718087

    Hi,

    What is that script supposed to do? Where did you get it?

    Best regards,
    Ismael

    #718092

    This script is a ticket finder to a lot of traveling sites. Seems like a booking.com. I already put it in a lot of another sites in WP, but it does’nt work with enfold. And I really need it.
    The old site has the script working. http://www.calicultural.com.br, in the home page, I’ve just pasted the java in a code block. Every time I did it in enfold, a lot of bugs occurs.

    Hoping if someone can help me…

    Juba.

    • This reply was modified 8 years ago by Jubaboxer.
    #719662

    Hi,

    as written in our support policy, we can’t support every 3rd party plugin out there, so you really need to ask the plugin’s author about it. If he can’t help you, then you could hire a freelance developer, who can make this plugin compatible for you: http://kriesi.at/contact/customization

    Best regards,
    Andy

    #719685

    Oh, nice…

Viewing 20 posts - 1 through 20 (of 20 total)
  • You must be logged in to reply to this topic.