- This topic has 21 replies, 2 voices, and was last updated 5 years, 1 month ago by Ta0102.
-
AuthorPosts
-
February 28, 2019 at 7:17 am #166918Ta0102Participant
<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)February 28, 2019 at 11:41 pm #166956sapanaParticipant@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,
SapanaFebruary 28, 2019 at 11:48 pm #166959Ta0102Participant> 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/” />
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?February 28, 2019 at 11:52 pm #166960Ta0102Participant<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/” />
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.February 28, 2019 at 11:53 pm #166961Ta0102Participant<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/” />
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.March 1, 2019 at 6:26 am #166991sapanaParticipant@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,
SapanaMarch 3, 2019 at 7:52 pm #167132Ta0102ParticipantHello.
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?March 4, 2019 at 11:03 pm #167207sapanaParticipant@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,
SapanaMarch 5, 2019 at 1:46 am #167234Ta0102ParticipantI 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.March 5, 2019 at 1:58 am #167235Ta0102ParticipantI included the code I taught, but the display got messed up.
So it was restored.
However,
<link rel = “index” href = “http://www.example.com/” />
I just want to put it in the head …March 5, 2019 at 2:07 am #167240sapanaParticipant@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,
SapanaMarch 5, 2019 at 2:48 am #167244sapanaParticipant@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,
SapanaMarch 5, 2019 at 7:38 pm #167278Ta0102ParticipantI will insert the code I taught from now.
Can you check now?March 11, 2019 at 1:36 am #167621Ta0102Participanthe-y!!
I will insert the code I taught from now.
Can you check now?March 11, 2019 at 1:47 am #167623sapanaParticipant@ta0102:I checked your site I think you have miss something, it isn’t shown yet. Did you follow all the procedure?
Kind Regards,
SapanaMarch 11, 2019 at 3:29 am #167634Ta0102Participantok
March 11, 2019 at 3:31 am #167635Ta0102ParticipantI changed it now.
The display has changed.
March 11, 2019 at 3:33 am #167636Ta0102ParticipantPlease check it as soon as possible.
Please.March 11, 2019 at 3:55 am #167638Ta0102Participanthe-y!!
March 11, 2019 at 4:00 am #167641 -
AuthorPosts
- The topic ‘rel=”index”Designation’ is closed to new replies.