-
AuthorPosts
-
January 24, 2016 at 9:46 pm #762245
Hello Jackson,
Thanks for the updates! Please edit your page and make sure to add a custom
cv-donate
class in your button. This is what you have missed that is why the button doesn’t work.Please let us know how it goes.
January 25, 2016 at 5:50 am #762811I’m getting this error, Do you know what this means?
January 25, 2016 at 6:11 am #762838Actually, ignore above^ It’s working, Thanks So much for your Help!!!! The page does seem to keep loading though, like it never finished loading, just says waiting for available socket…
January 25, 2016 at 6:24 am #762861Glad everything is working 🙂
If you need anything else, please let us know.
April 14, 2016 at 8:34 am #882216HI,
my domain is – http://www.matchedbettor.co.uk
I want to add code to my header to get live chat form Zendesk to only appear on certain pages.
However I can only find one header file and it makes the live chat show on every single page.
How can I solve this?
Here is the code I am using –
<!-- Start of profitgenie Zendesk Widget script --> <script>/*<![CDATA[*/window.zEmbed||function(e,t){var n,o,d,i,s,a=[],r=document.createElement("iframe");window.zEmbed=function(){a.push(arguments)},window.zE=window.zE||window.zEmbed,r.src="javascript:false",r.title="",r.role="presentation",(r.frameElement||r).style.cssText="display: none",d=document.getElementsByTagName("script"),d=d[d.length-1],d.parentNode.insertBefore(r,d),i=r.contentWindow,s=i.document;try{o=s}catch(c){n=document.domain,r.src='javascript:var d=document.open();d.domain="'+n+'";void(0);',o=s}o.open()._l=function(){var o=this.createElement("script");n&&(this.domain=n),o.id="js-iframe-async",o.src=e,this.t=+new Date,this.zendeskHost=t,this.zEQueue=a,this.body.appendChild(o)},o.write('<body onload="document._l();">'),o.close()}("https://assets.zendesk.com/embeddable_framework/main.js","profitgenie.zendesk.com"); /*]]>*/</script> <!-- End of profitgenie Zendesk Widget script -->
April 14, 2016 at 5:18 pm #883193Hi There,
Remove the code from header file, and add the code below on your child theme’s functions.php file.
function my_custom_head_output() { if (is_page( XX )): ?> <!-- Start of profitgenie Zendesk Widget script --> <script>/*<![CDATA[*/window.zEmbed||function(e,t){var n,o,d,i,s,a=[],r=document.createElement("iframe");window.zEmbed=function(){a.push(arguments)},window.zE=window.zE||window.zEmbed,r.src="javascript:false",r.title="",r.role="presentation",(r.frameElement||r).style.cssText="display: none",d=document.getElementsByTagName("script"),d=d[d.length-1],d.parentNode.insertBefore(r,d),i=r.contentWindow,s=i.document;try{o=s}catch(c){n=document.domain,r.src='javascript:var d=document.open();d.domain="'+n+'";void(0);',o=s}o.open()._l=function(){var o=this.createElement("script");n&&(this.domain=n),o.id="js-iframe-async",o.src=e,this.t=+new Date,this.zendeskHost=t,this.zEQueue=a,this.body.appendChild(o)},o.write('<body onload="document._l();">'),o.close()}("https://assets.zendesk.com/embeddable_framework/main.js","profitgenie.zendesk.com"); /*]]>*/</script> <!-- End of profitgenie Zendesk Widget script --> <?php endif; } add_action( 'wp_head', 'my_custom_head_output', 99 ); ?>
Replace the XX with the page ID, where you want the live chat to appear.
Hope it helps, Cheers!
April 15, 2016 at 8:37 am #884269That worked a treat.
Thanks!
April 15, 2016 at 9:14 pm #885130Glad we could help.
Cheers!
June 8, 2016 at 7:13 pm #1032846Hi,
I’d like to add a lucky orange code to my header, do I need to do the whole child theme thing?
Below is the code that i’m supposed to add
<script type=’text/javascript’>
window.__lo_site_id = 54457;(function() {
var wa = document.createElement(‘script’); wa.type = ‘text/javascript’; wa.async = true;
wa.src = ‘https://d10lpsik1i8c69.cloudfront.net/w.js’;
var s = document.getElementsByTagName(‘script’)[0]; s.parentNode.insertBefore(wa, s);
})();
</script>June 8, 2016 at 11:45 pm #1033359Hi There,
Yes, you need to add the code on your child theme’s functions.php file. SO it wont be over written when you do update the parent theme.
Please update your code to this:
function my_custom_head_output() { ?> <script type='text/javascript'> window.__lo_site_id = 54457; (function() { var wa = document.createElement('script'); wa.type = 'text/javascript'; wa.async = true; wa.src = 'https://d10lpsik1i8c69.cloudfront.net/w.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(wa, s); })(); </script> <?php } add_action( 'wp_head', 'my_custom_head_output', 99 ); ?>
Hope it helps, Cheers!
June 29, 2016 at 8:36 pm #1065898Hi Guys,
I also need to place a code into my functions.php file and have copied the file from:
wp-content/themes/x/framework/views/global/_header.php
I’ve made the changes and now gone to put it in my child theme but this is far as my FTP goes (there are no folders beyond this point). Does this mean there is something missing from the child theme:
wp-content/themes/x-child
June 30, 2016 at 12:25 am #1066197 -
AuthorPosts