Viewing 20 posts - 1 through 20 (of 22 total)
  • Author
    Posts
  • #166918
    Ta0102
    Participant

    <link rel=”index” href=”「Top Page URL」” />

    I want to put this in the head.

    However, there is only this in the editing of the theme.
    Stylesheet
    (style.css)
    Theme Functions
    (functions.php)
    RTL Stylesheet
    (rtl.css)
    Archives
    (archive.php)

    #166956
    sapana
    Participant

    @ta0102: I am a bit not clear about your code do you want to put the anchor link in the header section? Let me know if you are familiar with coding otherwise small changes in file will crash your site.

    Kind Regards,
    Sapana

    #166959
    Ta0102
    Participant

    > Specify rel = “index”
    Let’s put the following tag in each page head in the site if you want to display the top page in a high ranking.
    <link rel = “index” href = “http://www.example.com/&#8221; />
    It tells the search engine the location of the index page (that is, the top page).
    Please enter the URL of the top page for the href attribute.

    I am referring to this.
    What can I do to do this?

    #166960
    Ta0102
    Participant

    <link rel =” index” href =”TOP_URL” />

    Specify rel = “index”
    Let’s put the following tag in each page head in the site if you want to display the top page in a high ranking.

    <link rel = “index” href = “http://www.example.com/&#8221; />
    It tells the search engine the location of the index page (that is, the top page).
    Please enter the URL of the top page for the href attribute.

    https://www.lykaon-search.com/seo/post-1470

    It is the URL that I refer to.

    #166961
    Ta0102
    Participant

    <link rel =” index” href =”TOP_URL” />

    Specify rel = “index”
    Let’s put the following tag in each page head in the site if you want to display the top page in a high ranking.

    <link rel = “index” href = “http://www.example.com/&#8221; />
    It tells the search engine the location of the index page (that is, the top page).
    Please enter the URL of the top page for the href attribute.

    https://www.lykaon-search.com/seo/post-1470

    It is the URL that I refer to.

    #166991
    sapana
    Participant

    @ta0102: Go to=> Child Theme Folder=> function.php file and add the following code

    function catch_base_add_link(){
    
        global $post;
    
        echo '<link rel="index" href="' . get_the_permalink( $post->ID ) . '" />';
    
    }
    add_action('wp_head', 'catch_base_add_link', 1);

    Note:please add the href=”” your site url.
    Let me know if this works out!

    Kind Regards,
    Sapana

    #167132
    Ta0102
    Participant

    Hello.
    Sapana.
    I found functions.php, where should I add this code?

    Also,
    Note: Add href = “” to the URL of your site.
    Let me know if this will work!
    I do not know the meaning of this.

    I added the URL of my site,
    href = “MY SITE”
    Is this OK?

    #167207
    sapana
    Participant

    @ta0102: Did you add that code in function.php of the child theme folder? Yes you need to add your site url in href portion,let me if you find any difficulty?

    Kind Regards,
    Sapana

    #167234
    Ta0102
    Participant

    I understood to put the code, but I do not know where to put the code.

    Is it the top?
    Is it at the bottom?
    Is it on the way?

    Tell me in detail.
    Please tell me what code (functions.php) can be changed at once.

    #167235
    Ta0102
    Participant

    I included the code I taught, but the display got messed up.

    So it was restored.

    However,
    <link rel = “index” href = “http://www.example.com/&#8221; />
    I just want to put it in the head …

    #167240
    sapana
    Participant

    @ta0102:Do you have a child theme? If yes then copy that above code in function.php file of child theme.You can copy that code any place in function.php file.

    Kind Regards,
    Sapana

    #167244
    sapana
    Participant

    @ta0102: Can you please put the code again? so that I can look into that issue. It is working fine in my end.

    Kind Regards,
    Sapana

    #167278
    Ta0102
    Participant

    I will insert the code I taught from now.
    Can you check now?

    #167621
    Ta0102
    Participant

    he-y!!
    I will insert the code I taught from now.
    Can you check now?

    #167623
    sapana
    Participant

    @ta0102:I checked your site I think you have miss something, it isn’t shown yet. Did you follow all the procedure?

    Kind Regards,
    Sapana

    #167634
    Ta0102
    Participant

    ok

    #167635
    Ta0102
    Participant

    I changed it now.

    The display has changed.

    #167636
    Ta0102
    Participant

    Please check it as soon as possible.
    Please.

    #167638
    Ta0102
    Participant

    he-y!!

    #167641
    Ta0102
    Participant
Viewing 20 posts - 1 through 20 (of 22 total)
  • The topic ‘rel=”index”Designation’ is closed to new replies.