-
AuthorPosts
-
November 24, 2016 at 7:31 pm #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.
November 24, 2016 at 9:18 pm #716583Hi 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,
BasilisNovember 24, 2016 at 9:44 pm #716595Can 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!
November 24, 2016 at 10:36 pm #716610Help!
November 25, 2016 at 8:50 am #716710Hi,
Please try to paste it to the bottom of your themes functions.php file under Appearance->Editor.
Best regards,
RikardNovember 25, 2016 at 2:49 pm #716858Pasted 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.
November 25, 2016 at 2:58 pm #716864Warning: 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
November 25, 2016 at 3:06 pm #716868OMG 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
November 25, 2016 at 3:38 pm #716894Please, 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!
November 25, 2016 at 3:46 pm #716901Hi!
Please post FTP and WP admin logins here privately so we can look into it.
Best regards,
YigitNovember 25, 2016 at 3:50 pm #716903The 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
November 25, 2016 at 3:53 pm #716905Hey!
Please post FTP and WP admin logins here privately, otherwise we cannot really help.
Best regards,
YigitNovember 25, 2016 at 4:04 pm #716911Here it goes!
November 25, 2016 at 4:19 pm #716921Did you get the infos?
November 25, 2016 at 5:51 pm #716960hello?
November 25, 2016 at 6:21 pm #716980OMG, 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.
November 29, 2016 at 5:18 am #718087November 29, 2016 at 5:47 am #718092This 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.
December 2, 2016 at 1:29 pm #719662Hi,
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,
AndyDecember 2, 2016 at 1:57 pm #719685Oh, nice…
-
AuthorPosts
- You must be logged in to reply to this topic.