Skip to content Skip to sidebar

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.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 14:00 8:00 – 14:00 8:00 – 14:00 8:00 – 14:00 8:00 – 14:00 -
- 15:00 – 17:00 15:00 – 17:00 15:00 – 17:00 15:00 – 17:00 15:00 – 17:00 -

Supporter timezone: Europe/Madrid (GMT+02:00)

Tagged: 

This topic contains 39 replies, has 1 voice.

Last updated by sonishA 21 hours, 21 minutes 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