Forum Replies Created
-
AuthorPosts
-
James
ParticipantThis reply is private.
James
ParticipantHi George
Thanks again for pointing me in the right direction. I had a few attempts at changing the labels using the technique described in that article but to no avail. Luckily on another support thread I found someone who had a similar problem and solved my issue using a version of the code they were given which I edited and inputted into functions.php as follows:
function modify_bar_label( $translated_text, $text, $domain ) {
switch ( $translated_text ) {
case ‘Near’ :
$translated_text = __( ‘Search By Postcode’, ‘tribe-events-calendar-pro’ );
break;
}
return $translated_text;
}
add_filter( ‘gettext’, ‘modify_bar_label’, 20, 3 );This worked perfectly for me for the postcode label. Is there an easy way to edit this code so that I can change the other two labels? (‘Events In’ & ‘Search’)
Cheers for your continued support.
James
James
ParticipantThanks for your help with this George, adding the Latitudes + Longitudes solved my issue! Seems obvious with hindsight..
One more thing which would really benefit my site is to be able to change the text in the filter bar e.g. from ‘Near’ to ‘Enter Your Postcode’. Could you advise what I would need to do to change this text?
Your help is much appreciated.
James
-
AuthorPosts
