Site logo

Archived topic

Crawlability And Indexability Of Hook Element Located At generate_after_content

3 replies · Started by Martin on September 12, 2021

Viewing posts 1–4 of 4

Hello,

I am adding a piece of text after each blog post with some internal links. I create a hook element to be located inside every post in position generate_after_content. I change this hook according to the internal links and text I want to show at each moment.

As there are internal links in that text, something very valuable, I require that the content of the hook is crawled and indexed by the search engines as if it were part of the article.

So, is this hook type crawled and indexed, and therefore, the internal links recognized?

Second related question

I tried first to create a Block instead of a Hook, but I could not select the position generate_after_content. Was my approach of creating a Hook instead of a Block correct?

Hi Martin,

It's really up to Google's crawler bots what it checks on your page. Hooks don't matter. As long as it's inside the page, it gets checked. Hooking only matters depending on how you want it to be read for SEO purposes, particularly semantics.

Say, for example, you want a hooked content to be perceived as a part of content. Considering that, using generate_after_content should be fine as it's inside <article> tag of the single post page which contains the content.

But for the purpose of links being crawled+indexed, as long as it's within <body> it should be fine.

I tried first to create a Block instead of a Hook, but I could not select the position generate_after_content. Was my approach of creating a Hook instead of a Block correct?

Make sure the Block Element's block type is set to "Hook" and not "Content template" or any other template editing types.

Thank you very much!

No problem. :D

This archived topic is closed to new replies.