How can I selectively translate navigation submenu items?

[ad_1]

I use GTranslate with the default Twenty Twenty-Four theme. For some blocks I don’t want a translation: I then use the additional CSS class “notranslate” in these blocks.

A problem arises if I want a submenu block not to be translated, but (some of) the submenu items (page links) to be translated: if I use the additional CSS class “notranslate” in the submenu block, none of the submenu items are translated.

How can I selectively translate navigation submenu items?

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer