Title: How to force a HTML dropdown menu to open on loading WordPress page
Last modified: March 2, 2020

---

# How to force a HTML dropdown menu to open on loading WordPress page

 *  [cvanbemmel](https://wordpress.org/support/users/cvanbemmel/)
 * (@cvanbemmel)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/how-to-force-a-html-dropdown-menu-to-open-on-loading-wordpress-page/)
 * I have an iFrame embedded in my WordPress page (using a custom HTML block) for
   massage bookings. See _[ redundant link removed ]_
 * The iFrame loads with a class, [MenuGroup–header–443090](https://i.stack.imgur.com/4JGFH.png),
   containing the various massages), but this MenuGroup is closed on mobile devices.
   When clicking the group title or the chevron, it opens and the massages show 
   in a dropdown.
 * For users who want to book a massage, I find this very distracting. Is there 
   a way to force the group to be opened by default? Using either html, js or css
   code.
 * [Screenshot with closed menu](https://i.stack.imgur.com/BNAe6.png)
    [Screenshot with opened menu](https://i.stack.imgur.com/u4qft.png)
    -  This topic was modified 6 years, 1 month ago by [cvanbemmel](https://wordpress.org/support/users/cvanbemmel/).
    -  This topic was modified 6 years, 1 month ago by [cvanbemmel](https://wordpress.org/support/users/cvanbemmel/).
    -  This topic was modified 6 years, 1 month ago by [cvanbemmel](https://wordpress.org/support/users/cvanbemmel/).
    -  This topic was modified 6 years, 1 month ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhow-to-force-a-html-dropdown-menu-to-open-on-loading-wordpress-page%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

The topic ‘How to force a HTML dropdown menu to open on loading WordPress page’ 
is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/scripts-n-styles_46515d.svg)
 * [Scripts n Styles](https://wordpress.org/plugins/scripts-n-styles/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/scripts-n-styles/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/scripts-n-styles/)
 * [Active Topics](https://wordpress.org/support/plugin/scripts-n-styles/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/scripts-n-styles/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/scripts-n-styles/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [cvanbemmel](https://wordpress.org/support/users/cvanbemmel/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/how-to-force-a-html-dropdown-menu-to-open-on-loading-wordpress-page/)
 * Status: not resolved