-
AuthorPosts
-
May 27, 2015 at 8:56 am #450474
Hello from New Zealand, I just want to say that I love my website! Thanks for existing!
I need to add my Google remarketing code. I use the Enfold theme and have already added my analytics code a while ago. I tried some instructions that I found (adding below code with remarketing code in to footer of both functions.php and functions-enfold.php and reuploaded – website went blank)
add_action( ‘wp_footer’, ‘enfold_customization_footerscripts’ );
function enfold_customization_footerscripts() {
?>
<script type = “text/javascript”>
ADDED REMARKETING CODE IN HERE AND REMOVED SCRIPT TAGS
</script>
<?php
}Thank you kindly for your help!
May 27, 2015 at 5:32 pm #450708Hi oldvilladental!
Glad you like Enfold! :)
Login credentials are not working for me, can you please check them once again?Cheers!
YigitMay 28, 2015 at 12:30 am #450847will send shortly
-
This reply was modified 10 years, 5 months ago by
oldvilladental.
May 28, 2015 at 12:32 am #450851This reply has been marked as private.May 28, 2015 at 12:39 am #450853This reply has been marked as private.May 28, 2015 at 5:44 am #450887Hi!
Code has been added.
Regards,
JosueApril 6, 2016 at 3:56 am #608634Hi, I have the same issue. Where did you place the code? I placed it in the same box as the google analytics but it created an odd extra space at the top of the website.
Where should it go?
Thanks,
SladeApril 6, 2016 at 5:50 am #608663Hi!
Please place your js code in the below script where it say’s “//add you script here” and place the whole block of code in Appearance > Editor > functions.php
// Add custom js function custom_excerpt(){ ?> <script> // Add your script here </script> <?php } add_action('wp_footer', 'custom_excerpt');Regards,
VinayJune 6, 2016 at 11:21 pm #643703Hi, did this change within the functions.php? I’m trying to add our Google Remarketing Code and can’t find these lines in the functions.php file. I have the most recent version of Enfold, installed today. Thanks
June 7, 2016 at 1:58 am #643739Hi,
It’s not there, the code is meant to be added to the file, if you’re not using a child theme you can use this plugin to store functions like that:
https://wordpress.org/plugins/functionality/Best regards,
Josue -
This reply was modified 10 years, 5 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.
