hello!
for SEO it’s important to set title and description für the sites. in the theme listinghive in standard the title and category description is hide at the post category page. how can I add this?
Actually I tried to change the “post-archive.php” and set in child theme but then the title was set before every post and also the description was set after eacht post. Thanks!
It’s possible, but requires code changes in the blog template file. If you use ListingHive, please create a child theme for it How to create a child theme - HivePress Help Center and copy index.php file from the parent theme. Then add this code after line 1 in the copied file:
Just sharing a more advanced snippet if you also want to show the content of the Blog page before the posts, in addition to showing category titles and descriptions (for RentalHive theme, it should be added right after line get_header(); in the index.php file):
FYI - I added the category title with your code in the index.php. and I want to place the description under the posts of the category-page, therefor I used code snippet: