Home › Forums › Free Themes › Travel Gem › How to remove "Archives" Tag for All Trips page
Tagged: All Trips
- This topic has 8 replies, 1 voice, and was last updated 2 years, 2 months ago by dinarosley.
-
AuthorPosts
-
February 7, 2019 at 4:06 am #90520TravelclubParticipant
Hello,
Can you please help me to remove the archive word from the All Trips page header.
Thanks
February 7, 2019 at 5:18 am #90527wensolutionsKeymasterHello @travleclub,
To remove the “archive” in the trip archive page you have to go through the child theme.
To know how to create and activate the child theme please refer to below given link:
https://wptravel.io/how-to-create-a-child-theme/
After activating the child theme, please add below given code in your child theme’s functions.php file.
function travel_gem_child_remove_cat_titles($title) { if ( is_archive() && 'itineraries' ==get_post_type() ) { return 'Trips'; } return $title; } add_filter( 'get_the_archive_title', 'travel_gem_child_remove_cat_titles' );
Hope this helps.
Best Regards!!
February 9, 2019 at 11:56 am #90654TravelclubParticipantHi, Thanks the code worked, but it took away all the CSS settings done originally. 🙁
February 10, 2019 at 11:09 pm #90696wensolutionsKeymasterHello @travelclub,
It is quite unlikely to happen.
So can you once check is it the code that really creates the issue or the issue arise after making the child theme?
Hoping to hear from you soon.
Thank you.
Best Regards!!
February 11, 2019 at 10:04 am #90714TravelclubParticipantHey. I think its post we made the child theme, everything else I have been able to fix back as per the required setting, however, I am unable to remove the overlay from the hero image. Unluckily, I don’t remember the one I used originally.
I have tried using the below and nothing seems to work for the overlay issue:
.slider .overlay {
opacity: 0 !important;
}
——————#masthead #custom-header::after {
background: none;
}———————
#custom-header::after {
background: none;
}————————
#custom-header::after {
background: none !important;
}Can you help with this overlay issue 🙁
February 11, 2019 at 11:08 pm #90761wensolutionsKeymasterHello @travelclub,
Please add below given CSS to remove the overlay.
.so-widget-sow-hero .sow-slider-base ul.sow-slider-images li.sow-slider-image::after { background: transparent; }
Hope this helps.
Best Regards!!
February 13, 2019 at 2:15 am #90873TravelclubParticipantThanks!! It did Help 🙂
February 13, 2019 at 2:46 am #90876wensolutionsKeymasterHello @travelclub,
Glad we could help.
Let us know if there is anything further.
Thank you.
Best Regards!!
October 13, 2022 at 12:54 am #186437dinarosleyParticipantHello,
I wanted to do the same thing but, when I saved the code at functions.php, it didn’t apply to WordPress. May I know why?
Looking forward for your reply, thank you
-
AuthorPosts
- You must be logged in to reply to this topic.