Forum Replies Created
Viewing 3 posts - 1 through 3 (of 3 total)
-
AuthorPosts
-
José Antonio
ParticipantHi Elvin, work fine, thanks!
José Antonio
ParticipantHi Elvin, thank you very much for your support.
I have not explained myself well, sorry.
I filter my content through a single tag that I have called “featured-home”, but I need to show also only the category it belongs to, not the tag used to filter the content.
So I found the snippet in answer #post-26285
But your snippet puts the span tag right at the beginning:
<div class="wp-show-posts-inner" style=""> <div class="wp-show-posts-image wpsp-image-center"> <span class="cat_links"> <span class="new-products"> <ul class="category tag"> <li><a href="https://contoso.com" rel="category tag">New products</a></li> </ul> </span> </span> <a href="https://contoso.com" title="Buy now"> <img width="680" height="680" src="image.jpg"> </a> </div> <header class="wp-show-posts-entry-header"> <h2 class="wp-show-posts-entry-title"> <a href="https://contoso.com/buy-now/" rel="bookmark">Buy now</a> </h2> </header> <!-- .entry-header --> </div> <!-- wp-show-posts-inner -->
For SEO purposes I would like to place it inside the header tag, just behind the title, this would be my ideal code:
<div class="wp-show-posts-inner" style=""> <div class="wp-show-posts-image wpsp-image-center"> <a href="https://contoso.com" title="Buy now"> <img width="680" height="680" src="image.jpg"> </a> </div> <header class="wp-show-posts-entry-header"> <h2 class="wp-show-posts-entry-title"> <a href="https://contoso.com/buy-now/" rel="bookmark">Buy now</a> </h2> <h3 class="category tag"> <a href="https://contoso.com" rel="category tag">New products</a> </h3> </header> <!-- .entry-header --> </div> <!-- wp-show-posts-inner -->
it’s possible?
Thanks
José Antonio
ParticipantHi!, is possible add the categories inside the header, just after the title?
Thanks!
-
AuthorPosts
Viewing 3 posts - 1 through 3 (of 3 total)