- This topic has 1 reply, 2 voices, and was last updated 7 years, 9 months ago by .
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
First of all... Merry Christmas Eve everyone!
This is my first time posting in the community. I've heard about here as being one of the most helpful forums in the WordPress Community, so I'd thought I'd ask for some help from the Genesis experts 🙂
I'm working on an e-commerce project for a good friend of mine using Genesis child theme and Woocommerce.
He'd like to keep the submenu of the first (primary) menu item open by default on the homepage only, and when scrolling down, have the primary menu become sticky and submenu close.
I found a site that replicates this effect below:
Is there a simple way to achieve this via editing the function.php and style.css?
Any suggestion would be of great help!
the example site you show here, this isn't actually a sub menu, it is just a standard menu.
you would not be able to achieve this using sub menus at all.
what you would need to do is register and build a completely new menu, and build this menu into the front-page.php
if you require submenus like the example site (where you hover and the sub fly out to the right) then that would need to be all done as well
if you check out the Sixteen Nine theme, that has a menu in the side, this is basically exactly what you need to use.
as for having the main menu stick to the top on scroll, this effect is like on Cafe Pro theme
i'm not sure what your theme development skills are like, bit this would be quite a extensive task, and the design would need to work with mobile devices as well.
© 2023 WPEngine, Inc.