Skip to content Skip to sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:
If you're experiencing issues where certain category labels in the dropdown from the [tutor_filter_bar] shortcode are not translating, even though they appear translated in WPML's String Translation, and if clicking on a category in a non-English version redirects to the English version, the issue might be with how the strings are handled in your custom code.
Solution:
First, confirm whether the shortcode has been customized or if there are any theme overrides or custom snippets involved. The issue might stem from hardcoded labels in your functions.php file, which WPML can detect but not properly translate on the frontend. To resolve this, update your code to correctly register and translate the strings using WPML functions. Use

wpml_register_single_string

to register the strings and

wpml_translate_single_string

for translation. This adjustment should ensure that the translations display correctly and that the category links lead to the correct language version.

Please note that this solution might be irrelevant if it's outdated or not applicable to your case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, please open a new support ticket at WPML support forum.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 47 replies, has 1 voice.

Last updated by Paola Mendiburu 1 month, 3 weeks ago.

Assisted by: Paola Mendiburu.

Author Posts
May 7, 2026 at 9:54 am #18019879

sonishA

// ============ Mobile Bottom Navigation for Fanos Bookshelf ============

// Enqueue FontAwesome (if not already loaded by theme)
function kiddino_enqueue_bottom_nav_assets() {
if( ! wp_style_is( 'kiddino-fa', 'enqueued' ) ) {
wp_enqueue_style( 'kiddino-fa', 'hidden link', array(), '6.5.0' );
}
}
add_action( 'wp_enqueue_scripts', 'kiddino_enqueue_bottom_nav_assets' );

