{"id":45947,"date":"2015-04-06T06:01:06","date_gmt":"2015-04-06T10:01:06","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=45947"},"modified":"2016-07-15T03:30:26","modified_gmt":"2016-07-15T07:30:26","slug":"magento-how-to-manage-the-mobile-menu-and-how-to-edit-links-in-mobile-view","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/magento-how-to-manage-the-mobile-menu-and-how-to-edit-links-in-mobile-view.html","title":{"rendered":"Magento. How to manage the mobile menu and how to edit links in mobile view"},"content":{"rendered":"<p>\r\n<p>In this tutorial we will teach you how to manage the mobile menu and how to edit the links that appear on mobile view in Magento.<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=KSaju2vTGMY?width=1280&amp;height=720\" rel=\"prettyPhoto\">Magento. How to manage the mobile menu and how to edit links in mobile view<\/a><\/p>\r\n<ol>\r\n<li>\r\n<p>The mobile menu links in Magento are generated from the header and footer links of the main store view:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/04\/magento_how_to_manage_mobile_links_1.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/04\/magento_how_to_manage_mobile_links_1-83x300.jpg\" alt=\"magento_how_to_manage_mobile_links_1\" width=\"83\" height=\"300\" class=\"aligncenter size-medium wp-image-45948\" \/><\/a>\r\n<\/li>\r\n<li>\r\n<p>The main code that defines the mobile menu has the class <strong> &lt;div class=&#8221;swipe&#8221;&gt;<\/strong>. It is added to <strong>header.phtml<\/strong> file in <strong>app\/design\/frontend\/default\/themeXXX\/template\/page\/html<\/strong> directory on your server:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/04\/magento_how_to_manage_mobile_menu_2.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/04\/magento_how_to_manage_mobile_menu_2-300x112.jpg\" alt=\"magento_how_to_manage_mobile_menu_2\" width=\"300\" height=\"112\" class=\"aligncenter size-medium wp-image-45949\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/magento_how_to_manage_mobile_menu_2-300x112.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/magento_how_to_manage_mobile_menu_2-150x56.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/magento_how_to_manage_mobile_menu_2-1024x385.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/magento_how_to_manage_mobile_menu_2.jpg 1131w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li>\r\n<p>In this code you can see the main sources which define the menu links on mobile:<\/p>\r\n<ul class=\"list\">\r\n<li>\r\n<p>the <strong>Home<\/strong> link is located in the same code of the <strong>header.phtml<\/strong> file:<\/p>\r\n<pre class=\"brush:php\">&lt;a href=&quot;&lt;?php echo $this-&gt;getUrl('') ?&gt;&quot; title=&quot;&lt;?php echo $this-&gt;__('Home') ?&gt;&quot; class=&quot;home-link&quot;&gt;&lt;?php echo $this-&gt;__('Home') ?&gt;&lt;\/a&gt;<\/pre>\r\n<\/li>\r\n<li>\r\n<p><strong>My Account<\/strong>, <strong>My Whishlist<\/strong>, <strong>Log In<\/strong> and <strong> Log Out<\/strong> menu links can be found in the <strong>customer.xml<\/strong> file in <strong>&#8220;app\/design\/frontend\/default\/themeXXX\/layout&#8221;<\/strong> directory on your server.<\/p>\r\n<\/li>\r\n<li>\r\n<p><strong>My Cart<\/strong> and <strong>Checkout<\/strong> links code is in the <strong>checkout.xml<\/strong> file in the same directory:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/04\/magento_how_to_manage_mobile_menu_3.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/04\/magento_how_to_manage_mobile_menu_3-300x146.jpg\" alt=\"magento_how_to_manage_mobile_menu_3\" width=\"300\" height=\"146\" class=\"aligncenter size-medium wp-image-45950\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/magento_how_to_manage_mobile_menu_3-300x146.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/magento_how_to_manage_mobile_menu_3-150x73.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/magento_how_to_manage_mobile_menu_3-1024x500.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/magento_how_to_manage_mobile_menu_3.jpg 1210w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li>\r\n<p>Check this tutorial for more details on how to <a target=\"_blank\" href=\"\/help\/magento-how-to-edit-header-links.html\"> manage header links in Magento<\/a>.<\/p>\r\n<\/li>\r\n<li>\r\n<p>the <strong>Currency<\/strong>, as well as the <strong>Language<\/strong> link, are located in <strong>header.phtml<\/strong> file:<\/p>\r\n<pre class=\"brush:php\">\r\n&lt;?php echo $this-&gt;getChildHtml('currency_2') ?&gt;\r\n&lt;?php echo $this-&gt;getChildHtml('store_language_2') ?&gt;<\/pre>\r\n<\/li>\r\n<li>\r\n<p><strong>Note:<\/strong> If you delete these links from the swipe menu code, they will still be displayed on the main store view.<\/p>\r\n<\/li>\r\n<li>\r\n<p><strong> About Us<\/strong>, <strong>Customer Service<\/strong> and <strong>Privacy Policy<\/strong> are Magento static block links which can be edited from admin panel in <strong>CMS-> Static blocks->Footer Links<\/strong> section:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/04\/magento_manage_mobile_menu_4.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/04\/magento_manage_mobile_menu_4-300x120.jpg\" alt=\"magento_manage_mobile_menu_4\" width=\"300\" height=\"120\" class=\"aligncenter size-medium wp-image-45951\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/magento_manage_mobile_menu_4-300x120.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/magento_manage_mobile_menu_4-150x60.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/magento_manage_mobile_menu_4-1024x410.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/magento_manage_mobile_menu_4.jpg 1247w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li>\r\n<p><strong>Product Sitemap<\/strong> and <strong>Category Sitemap<\/strong> links are located in the <strong>catalog.xml<\/strong> file in <strong>&#8220;app\/design\/frontend\/default\/themeXXX\/layout&#8221;<\/strong> directory.<\/p>\r\n<\/li>\r\n<li>\r\n<p><strong>Advanced Search<\/strong> link is in the <strong>catalogsearch.xml<\/strong> file in the same directory on your server.<\/p>\r\n<\/li>\r\n<li>\r\n<p><strong>Orders and Returns<\/strong> menu item is in <strong>sales.xml file<\/strong> in <strong>app\/design\/frontend\/default\/themeXXX\/layout<\/strong>.<\/p>\r\n<p>In this tutorial you will see more details about <a target=\"_blank\" href=\"\/help\/magento-how-to-remove-orders-and-returns-link.html\"> &#8220;Orders and Returns&#8221; link<\/a><\/p>\r\n<\/li>\r\n<li>\r\n<p> Check this detailed tutorial on how to <a target=\"_blank\" href=\"\/help\/magento-how-to-change-footer-links.html\"> manage footer links in Magento<\/a>.<\/p>\r\n<\/li>\r\n<\/ul>\r\n<\/ol>\r\n<p><strong>Deleting links from mobile menu only<\/strong><\/p>\r\n<p class=\"attention\">Note: If you delete the link from the main file (where it is added originally), it will disappear not only from mobile menu, but from the main store view as well.<\/p>\r\n<ol>\r\n<li>\r\n<p>In case you want to remove some link only from the mobile view, you would need to create a new <a target=\"_blank\" href=\"http:\/\/www.w3schools.com\/cssref\/css3_pr_mediaquery.asp\"> CSS @media Query rule<\/a>. <\/p>\r\n<\/li>\r\n<li>\r\n<p>Inspect the css class of the menu item with the help of <a target=\"_blank\" href=\"\/help\/firebug-mozilla-firefox-plugin.html\"> Firebug plugin<\/a> or use some other tool of your browser.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Create a media Query rule depending on the width of your mobile screen width. For example:<\/p>\r\n<pre class=\"brush:css\">\r\n@media screen and (max-width: 765px) {\r\n\t.top-link-blog > a {\r\n\t\tdisplay: none !important;\r\n\t}\r\n} \r\n\t\t\t<\/pre>\r\n<\/li>\r\n<li>\r\n<p> Add your new rule to the bottom of the <strong>responsive.css<\/strong> file in <strong>\/skin\/frontend\/default\/themeXXX\/css<\/strong> folder on your server.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Save the changes and check the updated mobile menu on the front end.<\/p>\r\n<\/li>\r\n<\/ol>\r\n<p><strong>Editing the icons that appear next to mobile menu links<\/strong><\/p>\r\n<ol>\r\n<li>\r\n<p>The icons next to menu items are represented by the <strong>Fontawesome<\/strong> iconic font icons which are added to a css file with the help of a special class which is unique for each icon.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Inspect the icon class with the help of  <a target=\"_blank\" href=\"\/help\/firebug-mozilla-firefox-plugin.html\"> Firebug plugin<\/a> or some other developer tool. Usually, the icon classes are added to the <strong>styles.css<\/strong> file located in <strong>\/skin\/frontend\/default\/themeXXX\/css<\/strong> folder on your server:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/04\/magento_manage_mobile_menu_5.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/04\/magento_manage_mobile_menu_5-300x135.jpg\" alt=\"magento_manage_mobile_menu_5\" width=\"300\" height=\"135\" class=\"aligncenter size-medium wp-image-45952\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/magento_manage_mobile_menu_5-300x135.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/magento_manage_mobile_menu_5-150x67.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/magento_manage_mobile_menu_5-1024x460.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/magento_manage_mobile_menu_5.jpg 1273w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li>\r\n<p>Find the necessary file on your hosting cpanel or use the FTP to connect to your server. Locate the line you inspected with Firebug and look for the icon class:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/04\/magento_manage_mobile_menu_6.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/04\/magento_manage_mobile_menu_6-300x164.jpg\" alt=\"magento_manage_mobile_menu_6\" width=\"300\" height=\"164\" class=\"aligncenter size-medium wp-image-45954\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/magento_manage_mobile_menu_6-300x164.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/magento_manage_mobile_menu_6-150x82.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/magento_manage_mobile_menu_6.jpg 997w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li>\r\n<p>Go to the <a target=\"_blank\" href=\"http:\/\/fortawesome.github.io\/Font-Awesome\/3.2.1\/cheatsheet\/\"> official Font Awesome site<\/a> and find the class of your icon.<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/04\/magento_manage_mobile_menu_7.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/04\/magento_manage_mobile_menu_7-300x152.jpg\" alt=\"magento_manage_mobile_menu_7\" width=\"300\" height=\"152\" class=\"aligncenter size-medium wp-image-45953\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/magento_manage_mobile_menu_7-300x152.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/magento_manage_mobile_menu_7-150x76.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/magento_manage_mobile_menu_7-1024x519.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/magento_manage_mobile_menu_7.jpg 1028w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li>\r\n<p>In order to change the image, replace the class of the current icon in <strong>styles.css<\/strong> with the class of new icon you like from the list of item classes on the official Font Awesome site.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Save your changes and check how the new icon appears on the site front end.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Perform the procedure with the other icons you want to change.<\/p>\r\n<\/li>\r\n<\/ol>\r\n<p>We hope the tutorial was useful for you. Feel free to check the detailed video tutorial below:<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=KSaju2vTGMY?width=1280&amp;height=720\" rel=\"prettyPhoto\">Magento. How to manage the mobile menu and how to edit links in mobile view<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>In this tutorial we will teach you how to manage the mobile menu and how to edit the links that appear on mobile view in Magento.<\/p>\n","protected":false},"author":78,"featured_media":45956,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[729],"tags":[511,2407,571,981],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/45947"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/78"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=45947"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/45947\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/45956"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=45947"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=45947"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=45947"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}