WordPress Multilingual CMS Navigation
When you are constructing the website, you can make use of the navigational components that are provided by the WPML CMS Navigation add-on plugin. This consists of a breadcrumb trail, drop-down options, and navigation in the sidebar. The component will function without requiring any configuration and can be used in its current state. Including navigation components in your theme is the only thing left for you to do.
The Multilingual Content Management System edition of WPML comes with the WPML CMS Navigation add-on plugin already installed. The top page navigation provides visitors with a direct path to the most important parts of your website. In the past, it has typically been accomplished with the help of bespoke PHP functions that list pages and the subpages that they contain. WPML makes this process easier by taking care of the necessary work for you. Include the PHP function that will invoke the menu, and it will be generated for you automatically: <?php do_action(‘icl_navigation_menu’); ?> This call is also responsible for the generation of the drop-down options on this website. (wpml.org). Breadcrumbs enable the user to navigate back to the homepage from any point within the site. Add the following code to the theme in order to incorporate it:?php do_action(‘icl_navigation_breadcrumb’);?> It will function properly from any page, post, category, or tag, as well as findings from a search. The sidebar navigation informs visitors of the existence of other pages that are similar to the one they are currently watching. It provides a listing of all of the offspring for a given parent. This is not an exhaustive list of all of the pages on the site; rather, it is a list of sites that are close by. Additionally, you have the ability to personalize both the beginning and the conclusion of the heading for the sidebar navigation. In the WPML Navigation menu, you’ll find these various choices. Include the following in sidebar.php if you want to add navigation to the sidebar:?php do_action(‘icl_navigation_sidebar’);?> This feature is also available as a WordPress Widget, which means that it can be added to the toolbar by utilizing the Widgets control, which can be found on the Appearance Widgets page.
Advanced customization options
WPML comes with a default design for the navigational components that is not particularly attractive. The default formatting for the sidebar and breadcrumbs trail is extremely minimal, whereas the formatting for the upper drop-down menus is quite extensive. The reason for this is because a significant amount of CSS is necessary in order to make the top menus drop down. Visit the following documentation sites for specifics on how to style the navigation on your website or add custom HTML to your menu, if you want to learn more about these topics:
Reviews
There are no reviews yet.