- This topic has 5 replies, 2 voices, and was last updated 3 years ago by
Support Team.
- AuthorPosts
- March 20, 2020 at 5:51 am #24774
hellodiscoverchina@gmail.com
ParticipantHi,
I have applied the code but the text “description” remains. How do I remove description at the bottom left as well as at the centre of the page. See https://imgur.com/a/0QXvU5W
function travel_log_child_remove_cat_titles($title) { if ( is_archive() ) { $title = single_cat_title( '', false ); } elseif ( is_tag() ) { $title = single_tag_title( '', false ); } elseif ( is_author() ) { $title = '<span class="vcard">' . get_the_author() . '</span>' ; } return $title; } add_filter( 'get_the_archive_title', 'travel_log_child_remove_cat_titles' );
March 20, 2020 at 8:02 am #24781Support Team
KeymasterHello,
Can you please provide us your site URL so that we can inspect further and provide you with a precise fix?
Regards.
March 20, 2020 at 8:50 am #24785hellodiscoverchina@gmail.com
ParticipantCheck it out at https://explorersg.com/activities/
Thanks!
March 20, 2020 at 10:10 am #24789Support Team
KeymasterHello,
Please add following CSS following the path Admin Panel > Appearance > Customize > Additional CSS, to remove ‘description’ as per the screenshot.
.archive .page-header .taxonomy-description{ display:none; } .archive .page-subheading p{ display:none; } .archive .site-breadcrumbs .trail-items{ margin-top: 10px; } .archive .page-header{ padding-bottom: 0px; }
Hope this helps.
If you have further queries, let us know.
Thank you.
March 20, 2020 at 10:20 am #24790hellodiscoverchina@gmail.com
ParticipantIt worked! Awesome man!
Another question I faced: Is it possible to edit the template of the archives page. The page is stretched to the entire page. Is it possible to get it to conform to one of the templates?
PS: I’m not using the suggested themes.
March 20, 2020 at 11:04 am #24793Support Team
KeymasterHello,
If you are willing to edit the template of the archives page, please once create the folder named ‘WP Travel’ under child theme and copy the file in the hierarchy same as the hierarchy under templates folder then edit the template file as per your requirement.
For detail assistance regarding how to override template, please refer below given link:
https://wptravel.io/documentations/developer-documentation/#doc-template-override-6
Regarding creating child theme, please refer below given link:
https://wptravel.io/how-to-create-a-child-theme/
Hope this helps.
If you have any queries further, let us know.
Thank you.
- AuthorPosts
- The forum ‘WP Travel’ is closed to new topics and replies.