{"id":3760,"date":"2024-11-26T18:46:28","date_gmt":"2024-11-26T15:46:28","guid":{"rendered":"https:\/\/demensdeum.com\/blog\/2024\/11\/26\/wordpress-theme-mobile-mode-fix\/"},"modified":"2024-12-16T22:32:10","modified_gmt":"2024-12-16T19:32:10","slug":"wordpress-theme-mobile-mode-fix","status":"publish","type":"post","link":"https:\/\/demensdeum.com\/blog\/hi\/2024\/11\/26\/wordpress-theme-mobile-mode-fix\/","title":{"rendered":"Fixing the mobile menu in WordPress"},"content":{"rendered":"<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-php\" data-lang=\"php\"><code>\ndocument.addEventListener('DOMContentLoaded', function() {\n    new navMenu('primary');\n    new navMenu('woo');\n});\n<\/code><\/pre>\n<\/div>\n<p>If you too have not had the iOS\/Android blog menu open in your WordPress blog for several years, when using the Seedlet theme, then simply add:<br \/>\nIn the closure function of the wp-content\/themes\/seedlet\/assets\/js\/primary-navigation.js file, next to the default window addEventListener &#8216;load&#8217; subscription.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>document.addEventListener(&#8216;DOMContentLoaded&#8217;, function() { new navMenu(&#8216;primary&#8217;); new navMenu(&#8216;woo&#8217;); }); If you too have not had the iOS\/Android blog menu open in your WordPress blog for several years, when using the Seedlet theme, then simply add: In the closure function of the wp-content\/themes\/seedlet\/assets\/js\/primary-navigation.js file, next to the default window addEventListener &#8216;load&#8217; subscription.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[49],"tags":[],"class_list":["post-3760","post","type-post","status-publish","format-standard","hentry","category-blog","entry"],"translation":{"provider":"WPGlobus","version":"3.0.2","language":"hi","enabled_languages":["en","ru","zh","de","fr","ja","pt","hi"],"languages":{"en":{"title":true,"content":true,"excerpt":false},"ru":{"title":true,"content":true,"excerpt":false},"zh":{"title":true,"content":true,"excerpt":false},"de":{"title":true,"content":true,"excerpt":false},"fr":{"title":true,"content":true,"excerpt":false},"ja":{"title":true,"content":true,"excerpt":false},"pt":{"title":true,"content":true,"excerpt":false},"hi":{"title":false,"content":false,"excerpt":false}}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/demensdeum.com\/blog\/hi\/wp-json\/wp\/v2\/posts\/3760","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/demensdeum.com\/blog\/hi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/demensdeum.com\/blog\/hi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/demensdeum.com\/blog\/hi\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/demensdeum.com\/blog\/hi\/wp-json\/wp\/v2\/comments?post=3760"}],"version-history":[{"count":17,"href":"https:\/\/demensdeum.com\/blog\/hi\/wp-json\/wp\/v2\/posts\/3760\/revisions"}],"predecessor-version":[{"id":3808,"href":"https:\/\/demensdeum.com\/blog\/hi\/wp-json\/wp\/v2\/posts\/3760\/revisions\/3808"}],"wp:attachment":[{"href":"https:\/\/demensdeum.com\/blog\/hi\/wp-json\/wp\/v2\/media?parent=3760"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/demensdeum.com\/blog\/hi\/wp-json\/wp\/v2\/categories?post=3760"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/demensdeum.com\/blog\/hi\/wp-json\/wp\/v2\/tags?post=3760"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}