-
AuthorPosts
-
February 19, 2015 at 5:48 pm #399074
Hi there,
My SEO advisor is suggesting me to add some codes to my website but I don’t know exactly where do I need to add it. The codes are below. Where I need to add it all? And, do I add it directly (without any extra code or something)?
Thanks,
OrhanFebruary 19, 2015 at 5:54 pm #399076Hi Orhan!
Can you post the code you need to add to your website here using pastebin.com?
Regards,
YigitFebruary 19, 2015 at 6:02 pm #399086I have not used pastebin.com before. I hope it is OK?!
February 19, 2015 at 6:04 pm #399090Like this?
<script src=”http://pastebin.com/embed_js.php?i=pc1syaya”></script>
I think it is not! :)
- This reply was modified 9 years, 9 months ago by erkuto.
February 19, 2015 at 6:13 pm #399102Hey!
Please add following code to Functions.php file in Appearance > Editor
function add_custom_meta(){ ?> <meta name="google" content="nositelinkssearchbox" /> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <?php } add_action('wp_header', 'add_custom_meta');
Cheers!
YigitFebruary 19, 2015 at 6:42 pm #399142Thank you Yigit!
February 19, 2015 at 6:43 pm #399143By the way, how did you add this code from pastebin? I couldn’t achieve it :)
February 19, 2015 at 7:36 pm #399192Hi!
You are welcome! :)
I simply copied the code from the link you posted – https://kriesi.at/support/topic/seo-things-need-to-be-added-somewhere/#post-399086 :)Regards,
YigitFebruary 19, 2015 at 8:44 pm #399234Yigit,
I added that code to functions.php but I didn’t see that codes when I clicked “View Source”. What’s wrong with it? Why it didn’t add to pages?
Thanks,
Orhan- This reply was modified 9 years, 9 months ago by erkuto.
February 20, 2015 at 12:04 am #399332Hey!
My bad! Please change the code to following one
function add_custom_meta(){ $output = '<meta name="google" content="nositelinkssearchbox" /> <meta http-equiv="content-type" content="text/html; charset=UTF-8">'; echo $output; } add_action('wp_head', 'add_custom_meta');
Cheers!
YigitFebruary 20, 2015 at 8:45 am #399489Selam Yigit,
I was needed to add 2 more things. I changed that code as below. I could not be sure if I modified the code right?! I tried to add the code below and in your last message above as well. In either case, I couldn’t see the code in our webpage. Can you please check it what’s wrong with it?
function add_custom_meta(){ $output = '<meta name="google" content="nositelinkssearchbox" /> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <link rel="author" href="https://plus.google.com/+insanaYATIRIMPlus/" /> <link rel="publisher" href="https://plus.google.com/+insanaYATIRIMPlus" />'; echo $output; } add_action('wp_head', 'add_custom_meta');
Thanks,
OrhanFebruary 20, 2015 at 11:15 am #399539Merhabalar Orhan!
It does work fine on my local insallation. Do you mind posting a temporary login so we can look into it? :)
Best regards,
YigitFebruary 20, 2015 at 11:36 am #399545This reply has been marked as private.February 20, 2015 at 12:07 pm #399558Merhabalar Orhan!
Please review your website now. I moved the code to closer to the top and i can see it in source code now
Best regards,
YigitFebruary 20, 2015 at 12:16 pm #399563I saw it too :)
Thank you Yiğit!
February 20, 2015 at 12:22 pm #399565 -
AuthorPosts
- The topic ‘SEO things need to be added somewhere…’ is closed to new replies.