Tagged: child theme, code
-
AuthorPosts
-
June 24, 2019 at 4:48 pm #1112953
Hello,
I need to paste the Retargetting code as I am running a campaign in Google and I want to targe users that already visited my site.
The problem is that i cannot past the code as in the Child editor theme it doesnt appear the header file.
In the options I saw you have one section for google services but here is cannot only paste the analytics account. Any solution for this problem?
Thanks
marcos
June 25, 2019 at 6:05 am #1113116Hey marcosmendieta,
What code do you need to add and where exactly? We can give you a function to use.
Best regards,
RikardJune 25, 2019 at 10:55 am #1113196This is the code i need to put, different one that the google analytics (private info field)
June 26, 2019 at 5:38 am #1113462Hi,
Thanks for that, and where should it go? Header/after opening body tag/footer?
Best regards,
RikardJune 26, 2019 at 8:37 am #1113524As metioned in my first messahe, it should go in the header.
June 26, 2019 at 4:44 pm #1113657Hi,
Please post us your login credentials (in the “private data” field), so we can take a look at your backend.
- Install and activate ” Temporary Login Without Password “.
- Go to ” Users > Temporary Logins ” on the left-side menu.
- Click ” Create New “.
- Add the email address for the account ( you can use (Email address hidden if logged out) ), as well as the ” Role ” making that the highest possible and the expiry about four days
( do be sure that we have enough time to debug ). - Click ” Submit “.
- You’ll now have a temporary account. Please provide us here in the private section the URL, so we can login and help you out.
When your issue is fixed, you can always remove the plugin!
If you prefer to not use the plugin, you can manually create an admin user and post the login credentials in the “private data” field.Best regards,
BasilisJune 26, 2019 at 5:37 pm #1113672You cna use my details
June 27, 2019 at 10:17 am #1113860Hi,
Please try this in your functions.php file:
function marcosmendieta_add_custom_code(){ ?> Script goes here <php? } add_action('wp_head', 'marcosmendieta_add_custom_code');
Best regards,
RikardJune 27, 2019 at 10:23 am #1113864I got the following error message:
Your PHP code changes were rolled back due to an error on line 14 of file wp-content/themes/enfold-child/functions.php. Please fix and try saving again.
syntax error, unexpected ‘?’
June 27, 2019 at 7:53 pm #1114082Hi marcosmendieta,
Please try like this:
function marcosmendieta_add_custom_code(){ ?> Script goes here <?php } add_action('wp_head', 'marcosmendieta_add_custom_code');
Best regards,
VictoriaJuly 2, 2019 at 8:50 am #1115081Again error message syntax error, unexpected ‘?’
Apparently the issue is in ?>July 2, 2019 at 4:03 pm #1115211Hi marcosmendieta,
Can you show us the whole code you have in your functions.php?
Just paste your code in https://pastebin.com/ then post the link here.
You can put the link in private content, if you want it to be seen only by you and the moderators.Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.