bug – destination header

Homepage Forums WP Travel bug – destination header

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

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #18717

    maxbuzz
    Participant

    Hi,

    In normal course the image assigned to a destination occurs as a background of the header when that destination is opened.
    But if a destination has a child then the parent destination will NOT display the image in the background.

    #18718

    maxbuzz
    Participant

    just to add it also afflicts some child destinations too.
    ALL parent destinations do not show the image

    #18720

    maxbuzz
    Participant

    for some child destinations, some random images (from demo theme) turn up. even when image is added to that destination that image does not go off.

    #18721

    maxbuzz
    Participant

    Also is there a way to remove the text “Destination:” that appears on the header.
    Only the actual name of the destination is needed

    #18735

    Support Team
    Keymaster

    Hello @maxbuzz,

    We will inspect the issue regarding the header image and fix them if found and released in the next update.

    As for removing the “Destination” from the header from the title of the archive page, add below given code in your child theme functions.php file.

    function wp_travel_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', 'wp_travel_child_remove_cat_titles' );

    Hope this helps.

    Thank you.

    #18737

    maxbuzz
    Participant

    function wp_travel_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’, ‘wp_travel_child_remove_cat_titles’ );

    Thanks. That worked.
    I would suggest that you add a toggle switch in customisation to put off all headers. That would be more useful that adding in child theme

    #18786

    Support Team
    Keymaster

    Hello @maxbuzz,

    This is the default feature of the WordPress so providing the option for this feature is not quite relavant.

    However, glad that the code worked out.

    Further, if you have any queries/confusion then kindly let us know.

    Thank you.

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

You must be logged in to reply to this topic.