Archived topic
Need some fixes on the new layout
9 replies · Started by Mouse on June 28, 2020
1- The category description is not being shown on the category pages.
For example in the category home improvement, I want the heading to be moved a little up and show the description below. As you may be able to understand from the screenshot below.
https://ibb.co/fd5bR7W
2- Want the link at the bottom of the page to be removed. You may also see that in the screenshot. https://ibb.co/hBZbWmV
3- At the bottom of each blog post I want to show the category and only show up to 5 different pages from that category
And I want the category to be changed to More from the Category : "Category Name"
Screenshot: https://ibb.co/ZVDrZXC
4- From the homepage I want the images to be aligned. Screenshot: https://ibb.co/L9K1n5D
Hi there,
1. You are using header elements on category archives so you'd need to use this method to add it in:
https://generatepress.com/forums/topic/add-custom_field-description-in-category-header/#post-375162
2-4. Can you open a new topic for each of the questions so we can work on each one separately?
https://www.screencast.com/t/gSja5lzL68
Thanks!
It says add this
add_shortcode( 'term_description', 'tu_term_description' );
function tu_term_description() {
ob_start();
echo term_description( get_queried_object()->term_id', 'category' );
return ob_get_clean();
}
and then add this:
[term_description]
Isn't there a simpler way to do this?
Hi there,
You can use this template tag in your Page Hero to get the term description: {{custom_field.description}}
The template shows {{custom_field.description}} on search pages... What do I do for them?
There is no description on the search result page so I would recommend adding the search result page in exclusion rule and create a separate header element specifically for the search result page if you need one.
Is there a way to add description of this as well as the 404 pages?
If not... Then how do I create the seperate pages for both?
Hi there,
create a header element specifically for Search results.
Now add your description or whatever content you need in your header element.
Repeat this for the 404.
Thanks for all the help guys.
You're welcome