Use an alternative menu for mobile sites

Posted in: Newspaper
Post count: 72

Currently it seems like the mobile site is using the same Main Menu as the desktop site. But I need to add additional menu items and change the order of items for mobile display. How can I create a special menu and have that used on xs (mobile) sites?

Post count: 1043

That can only be achieved by using the mobile theme https://forum.tagdiv.com/the-mobile-theme/. You can create a different menu and assign it to the mobile theme from Appearance>Menus section.

Post count: 72

Since we have a responsive theme in Newspaper plus other fantastic AMP plugins, why is there a need for a separate mobile plugin? Is it only related to page speed? That shouldn’t be an issue so much anymore.

5 years ago there would have been a need for a separate mobile plugin, but this Newspaper theme needs no extra theme to worry about. It is a responsive theme. Instead, development should go into a conditional statement to show one menu over another when certain screen sizes are used.

Why doesn’t TagDiv developer use the wp_is_mobile() function to easily and quickly show one menu over another? Here is more info: https://codex.wordpress.org/Function_Reference/wp_is_mobile

Can use code like this?

<?php
if(wp_is_mobile()) {
echo MOBILE MENU ;
} else {
echo DESKTOP/NORMAL MENU;
}
?>

Post count: 23312

Hello paperweight,

Please notice that AMP is important because it helps web pages load faster which potentially improves usability and convinces visitors to stay longer on your site engaging with your content. The logic is straightforward: faster load time leads to better engagement, which reduces bounce rate and improves mobile ranking. It’s an optional plugin!
Also, for a better understanding regarding on AMP plugin, please check here -> https://www.searchenginejournal.com/difference-accelerated-mobile-pages-amp-mobile-friendly-pages/172967/

Thanks for the message!

Post count: 72

Right, I think you misunderstand me. I’m saying AMP is good. But AMP is the only reason to have a “mobile website”. There is no need for Newspaper to have a separate mobile theme because it is a responsive theme. Because it’s responsive, it works on mobile sites. So I’m suggesting instead to just add a conditional statement to show an alternative menu on smaller devices 🙂

Post count: 72

I solved this with If Menu plugin:
https://wordpress.org/plugins/if-menu/

I make some menu items only display on Mobile device.

But it would be easier if I could just have a Desktop menu and a Mobile menu and then select those in the Newspaper settings. I have had other themes that do this 😉

Viewing 6 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic.