Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
    Posts
  • #922412

    Hello,
    how to set the “Full width submenu” so that the button that is active is highlighted. So I click on the menu item one and this remains marked. Is that possible?

    Best regards,
    Martin

    #922434

    Hey m_reiprich,

    Yes, it is possible to highlight the active menu.

    Add the below CSS to custom styles or in Enfold > General Styling > Quick CSS section.

    /*----------------------------------------
    // CSS -  Submenu Highlight
    //--------------------------------------*/
    
    /* Your css styles for active menu item*/
    #top .active-menu-item,
    #top .active-menu-item a  {
    	background:#000!important;
    	color: #FFF!important;
    }
    
    #top .av-subnav-menu > li > a {    
        border-left-style: none!important;
        border-left-width: 0px!important;
    }

    And the code in the below link to your functions.php
    https://gist.github.com/vinaynkashyap/2c9f689ec3ebe1ec21595b740723d0fe#file-functions-php

    NOTE: This works best when different sections are created using the color section element.

    Best regards,
    Vinay

    #924484

    Hello,

    I am not a programmer and therefore do not know exactly where to install the script in this file. Could you tell me the exact position?

    Best regards,
    Martin

    #925054

    Hi,

    Vinay explained you exactly where to add it, if you read his reply carefully.

    Add the below CSS to custom styles or in Enfold > General Styling > Quick CSS section.

    Thank you

    Best regards,
    Basilis

    #925417

    Hello,

    that is clear to me and it was not my question. It was about the PHP file and where exactly I should install there the script https://gist.github.com/vinaynkashyap/2c9f689ec3ebe1ec21595b740723d0fe#file-functions-php.

    Best regards,
    Martin

    #925495

    Hi,

    Please add the git code to functions.php file which you can access it from WordPress Dashboard > Appearance > Editor

    Best regards,
    Vinay

    #925557

    Sorry, but I can not find this place. When I click on Dashboard, there is only an overview and no editor. But I can also make the changes in the file, just need to know where exactly I need to insert the Skritp.

    #925599

    Hi,

    I’m not sure if you are using a child theme… If you have not installed it here is the link https://kriesi.at/documentation/enfold/using-a-child-theme/

    When the main theme is updated the modified files will get overwritten. A Child theme will help you preserve these modifications when you update the main theme.

    Please install a child theme and insert the script at the bottom of the functions.php which can be accessed via WP Dashboard > Appearance > Editor > Theme Functions (functions.php) or use a FTP client and locate the functions.php file in wp-content\themes\enfold-child\functions.php

    Best regards,
    Vinay

    #926102

    We get closer to the matter. No, I have not used a child theme yet and I did not know it. I have now installed it and executed the steps like this. Unfortunately it does not work yet. I did some screens and hope you see where I made a mistake.

    #926810

    Hi,
    Please post us your login credentials (in the “private data” field), so we can take a look at your backend.

    1. Install and activate ” Temporary Login Without Password “.
    2. Go to ” Users > Temporary Logins ” on the left-side menu.
    3. Click ” Create New “.
    4. Add the email address for the account ( you can use (Email address hidden if logged out) ), as well as the ” Role ” making that the highest possible and the expiry about four days
      ( do be sure that we have enough time to debug ).
    5. Click ” Submit “.
    6. You’ll now have a temporary account. Please provide us here in the private section the URL, so we can login and help you out.

    When your issue is fixed, you can always remove the plugin!
    If you prefer to not use the plugin, you can manually create an admin user and post the login credentials in the “private data” field.

    Best regards,
    Vinay

    #927193

    Hello Vinay,

    but like, here he comes.

    #927265

    Hi,

    I did not do any changes to the code. I created a test page and the menu highlight works fine.

    please check the link in private.

    Best regards,
    Vinay

    #927330

    I see it, it works. But it does not work on my submenus. What could it be?

    #927396

    Hi,

    Would you mind providing a precise link to the page, showing the elements in question? We need to be able to inspect them in order to help :)

    Best regards,
    Vinay

    #927416

    with pleasure. You can find the submenus under the main menu item “Company” or under http://adapted-solutions.com.w017b839.kasserver.com/unternehmen/

    #927528

    Hi,

    We have added the below CSS to Quick section. Please review your site and let us know if you have any issue :)

    /* Current menu item */
     .av-subnav-menu .current-menu-item ,
     .av-subnav-menu .current-menu-item a,
     .av-subnav-menu .current-menu-item a .avia-menu-text {
    background:#000!important;
    }

    Best regards,
    Vinay

    #928060

    Ah very good! So something was missing. Very nice, now it works. One more question, can you change the black to another color? I had tried it in the CSS, but that had not helped.

    #928094

    Hi,

    Just replace this part of the code:

    background:#000!important;

    you can use the values in this post: https://www.w3schools.com/cssref/css_colors.asp
    Hope it helps :)

    Best regards,
    Nikko

Viewing 18 posts - 1 through 18 (of 18 total)
  • You must be logged in to reply to this topic.