WordPress Split Menu

You can do this via css by pushing the first element of the second menu over, and then position:absolute your logo e.g. (not tested) #element li:nth-child(4) { margin-left:300px; } #logo { position:absolute; left:500px top:50px; } Change the pixels to your desired lengths This can also be done with jQuery append e.g. $( “#element li:nth-child(3)” ).append( … Read more

Styleswitcher or themeswitcher to allow user to switch back to standard view from mobile device

Wouldn’t it be enough to switch mobile/desktop via a $_SESSION variable, make the “switch to desktop link” include something like ?switchtodesktop=1 and have the header contain something like session_start(); if ($_GET[‘switchtodesktop’]) { $_SESSION[‘switchtodesktop’] = true; } $desktop = isset($_SESSION[‘switchtodesktop’]); […] if ($desktop) { // only desktop css without media queries } else { // default … Read more

Hiding a php element from mobile browsers

This is more of a php question than a WP question, but there’s a great function here that does what you’re looking for. function is_mobile() { // Get the user agent $user_agent = $_SERVER[‘HTTP_USER_AGENT’]; // Create an array of known mobile user agents // This list is from the 21 October 2010 WURFL File. // … Read more

Switch to other theme at URL

Given that this is an older question and the mention plugin is very much depreciated, both the WordPress core and themes have changed greatly since then. Nowadays, most themes are mobile-friendly and will conform based on the amount of screen space is being used to visit a website.

Does WordPress create mobile menus automatically?

The default WordPress themes, from Twenty Eleven onwards, support varying degrees of responsive design, including menus, and any child themes will automatically inherit this behaviour, unless the child theme does something to override it. It is possible to create menus in your theme using wp_nav_menu that can then be hidden or displayed for various screen … Read more

Second nav is merged with the first in mobile

In functions.php, change the function magazine_responsive_menu_settings() to the following: function magazine_responsive_menu_settings() { $settings = [ ‘mainMenu’ => __( ‘Menu’, ‘magazine-pro’ ), ‘subMenu’ => __( ‘Submenu’, ‘magazine-pro’ ), ‘menuClasses’ => [ ‘combine’ => [ ‘.nav-primary’, ‘.nav-header’, ], ], ]; return $settings; } Basically, in the combine, I removed ‘.nav-secondary’, This is how it looks like now

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)