// Mobile bottom nav markup
function kiddino_mobile_bottom_nav_markup() {

// URLs
$books_url = esc_url( home_url( '/books/' ) );
$wishlist_url = esc_url( home_url( '/dashboard/wishlist/' ) );
$dashboard_url = esc_url( home_url( '/dashboard/' ) );
$Rewards_url = esc_url( home_url( '/reading-rewards/' ) );

// Tutor LMS links
$quiz_attempts_url = esc_url( tutor_utils()->tutor_dashboard_url( 'my-quiz-attempts' ) );

echo '<nav class="mobile-bottom-nav" aria-label="' . esc_attr__( 'Mobile bottom navigation', 'kiddino' ) . '">';

echo '

<span>' . esc_html__( 'Home', 'kiddino' ) . '</span>
';

echo '

<span>' . esc_html__( 'Rewards', 'kiddino' ) . '</span>
';

echo '

<span>' . esc_html__( 'Favourites', 'kiddino' ) . '</span>
';

echo '

<span>' . esc_html__( 'My Quizzes', 'kiddino' ) . '</span>
';

echo 'hidden link';

echo 'hidden link';

$languages = apply_filters(
'wpml_active_languages',
null,
array(
'skip_missing' => 0,
)
);

if ( ! empty( $languages ) ) {
echo '<div class="mobile-lang-popup">';

foreach ( $languages as $lang ) {
echo ''
. esc_html( $lang['native_name'] ) .
'
';
}

echo '</div>';
}

echo '</nav>';

Its in functions.php
All other pages are working fine

May 8, 2026 at 8:26 am #18022016

Paola Mendiburu
WPML Supporter since 11/2020

Languages: English (English ) Spanish (Español ) Italian (Italiano )

Timezone: Europe/Madrid (GMT+02:00)

Hi there!

I checked the code and the problem seems to come from the CSS conditions used to display the mobile navigation menu.

Currently, the menu is only shown on pages that match these body classes:

.page-reading-rewards
.page-id-9301

However, in the translated version of /reading-rewards/, WPML most likely changes the page slug and also uses a different page ID for the translation. Because of this, those CSS selectors no longer match, so the mobile menu is not displayed.

May 8, 2026 at 9:39 am #18022279

sonishA

In Amharic, the page slug is the same as the English version, and there is no separate page ID.

So, how should I display it?

For the Dashboard and other pages, I used the English main pages only. When I switch the language to Amharic, the translated content appears automatically.

@media (max-width: 768px) {
.archive.post-type-archive.post-type-archive-courses .mobile-bottom-nav,.logged-in.tutor-screen-frontend-dashboard .mobile-bottom-nav,
.single-courses .mobile-bottom-nav, .page-id-20622 .mobile-bottom-nav,.page-reading-rewards .mobile-bottom-nav, .page-id-9301 .mobile-bottom-nav, .tax-course-category .mobile-bottom-nav{
display: flex;
z-index:9999999999;
}
}

rewards.png
May 8, 2026 at 10:10 am #18022437

sonishA

It appeared
Thank you so much

can you see 1 more issue
my tutor lms language filter is working fine in english version
hidden link

but in Amharic version is shows "No language option found"
whereas in english version its displaying languages added in tutor lms categories
hidden link
I have languages in Amharic categories also

May 8, 2026 at 10:33 am #18022483

Paola Mendiburu
WPML Supporter since 11/2020

Languages: English (English ) Spanish (Español ) Italian (Italiano )

Timezone: Europe/Madrid (GMT+02:00)

In that case, please go to the page in Amharic and inspect the <body> class to check which page-id appears there.

Even if the slug is the same as the English version, WordPress usually assigns a different page-id for translated pages.

Then you can add that page-id to your CSS condition as well.

May 8, 2026 at 12:35 pm #18022833

sonishA

hidden link
hidden link

Language filter appeared

but I want If I am in english version and select "Amharic" from this tutor lms pro language filter

It should display all amharic books added in english and amharic version

Right now when I select "Amharic" it only displays few books which were added in tutor lms in english version

May 8, 2026 at 4:38 pm #18023629

Paola Mendiburu
WPML Supporter since 11/2020

Languages: English (English ) Spanish (Español ) Italian (Italiano )

Timezone: Europe/Madrid (GMT+02:00)

Hi there!

I see that they are loading books on hidden link

If the problem persists, are you using some custom code also for that?

May 9, 2026 at 10:02 am #18024222

sonishA

I have opened english version of my site but in filters when I select languages - amharic , it only displays few Amharic books which were added in backend in english version not the Amharic books which are added in site's Amharic version

books.png
May 11, 2026 at 8:52 am #18026440

Paola Mendiburu
WPML Supporter since 11/2020

Languages: English (English ) Spanish (Español ) Italian (Italiano )

Timezone: Europe/Madrid (GMT+02:00)

Hi there!

Could you please let me know if you are using any custom code related to this?

Also, please share an example of a book that is not appearing. That way, it will be easier for me to investigate the issue further.

May 11, 2026 at 10:39 am #18027014

sonishA

I have resolved that

Thank you so much for everything
Can you please kindly check why I don't have language option when I create / edit any course/book in tutor lms pro

Because before using WPML I added amharic and english books and now they are just appearing in english site version

I want to assign Amharic books to Amharic site version

but there is no option for language on the editor

May 12, 2026 at 8:54 am #18029591

Paola Mendiburu
WPML Supporter since 11/2020

Languages: English (English ) Spanish (Español ) Italian (Italiano )

Timezone: Europe/Madrid (GMT+02:00)

The course builder doesn´t have language option. That depends on the plugin

You need to create courses on default language and the translate to the other languages.

May 14, 2026 at 8:35 am #18034955

sonishA

Ok thank you so much
I have added 4 languages in WPML but I want to delete 1 language from the list
When I click edit/add language
I don't have an option to delete any language from the list

How can I remove the language?

May 14, 2026 at 8:39 am #18035007

Paola Mendiburu
WPML Supporter since 11/2020

Languages: English (English ) Spanish (Español ) Italian (Italiano )

Timezone: Europe/Madrid (GMT+02:00)

Hi there!

You can follow this documentation:
https://wpml.org/faq/how-to-completely-remove-a-language-from-your-site/

May 15, 2026 at 11:54 am #18038711

sonishA

Thank you so much
Lastly

add_filter( 'redux/options/kiddino_opt/option_value/kiddino_footer_select_options', 'kiddino_translate_footer_template_id' );

function kiddino_translate_footer_template_id( $value ) {
if ( is_admin() ) {
return $value;
}

if ( ! empty( $value ) ) {
$translated_id = apply_filters( 'wpml_object_id', $value, 'elementor_library', true );

if ( ! empty( $translated_id ) ) {
return $translated_id;
}
}

return $value;
}

add_action( 'wp', 'kiddino_fix_page_footer_template_id' );

function kiddino_fix_page_footer_template_id() {
if ( is_admin() ) {
return;
}

if ( ! is_singular() ) {
return;
}

$post_id = get_queried_object_id();

if ( empty( $post_id ) ) {
return;
}

$settings = get_post_meta( $post_id, '_elementor_page_settings', true );

if ( empty( $settings ) || ! is_array( $settings ) ) {
return;
}

if ( ! empty( $settings['kiddino_footer_builder_option'] ) ) {
$translated_id = apply_filters(
'wpml_object_id',
$settings['kiddino_footer_builder_option'],
'elementor_library',
true
);

if ( ! empty( $translated_id ) && $translated_id != $settings['kiddino_footer_builder_option'] ) {
$settings['kiddino_footer_builder_option'] = $translated_id;
update_post_meta( $post_id, '_elementor_page_settings', $settings );
}
}
}

your representative helped me to display header like this
I am trying to display footer in the same way but its not working for me correctly

Like for header when I am using english version , the complete header is in english and same with Amharic but footer is not working like that

I have added footer manually on some pages but I can't add them on tutor lms pages manually so I want to follow the same process like its used for header please

After its working fine
I'll remove manual footer from english and amharic site version

May 15, 2026 at 4:21 pm #18039600

Paola Mendiburu
WPML Supporter since 11/2020

Languages: English (English ) Spanish (Español ) Italian (Italiano )

Timezone: Europe/Madrid (GMT+02:00)

Hi there!

Thank you for the clarification.

It is possible that the footer template ID itself also needs to be translated through WPML String Translation / Admin Texts Translation, especially if the Kiddino theme stores the footer template ID as a Redux option.

Since the header is already working, the footer may simply be using a different option name that still points to the original language template ID.

Could you please check the following?

- Go to WPML → String Translation
- Click on “Translate texts in admin screens”
- Search for:

- kiddino_footer_select_options
- kiddino_footer_builder_option

Then translate the stored Elementor template ID for each language.

Also, please note that the code you shared is custom code. While I can provide general guidance, custom code implementations are outside the scope of our support policy, so we cannot guarantee debugging or customization of the snippet itself.

That said, I suspect the issue is related to how the footer template ID is stored rather than WPML translation itself.