BriteWebs on "Cubic Menus and mobile display"

ساخت وبلاگ

Hi there,

I think I see what you mean! The first step to change the menu that the Jetpack mobile theme displays by default is to obtain your primary menu's ID.

To obtain your menu's ID, follow these steps:

  • Install and activate the Functionality plugin.
  • Navigate to Appearance > Menus in your admin area.
  • Choose your Primary Menu from the Select a menu to edit: dropdown menu and then click on the Select button.
  • Look at and copy the number at the end of the URL to get the menu ID.

For example, in this URL:

https://yoursitename.com/wp-admin/nav-menus.php?action=edit&menu=75

The number 75 is the menu ID.

Next, navigate to Plugins > Edit Function and add this code:

function jetpackme_mobile_theme_menu() { retu 75;
}
add_filter( 'jetpack_mobile_theme_menu', 'jetpackme_mobile_theme_menu' );

Replace 75 with the menu ID of the menu you'd like to display on the mobile theme.

Save your changes and then navigate back to Appearance > Menus. This time, select Social Menu from the Select a menu to edit: dropdown menu and edit the menu items so that they're linking to your social profiles again.

Let me know how you get on with those steps or if you have any other questions.

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 230 تاريخ : پنجشنبه 6 خرداد 1395 ساعت: 19:31