I like the theme a lot, but I want to change how the header menu – my main navigation menu – is displayed on the mobile and tablet version. I don’t need the burger menu, since I only have a few elements in my header anyway, and it makes the site ugly imho.
Is there a way to just have the header menu stay the way it is on desktop for mobile and tablet? Also I’d like a way to make the burger menu disappear. Currently i have it be the same color as the background, but thats an inelegant solution.
I tried with custom CSS, but I don’t seem to be able to target the right classes or IDs. Even with the “@media screen” it doesnt work.
Regards
Maik
when you refresh you can see the menu for a second then it goes away. after disabling the plugin, the menu works again.
does not affect mobile
]]>I have two users setup on our test site that’s being built with Gutenberg. For the account I primarily use when I go to edit text the options to adjust color, bold, italic, add a link, etc. appear in the top menu bar – gotten use to this and find it works well.
However, my coworker when she goes in under her account and goes to edit a page she does not get the text editor options appearing in the top white menu bar. It appears as a floating menu that’s nowhere near where she’s editing and disappears when you scroll down the page. This is incredibly frustrating. I’ve tried logging out of my user profile and into hers and the issue still happens on her profile so it’s not computer specific.
Is there anything we can do so those options appear in the top menu when a text-based block is selected? I don’t get why one user has a totally different setting than the other when they are both administrator accounts.
This is just another frustrating issue in the list of things Gutenberg does randomly without reason – like adding new buttons to a page when they were never there in the first place.
]]>The menus items seen here flash by very quickly then only the word MENU is left:
]]>The dropdown menu that is visible in the tablet and mobile view on my website www.designderivatives.com keeps flickering and users are not able to open up the various sections/links we have on our primary menu. I have tried to enable/disable the menu a couple of times but the problem persists. After the user clicks on the three bars in the tablet/mobile view, the menu disappears after half a second and isn’t visible again. I have also tried to rearrange and remove page links from the primary menu to see if it gets resolved but that doesn’t work either.
Immediate assistance on the same would be appreciated!
Thank You
Completely stumped. I’d appreciate any help. Here’s the link:
https://cegengineering.com/wordpress2/
Thanks.
Steve
]]>I sent you the link in the attachment so you can see that menu disappears on custom filter change below. If you choose ‘most recent’ (that not affects meta_key) menu shows nicely, but if you choose price, all menus disappear.
Here is the code:
if ( ! function_exists( 'noo_landmark_addon_pre_get_posts' ) ) :
function noo_landmark_addon_pre_get_posts( $query ) {
if ( is_admin() ) {
return $query;
}
if ( $query->is_main_query() && $query->is_singular ) {
return;
}
/**
* Set query in archive property
*/
if ( RP_Property::is_property() ) {
$args = array();
/**
* Check order
*/
$default_orderby = isset( $query->query_vars[ 'orderby' ] ) ? $query->query_vars[ 'orderby' ] : get_theme_mod( 'noo_property_listing_orderby', 'date' );
$orderby = isset( $_GET[ 'orderby' ] ) ? sanitize_text_field( $_GET[ 'orderby' ] ) : $default_orderby;
$orderby = strtolower( $orderby );
$order = isset( $query->query_vars[ 'order' ] ) ? $query->query_vars[ 'order' ] : 'DESC';
$args[ 'orderby' ] = $orderby;
$args[ 'order' ] = $order == 'DESC' ? 'DESC' : 'ASC';
$args[ 'meta_key' ] = '';
// global filter
if ( isset($_GET['recent_first']) ) {
$args[ 'orderby' ] = 'date';
$args[ 'order' ] = sanitize_text_field($_GET['recent_first']);
}
if ( isset($_GET['property_price']) ) {
$args[ 'orderby' ] = 'meta_value_num meta_value';
$args[ 'order' ] = sanitize_text_field($_GET['property_price']);
$args[ 'meta_key' ] = 'price';
}
$query->set( 'orderby', $args[ 'orderby' ] );
$query->set( 'order', $args[ 'order' ] );
if ( isset( $args[ 'meta_key' ] ) && ! empty( $args[ 'meta_key' ] ) ) {
$query->set( 'meta_key', $args[ 'meta_key' ] );
}
if ( isset( $args[ 'meta_value' ] ) && ! empty( $args[ 'meta_value' ] ) ) {
$query->set( 'meta_value', $args[ 'meta_value' ] );
}
if ( isset( $args[ 'meta_query' ] ) && ! empty( $args[ 'meta_query' ] ) ) {
$query->set( 'meta_query', $args[ 'meta_query' ] );
}
/**
* Set number show posts
*/
$property_per_page = get_theme_mod( 'noo_property_per_page', 10 );
$query->set( 'posts_per_page', $property_per_page );
$query->set( 'post_status', 'publish' );
}
/**
* Set query in archive agent
*/
if ( RP_Agent::is_archive_agent() ) {
$agent_per_page = get_theme_mod( 'noo_agent_per_page', 10 );
$query->set( 'posts_per_page', $agent_per_page );
$agent_must_has_property = Realty_Portal::get_setting( 'agent_setting', 'agent_must_has_property', false );
if ( $agent_must_has_property === '1' ) {
query_posts( 'post_type=noo_agent&posts_per_page=-1' );
$agent_ids = array();
while ( have_posts() ) : the_post();
$agent_id = get_the_ID();
$user_id = RP_Agent::get_id_user( $agent_id );
if ( $user_id < 1 ) {
continue;
}
$total_property = count_user_posts( $user_id, 'noo_property' );
if ( $total_property > 0 ) {
$agent_ids[] = $agent_id;
}
endwhile;
wp_reset_query();
$query->set( 'post__in', $agent_ids );
}
}
}
add_action( 'pre_get_posts', 'noo_landmark_addon_pre_get_posts' );
endif;
]]>