- 
		AuthorPosts
 - 
		
			
				
April 17, 2017 at 12:15 pm #778639
Hey,
This code should be added under the <head> tag
<!– TradeDoubler site verification 2949131 –>
Where should I add it?Thanks
Charlotte
http://www.newyorkhotellbokning.se/April 17, 2017 at 12:45 pm #778656Hi Charlotte :)
Please add following code to Functions.php file in Appearance > Editor
function my_custom_code(){ ?> //Your code goes hereRegards,
YigitApril 17, 2017 at 1:06 pm #778664Hey,
I get this when I add the code
Parse error: syntax error, unexpected $end in /home/d8737/newyorkhotellbokning.se/wp-content/themes/enfold-child/functions.php on line 13April 17, 2017 at 2:06 pm #778693function my_custom_code(){
?>
//<!– TradeDoubler site verification 2949131 –>
< ?php
}
add_action(‘wp_head’, ‘my_custom_code’);April 17, 2017 at 3:26 pm #778748Hi charlotteraboff,
Try like this:
function my_custom_code(){ echo "<!– TradeDoubler site verification 2949131 –>"; } add_action('wp_head', 'my_custom_code');Best regards,
VictoriaApril 17, 2017 at 4:26 pm #778798Thanks Victoria.
I didn’t get the error now but is it under the head tag? Because when I try to verified the website through tradedoubler is does not recognised it.April 17, 2017 at 4:41 pm #778804Hey Charlotte!
I noticed an extra space in the first code i posted. Please try the code as following
function my_custom_code(){ ?> //Your code goes here <?php } add_action('wp_head', 'my_custom_code');Cheers!
Yigit- 
		This reply was modified 8 years, 6 months ago by 
Yigit.
 
April 17, 2017 at 5:05 pm #778819Thanks Yigit..
but // is visible on main page now… in the left hand side cornerApril 17, 2017 at 6:30 pm #778845 - 
		This reply was modified 8 years, 6 months ago by 
 - 
		AuthorPosts
 
- You must be logged in to reply to this topic.
 
