I need to add description on the bottom of the listing category page - basically, the listings view page. Currently, any descrpiption added only shows in the header part - I need to move it down below the listings.
This similar question was answered here Adding description in listing category page but the code didn’t work.
Looks like it addresses the listing_view_page (individual listing) but we need to add text to the listing category page. Please advise.
Yes, it is possible, but it will require a custom implementation. If you are familiar with coding or have a developer, please check these samples: Search · user:hivepress template · GitHub
I want to add it to the actual page content and not the sidebar. And it’s not fixed, pre-set content - it’s the listing category description that is unique to each page.
I tried the above by changing ‘page_sidebar’ to ‘page_content’ and it doesn’t work.
But no code snippet is adding a simple content block to the listings page.
Basically the main content section of this page: Real Estate – ListingHive.
The only option is listing category description but it shows on top in the header, where you have to keep it very short so you can’t really add any valuable content.
Please make sure you add this PHP snippet using this doc: How to add custom code snippets - HivePress Help Center. If you don’t see the changes, please provide more details about which theme you are using and we will try to help.
Yes, using a child theme for ListingHive and added the code to the functions file.
Would you like me to privately share the exact page and the login info?
Unfortunately we can’t debug custom code directly on your site, this is beyond the support scope, but we tested it locally twice (with ListingHive theme) and it should be ok. I recommend trying another way to add this code snippet, e.g. Code Snippets – WordPress plugin | WordPress.org
It worked?
For us, it stays in the header, no matter how we try. Also tried the snippets plugin just to be sure but no change. Everything else in the functions file is populating well but there’s no moving the category description text from the header.
Sorry for the confusion, this snippet duplicates description in the page footer but doesn’t remove it from the header, it should be removed either via CSS or via the child theme (by editing the category header template part).
Thank you for your help. I know what’s happening. We created a custom template for the listing category page without the sidebar and this change doesn’t work there. I’ll try to edit the original template to our needs and see at what point the description vanishes.
Update:
Ok, we need to have the ‘Term description’ block for this to work.
I was using the ‘Hive press page description’ earlier.