- This topic has 6 replies, 2 voices, and was last updated 3 years, 9 months ago by
Support Team.
- AuthorPosts
- August 9, 2019 at 7:06 am #18717
maxbuzz
ParticipantHi,
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.August 9, 2019 at 7:31 am #18718maxbuzz
Participantjust to add it also afflicts some child destinations too.
ALL parent destinations do not show the imageAugust 9, 2019 at 7:37 am #18720maxbuzz
Participantfor 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.
August 9, 2019 at 7:39 am #18721maxbuzz
ParticipantAlso is there a way to remove the text “Destination:” that appears on the header.
Only the actual name of the destination is neededAugust 9, 2019 at 10:38 am #18735Support Team
KeymasterHello @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.
August 9, 2019 at 11:51 am #18737maxbuzz
Participantfunction 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 themeAugust 12, 2019 at 3:32 am #18786Support Team
KeymasterHello @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.
- AuthorPosts
- The forum ‘WP Travel’ is closed to new topics and replies.