This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Force mobile menu on certain page [SiteOrigin Corp Theme]

Resolved 3 replies customizationthemetheme-corp
6 years ago · Last reply by Andrew Misplon 6 years ago

Dear all,
I use SiteOrigin Corp in a website, for a page I need to use the space usually for the menu for an input form, so my idea was to force the menu in “mobile mode” also for desktop viewport, but I have some trouble with media queries.

In my page I put

function modifica_css_menu () { ?>
                                                               <style type="text/css">
			                                        #mobile-menu-button{
								display: block !important;
								}
								.main-navigation>div{
								display: none !important;
								}
								</style> <?
                                                            }
                            add_action('wp_head','modifica_css_menu',1000);

but I have a problem with the media query, which uses “!important”: how I can disable it?

@media (min-width: 769px)
#masthead #mobile-navigation {
    display: none !important;

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

3
  1. Andrew Misplon Staff 6 years, 3 months ago

    Hi Nicola

    Thanks for reaching out.

    I’ll push an update to resolve this during the week. Here is the pull request on GitHub https://github.com/siteorigin/siteorigin-corp/pull/106.

  2. Nicola Giada 6 years, 3 months ago

    thanks!

  3. Andrew Misplon Staff 6 years, 3 months ago

    Thanks for your feedback. Cheers for now :)

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread