1
Well, I have this html to activate the title and article link:
<h1 class='post-title entry-title'>
<b:if cond='data:post.link'>
<a expr:href='data:post.link'><data:post.title/></a>
<b:else/>
<b:if cond='data:post.url'>
<a expr:href='data:post.url'><data:post.title/></a>
<b:else/>
<data:post.title/>
</b:if>
</b:if>
</h1>
What I want to do is replace the <a>
for <span>
- see:
<h1 class="http://post-title entry-title"http://>
<b:if cond="http://data:post.link"http://>
<span expr:href="http://data:post.link"http://><data:post.title/></span>
<b:else/>
<b:if cond="http://data:post.url"http://>
<span expr:href="http://data:post.url"http://><data:post.title/></span>
<b:else/>
<data:post.title/>
</b:if>
</b:if>
</h1>
When making this substitution, it will disable the click on the article title, but the link will remain visible to search engines.
This method is wrong, can harm the SEO of the page or no problems?
Olá @Manuel Gerardo Pereira, I had already seen this possibility to use javascript to undo this effect. My question was about the <span> tag (I’ve already been clarified)! I don’t think I’ll remove the link from the article - this modification was only for aesthetics! I wanted to leave the title of the articles of my blog, like the titles of the blog articles made in Wordpress. Thank you all for your clarifications.
– Paulo Roberto
@Pauloroberto If the question is aesthetic, you can "disguise" the link with CSS.
– bfavaretto