Forum Replies Created
-
AuthorPosts
-
maxbuzz
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 thememaxbuzz
ParticipantAlso is there a way to remove the text “Destination:” that appears on the header.
Only the actual name of the destination is neededmaxbuzz
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.
maxbuzz
Participantjust to add it also afflicts some child destinations too.
ALL parent destinations do not show the imagemaxbuzz
ParticipantHi,
I tried copying the code in again, realised there were some ‘spaces’ extra and the error went of.
But its still far from flawless, in normal mode the button looks overlapped by the trip code like this https://tinyurl.com/yxpu6ot7and on hover it looks ugly with 2 different sized and colored buttons overlapping like this
https://tinyurl.com/y3hmcqtcmaxbuzz
ParticipantHi,
Tried the above code but it gives an error on Additional CSS as shown here
https://tinyurl.com/y2esvp3zIf you proceed anyway, the button shows up but looks like its overlapped by tripcode.
https://tinyurl.com/yxpbydfoAlso on hover, the whole button just becomes red with no text visible, so changed color values after which hover stopped working
maxbuzz
ParticipantPlease check this post, https://wptravel.io/support-forum/topic/gallery-thumbnails/#post-18040 it clearly details the problem
Crux of the matter is there is NO Control on the size of thumbnails displayed in the gallery of a trip and in the search section of homepage
So whatever is the value you define in functions.php and in thumbnail size of settings, the thumbnails are always displayed based on the width of the screen. As mentioned in the post #18040 it is ~365px at its widest (even if mentioned 250 in all settings). As the display size is always larger than the actual size of the thumbnail the images are stretched to that size drastically reducing quality making very poor looking pages and website.
This is a severe issue and would be a deal breaker if not resolved.
maxbuzz
ParticipantLike mentioned in the original post. I have regenerated the thumbnails every time i have changed the thumbnail settings.
maxbuzz
ParticipantHi,
Many thanks for providing this. Here is my experience with adding that to the child theme.
1. I changed the thumbnails to 250×250 as that’s what I had put in the functions.php and regenerated the thumbnails.
The thumbnails were now rectangular and not square and therefore cropped. But I was happy that at least they were sharp. This is how it looked
https://tinyurl.com/y4mxt32tand the 1st image in the gallery.
https://tinyurl.com/y3l4cn8z
Note there is no noticeable deterioration in the thumbnail2. I got more greedy and changed the thumbnail size to 300×300 and regenerated the thumbnails. To my shock and dismay, it was now back to the original state.
changing back to any other size now seems to have no effect.
I have viewed this on different computers, clearing the cache, etc but there has been no effect.You can now see that the thumbnail is large (365 px) and quality is poor
https://tinyurl.com/yy98cny3
as compared to the image in gallery https://tinyurl.com/y3l4cn8zThe thumbnails that are affected are in “post filter section” of frontpage
https://tinyurl.com/yyskjmt2and ‘featured trips’ section of frontpage
https://tinyurl.com/y34c59f9apart from the gallery in ‘trip’ as described above.
Apart from that other thumbnails seem to be ok
My understanding is that whatever you define in function.php is getting overruled by some settings that define thumbnail sizes based on display size (large, medium, small..)
Irrespective of what you set in functions.php the thumbnail size is 365px when the display is wide, as window size decreases the thumbnail size reduces to 280px until the number of thumbnails displayed in the window switches to 1 and the width becomes 450px.
So the solution would probably have to address this.maxbuzz
ParticipantHi,
Currently the set of trips drawn up from the latest based on the trip ID.
Is it possible to give small function to run in the child them that could pick the set of trips based on the last updated trips. This way could give some flexibility in deciding what trips show up, and none of the locations are left empty while some are overfull.maxbuzz
ParticipantHi,
Once try adding below given CSS by replacing that we have provided.
#gallery .item img {
width: 250px!important;
}
If this does not work then go to Admin Panel > Setting > Media > Thumbnail and update the thumbnail size to your desired one and save the setting.Then regenerate the thumbnail using the plugin mentioned above.
Hope this helps.
Let us know if that works or not?
This will not work as the size of 365×215 is hardcoded in the function add_image_sizes, and nowhere defined in CSS.
So what happening is whatever size the thumbnail has been created this is upscaling to display as gallery thumbnail. As its upscaling the images are losing their clarity and making the page look poor.Please move the size definition to CSS or look at some other way to ensure that thumbnails look good.
maxbuzz
ParticipantHi,
This works but I would still consider this a temporary patch.
This would still qualify as a bug as its illogical to assume that any tour company would have max 9 or any arbitrary no. defined by a developer as the total number of tours.
1. In the current system whatever no. you put there is a risk that some trips randomly dont show up because the total number has gone over your preset limit. Also there is no way to figure out which trips wont appear. Some locations will show long lists and some locations none.
2. if you set the number large it will take a long time for your home page to load.The correct and more elegant way would be to provide paging OR infinite scrolling after a user-defined limit for the number of trips per location.
eg. If I have 150 tours and I set 9 as a page size. Now for any of the locations where number crosses 9 paginations will appear. Also there has to be a meathod by which the tours appear (sorted) in the list, sorted either by departure date or price or date of creation or similarmaxbuzz
ParticipantHi,
I have figured out what causes the problem.
If you use the horizontal or vertical filters and filter by location they give the right result.
If you use a shortcode in a page even that gives the right result, even with multiple locations.In Customize -> Home Page Sections -> Post Filter Section you select single locations it works well.
The problem is that it cannot display more than 9 trips in total. Once your total trips cross 9 it will randomly not show trips under some location.
I think you have applied a max. no of trips to be displayed under ‘ALL’, this is curtailing the collection of trips to 9 instead of limiting display of trips to 9 under each location.maxbuzz
ParticipantHi,
I have not done any setting
I have just used the shortcode [wp_travel_enquiry_form]maxbuzz
ParticipantHi,
Sorry for not being clear.
I know how to switch between list and grid, my query was
If i just want to display the grid/list icons in the horizontal filter is the css that I have done
.wp-toolbar-filter-field.wt-filter-by-travel-locations,
.wp-toolbar-filter-field.wt-filter-by-itinerary-types,
.wp-travel-filter-button.
set to display none the best way to do it?It is working for me the query is if this is the best way to achieve it
-
AuthorPosts