Please put following code.
if ( is_search() ) {
if ( is_search() ) {
echo '<li class="active">';
switch ( get_post_type( $post ) ) {
case 'accommodation':
echo 'Your text1' . ' ';
break;
case 'tour':
echo 'Your text2' . ' ';
break;
case 'cruise':
echo 'Your text3' . ' ';
break;
default:
echo esc_html( get_post_type( $post ) ) . ' ';
}
echo esc_html__('SEARCH RESULTS', 'trav');
echo "</li>";
}
Regards, C-Themes
HI,
Can we try to resolve this in few time please?
Thanks
Please find in trav_breadcrumbs function in /inc/functions/functions.php
ok,
and can u tell me where is it?
Thanks
Hi,
You can find following code.
if ( is_search() ) {
echo '<li class="active">';
echo esc_html( get_post_type( $post ) ) . ' ';
echo esc_html__('SEARCH RESULTS', 'trav');
echo "</li>";
}
Replace it like following
if ( is_search() ) {
echo '<li class="active">';
switch ( get_post_type( $post ) ) {
'accommodation':
echo 'Your text1' . ' ';
break;
'tour':
echo 'Your text2' . ' ';
break;
'cruise':
echo 'Your text3' . ' ';
break;
default:
echo esc_html( get_post_type( $post ) ) . ' ';
}
echo esc_html__('SEARCH RESULTS', 'trav');
echo "</li>";
}
Regards, C-Themes
Hi,
ok, see the attachments please,
thanks
Hi,
Please tell me how you want to change the text.
Then I will guide you or help you do.
Regards, C-Themes
Ciao,
as you suggested, I went to look at the following code:
trav_breadcrumbs function in /inc/functions/functions.php file
but I could not understand the operation, I found the word Home but I have to change the writing in yellow (see screenshot attached), where is it?
Please let me know
Regards
Hi,
Please find trav_breadcrumbs function in /inc/functions/functions.php file.
Regards, C-Themes
Hi,
as the request of the customer I customize the theme, I can not find this field on php file (see attached screenshot), please can you tell me where it is?
Thank you