Hi Sikho I am enjoying your tutorials very much. I am a complete newbie to Drupal and you make it very easy to understand. Sometimes I have to rewind and replay but the information is all there. Thanks again Gavin😊
You're welcome!😊 To make the submenu appear only on hover, follow these steps: 1) Edit the Menu: Go to Structure > Menus and select the menu you want to edit. 2)Add CSS: In your theme's CSS file, add the following code. 3)Save and Clear Cache: Save your changes and clear the Drupal cache to see the effect. This will make the submenu appear on hover.
Welcome!!! Please find the CSS Code for ur reference below .menu-item-has-children ul { display: none; } .menu-item-has-children:hover ul { display: block; }
Thanks for watching! To customize your site using code, you can utilize Drupal's theming system. You'll need to create or modify a theme and then add CSS to change elements like the body background color. If you need further guidance, let me know!
Hi Sikho
I am enjoying your tutorials very much.
I am a complete newbie to Drupal and you make it very easy to understand.
Sometimes I have to rewind and replay but the information is all there.
Thanks again
Gavin😊
Happy to hear 😊 Gavin, that you are enjoying the tutorials.
thank you for the explanation
You are welcome!
Thank you ma'am excellent explanation! 👏 How do I make the menu so the submenu only shows up when I hover over the menu item? Thank you.
You're welcome!😊 To make the submenu appear only on hover, follow these steps:
1) Edit the Menu: Go to Structure > Menus and select the menu you want to edit.
2)Add CSS: In your theme's CSS file, add the following code.
3)Save and Clear Cache: Save your changes and clear the Drupal cache to see the effect.
This will make the submenu appear on hover.
@@sikhoaursikhateraho5053 thank you ma'am. In step 2, am I missing "the following code" which I am supposed to add?
Welcome!!! Please find the CSS Code for ur reference below
.menu-item-has-children ul { display: none; }
.menu-item-has-children:hover ul { display: block; }
@@sikhoaursikhateraho5053 thank you so much! 🙏
Well explained mam. But what if we want to customize the site using code. How can we do that. Eg: to change the body background color
Thanks for watching! To customize your site using code, you can utilize Drupal's theming system. You'll need to create or modify a theme and then add CSS to change elements like the body background color. If you need further guidance, let me know!
❤
You should also add proagramaticaly way also
Surely will...