Tagged: x
-
AuthorPosts
-
April 26, 2016 at 8:10 am #900286
ErnestasSysojevasParticipantDear X Theme,
we are going to use a Monitoring Software tool which requires code integration on each page of the website just before closing </body> HTML tag.
As I am not familiar with coding, could you please help me and explain what would be the safiest and quickest way to do that?
Most of our pages are product pages from Woocommerce.Thank you in advance!
April 27, 2016 at 1:24 am #901509
ChristopherModeratorHi there,
Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.
Please add following code in child theme’s functions.php file :
function my_custom_footer_output() { ?> ...code here... <?php } add_action( 'wp_footer', 'my_custom_footer_output', 99999 );Hope it helps.
April 27, 2016 at 2:39 am #901592
ErnestasSysojevasParticipantThis reply has been marked as private.April 27, 2016 at 11:10 am #902481
RupokMemberHi there,
Thanks for updating. We never recommend to edit original theme files in any circumstances. If you want a easy solution then I’d suggest you to use this plugin – https://wordpress.org/plugins/header-and-footer-scripts/
It will help you to add script to header or footer easily.
Hope this helps.
Cheers!
April 28, 2016 at 2:47 am #903655
ErnestasSysojevasParticipantThank you, I’ve done this using the plugin 🙂
April 28, 2016 at 2:21 pm #904595
JadeModeratorYou’re welcome. Glad to hear you got it sorted. 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-900286 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
