No problem, I understand. Looking over our previous mails you did mention you wanted to do this yourself so apologies for bringing up an already asked question.
I have another method of carrying this change out which I’m going to cover below, it’s a bit more forgiving if we make a mistake:
1. Go to Appearance > Editor and edit functions.php. Locate the following function:
/**
* Output the responsive menu collpase point.
*/
function ultra_responsive_menu_css() {
if( ! siteorigin_setting( 'navigation_responsive_menu' ) || ! siteorigin_setting( 'layout_responsive' ) ) return;
$mobile_resolution = apply_filters( 'ultra_responsive_menu_resolution', 1024 );
?>
<style type="text/css" id="ultra-menu-css">
@media screen and (max-width: <?php echo intval( $mobile_resolution ) ?>px) {
.responsive-menu .main-navigation ul { display: none }
.responsive-menu .menu-toggle { display: block }
.responsive-menu .menu-search { display: none }
.site-header .site-branding-container { max-width: 90% }
.main-navigation { max-width: 10% }
#top-bar { display: block }
#top-bar .container { overflow: hidden }
}
</style>
<?php
}
add_action( 'wp_head', 'ultra_responsive_menu_css' );
Replace this function with the following updated function:
if ( ! function_exists( 'ultra_responsive_menu_css' ) ) :
/**
* Output the responsive menu collpase point.
*/
function ultra_responsive_menu_css() {
if( ! siteorigin_setting( 'navigation_responsive_menu' ) || ! siteorigin_setting( 'layout_responsive' ) ) return;
$mobile_resolution = apply_filters( 'ultra_responsive_menu_resolution', 1024 );
?>
<style type="text/css" id="ultra-menu-css">
@media screen and (max-width: <?php echo intval( $mobile_resolution ) ?>px) {
.responsive-menu .main-navigation ul { display: none }
.responsive-menu .menu-toggle { display: block }
.responsive-menu .menu-search { display: none }
.site-header .site-branding-container { max-width: 90% }
.main-navigation { max-width: 10% }
#top-bar { display: block }
#top-bar .container { overflow: hidden }
}
</style>
<?php
}
add_action( 'wp_head', 'ultra_responsive_menu_css' );
endif;
2. Go to Appearance > Editor > style.css and locate:
@media (max-width: 1024px) {
.resp .top-bar-navigation ul ul {
display: none !important;
}
}
Replace this rule with the following rule:
@media (max-width: 1024px) {
.resp .top-bar-navigation ul ul {
visibility: hidden;
}
}
3. Install the following plugin: https://wordpress.org/plugins/code-snippets/. Activate. This plugin negates the use of a child theme.
4. Go to Snippets > Add New and create a new snippet called: Ultra Responsive Menu CSS. Add the following code to the snippet:
if ( ! function_exists( 'ultra_responsive_menu_css' ) ) :
/**
* Output the responsive menu collpase point.
*/
function ultra_responsive_menu_css() {
if ( ! siteorigin_setting( 'navigation_responsive_menu' ) || ! siteorigin_setting( 'layout_responsive' ) ) return;
$mobile_resolution = apply_filters( 'ultra_responsive_menu_resolution', 1024 );
?>
<style type="text/css" id="ultra-menu-css">
@media screen and (max-width: <?php echo intval( $mobile_resolution ) ?>px) {
.responsive-menu .main-navigation ul { display: none }
.responsive-menu .menu-toggle { display: block }
.responsive-menu .menu-search { display: none }
.site-header .site-branding-container { max-width: 90% }
.main-navigation { max-width: 10% }
}
</style>
<?php
}
add_action( 'wp_head', 'ultra_responsive_menu_css' );
endif;
For Scope at the bottom, select: Only run on site front-end, then, click Save changes and activate. You must click this button and not just the Save changes button.
5. Finally, go to Appearance > Custom CSS and insert:
/* Top Bar */
@media (max-width: 1024px) {
.resp .top-bar-navigation ul .menu-item-has-children a:after,.resp
.top-bar-navigation ul .page_item_has_children a:after {
display: initial;
}
.resp .top-bar-navigation ul ul {
visibility: visible;
}
}