Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #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,
    Orhan

    #399076

    Hi Orhan!

    Can you post the code you need to add to your website here using pastebin.com?

    Regards,
    Yigit

    #399086

    I have not used pastebin.com before. I hope it is OK?!

    http://pastebin.com/pc1syaya

    #399090

    Like this?

    <script src=”http://pastebin.com/embed_js.php?i=pc1syaya”></script&gt;

    I think it is not! :)

    • This reply was modified 9 years, 9 months ago by erkuto.
    #399102

    Hey!

    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!
    Yigit

    #399142

    Thank you Yigit!

    #399143

    By the way, how did you add this code from pastebin? I couldn’t achieve it :)

    #399192

    Hi!

    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,
    Yigit

    #399234

    Yigit,

    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.
    #399332

    Hey!

    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!
    Yigit

    #399489

    Selam 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,
    Orhan

    #399539

    Merhabalar Orhan!

    It does work fine on my local insallation. Do you mind posting a temporary login so we can look into it? :)

    Best regards,
    Yigit

    #399545
    This reply has been marked as private.
    #399558

    Merhabalar 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,
    Yigit

    #399563

    I saw it too :)

    Thank you Yiğit!

    #399565

    Hey!

    Always happy to help Orhan! Let us know if you have any other questions or issues :)

    Best regards,
    Yigit

Viewing 16 posts - 1 through 16 (of 16 total)
  • The topic ‘SEO things need to be added somewhere…’ is closed to new replies.