-
AuthorPosts
-
March 6, 2018 at 5:12 pm #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,
MartinMarch 6, 2018 at 5:46 pm #922434Hey 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-phpNOTE: This works best when different sections are created using the color section element.
Best regards,
VinayMarch 9, 2018 at 2:00 pm #924484Hello,
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,
MartinMarch 10, 2018 at 10:30 pm #925054Hi,
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,
BasilisMarch 12, 2018 at 10:12 am #925417Hello,
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,
MartinMarch 12, 2018 at 1:33 pm #925495Hi,
Please add the git code to functions.php file which you can access it from WordPress Dashboard > Appearance > Editor
Best regards,
VinayMarch 12, 2018 at 3:40 pm #925557Sorry, 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.
March 12, 2018 at 4:51 pm #925599Hi,
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,
VinayMarch 13, 2018 at 2:49 pm #926102We 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.
March 14, 2018 at 8:09 pm #926810Hi,
Please post us your login credentials (in the “private data” field), so we can take a look at your backend.- Install and activate ” Temporary Login Without Password “.
- Go to ” Users > Temporary Logins ” on the left-side menu.
- Click ” Create New “.
- 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 ). - Click ” Submit “.
- 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,
VinayMarch 15, 2018 at 10:48 am #927193Hello Vinay,
but like, here he comes.
March 15, 2018 at 1:04 pm #927265Hi,
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,
VinayMarch 15, 2018 at 2:02 pm #927330I see it, it works. But it does not work on my submenus. What could it be?
March 15, 2018 at 3:31 pm #927396Hi,
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,
VinayMarch 15, 2018 at 3:54 pm #927416with pleasure. You can find the submenus under the main menu item “Company” or under http://adapted-solutions.com.w017b839.kasserver.com/unternehmen/
March 15, 2018 at 5:51 pm #927528Hi,
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,
VinayMarch 16, 2018 at 12:11 pm #928060Ah 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.
March 16, 2018 at 1:59 pm #928094Hi,
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 -
AuthorPosts
- You must be logged in to reply to this topic.