prevent category page from also highlighting blog-page menu

Add this to your child theme’s functions.php: add_filter(‘nav_menu_css_class’, ‘fix_category_menu_active_class’, 10, 2); function fix_category_menu_active_class($classes, $item) { // If we’re on a category archive if (is_category()) { // Get the ID of the blog page (posts page) $blog_page_id = get_option(‘page_for_posts’); // If this menu item is the blog page if ($item->object_id == $blog_page_id) { // Remove the … Read more

link a page I created as a under construction and link it to the menu

I believe setting the coming soon as the shop page will accomplish what you want but I may be misunderstanding what you want accomplished. To set the WooCommerce shop page, navigate to WooCommerce > Settings and click the Products Tab. In the section labeled “shop page,” click the dropdown and choose your coming soon page.

Change color of active link to navigation menu

Consider changing the CSS to: .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__label { color #365ABA !important; } Please note, this only works on the Πρότζεκτς and Γνωρίστε μας menu items. As these are the only pages that get the current-menu-item class when on their respective pages. For the other menu items, you may need to look at re-adding the menu … Read more

conditional menu with custom fields

This can be done by registering different menu location for different users and then update location according to the User type which user selected during the registration time. We need to add the given code to functions.php file of the theme. In this code we are registering custom menus. function custom_menus_registration() { register_nav_menus( array( ‘user_type_a_menu’ … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)