Removing "Archives: Trips"

Homepage Forums WP Travel Removing "Archives: Trips"

Tagged: 

This topic contains 5 replies, has 2 voices, and was last updated by  Support Team 1 week, 2 days ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #24774

    Hi,

    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' );
    #24781

    Support Team
    Keymaster

    Hello,

    Can you please provide us your site URL so that we can inspect further and provide you with a precise fix?

    Regards.

    #24785

    Check it out at https://explorersg.com/activities/

    Thanks!

    #24789

    Support Team
    Keymaster

    Hello,

    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.

    #24790

    It 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.

    #24793

    Support Team
    Keymaster

    Hello,

    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.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.