{"id":585,"date":"2019-05-07T10:19:39","date_gmt":"2019-05-07T10:19:39","guid":{"rendered":"http:\/\/angelwings.net\/blog\/?p=585"},"modified":"2019-05-07T10:19:39","modified_gmt":"2019-05-07T10:19:39","slug":"prestashop-warehouse-theme-mobile-menu-disable-link-on-category-parent","status":"publish","type":"post","link":"https:\/\/angelwings.net\/blog\/prestashop-warehouse-theme-mobile-menu-disable-link-on-category-parent\/","title":{"rendered":"Prestashop: Warehouse theme mobile menu disable link on category parent"},"content":{"rendered":"<p>File edits are uploaded on:<br \/>\nmodules\/iqitmegamenu\/iqitmegamenu.php<br \/>\noverride\/modules\/iqitmegamenu\/iqitmegamenu.php<br \/>\nthemes\/warehouse\/js\/modules\/iqitmegamenu\/js\/mlpushmenu.js<\/p>\n<p><strong>1) modules\/iqitmegamenu\/iqitmegamenu.php<\/strong><br \/>\nchanged private function generateCategoriesMenu($categories, $depth_limit, $depth = 0) to<br \/>\nprotected function generateCategoriesMenu($categories, $depth_limit, $depth = 0)<\/p>\n<p>Overrides do not work on private functions. Could have just edited the whole file but did this for future reference.<\/p>\n<p><strong>2) override\/modules\/iqitmegamenu\/iqitmegamenu.php<\/strong><\/p>\n<p><strong>3) themes\/warehouse\/js\/modules\/iqitmegamenu\/js\/mlpushmenu.js<\/strong><br \/>\ncomment out the script that prepends responsiveInykator to the div<br \/>\ncomment out the script that changes + to &#8211;<br \/>\nleave this as standalone so that the submenu shows when tapped on <strong>$(this).parent().children(&#8216;ul&#8217;).slideToggle(300);<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>File edits are uploaded on: modules\/iqitmegamenu\/iqitmegamenu.php override\/modules\/iqitmegamenu\/iqitmegamenu.php themes\/warehouse\/js\/modules\/iqitmegamenu\/js\/mlpushmenu.js 1) modules\/iqitmegamenu\/iqitmegamenu.php changed private function generateCategoriesMenu($categories, $depth_limit, $depth = 0) to protected function generateCategoriesMenu($categories, $depth_limit, $depth = 0) Overrides do not work on private functions. Could have just edited the whole file but did this for future reference. 2) override\/modules\/iqitmegamenu\/iqitmegamenu.php 3) themes\/warehouse\/js\/modules\/iqitmegamenu\/js\/mlpushmenu.js comment out the script that [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,18],"tags":[105,127],"class_list":["post-585","post","type-post","status-publish","format-standard","hentry","category-ecommerce","category-modules","tag-prestashop-1-6","tag-warehouse-theme"],"_links":{"self":[{"href":"https:\/\/angelwings.net\/blog\/wp-json\/wp\/v2\/posts\/585","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/angelwings.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/angelwings.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/angelwings.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/angelwings.net\/blog\/wp-json\/wp\/v2\/comments?post=585"}],"version-history":[{"count":0,"href":"https:\/\/angelwings.net\/blog\/wp-json\/wp\/v2\/posts\/585\/revisions"}],"wp:attachment":[{"href":"https:\/\/angelwings.net\/blog\/wp-json\/wp\/v2\/media?parent=585"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/angelwings.net\/blog\/wp-json\/wp\/v2\/categories?post=585"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/angelwings.net\/blog\/wp-json\/wp\/v2\/tags?post=585"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}