$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>css - Menu toggle bar works only on some pages in WordPress|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

css - Menu toggle bar works only on some pages in WordPress

matteradmin10PV0评论

I'm using a custom WordPress theme extended from Twenty Sixteen for this website. It is using Bootstrap (I had to migrate a static Bootstrap website to WordPress).

If you open the website on mobile, only the homepage menu button works correctly. However, if you navigate to any other page, the menu button does not drop down. I am using the same template (index.php) for the homepage and all other pages. The HTML, CSS code in "Inspect element" looks the same, and the JavaScript files are also the same.

If it's working on the homepage, I can't figure out why it isn't working on the other pages. Here's the link to the WordPress website:

Thank you for your time!

I'm using a custom WordPress theme extended from Twenty Sixteen for this website. It is using Bootstrap (I had to migrate a static Bootstrap website to WordPress).

If you open the website on mobile, only the homepage menu button works correctly. However, if you navigate to any other page, the menu button does not drop down. I am using the same template (index.php) for the homepage and all other pages. The HTML, CSS code in "Inspect element" looks the same, and the JavaScript files are also the same.

If it's working on the homepage, I can't figure out why it isn't working on the other pages. Here's the link to the WordPress website: https://www.unityinfinity/ui

Thank you for your time!

Share Improve this question asked Feb 25, 2019 at 7:52 Saunved MutalikSaunved Mutalik 1114 bronze badges 2
  • Where's the homepage menu button (prntscr/mpq9vd)? And where are those other pages? I can't see any other pages than the homepage. And there's a Google maps javascript error, need to be fixed. – Mayeenul Islam Commented Feb 25, 2019 at 8:48
  • Check now. I was doing some testing so I switched my theme to a temporary one. – Saunved Mutalik Commented Feb 26, 2019 at 4:27
Add a comment  | 

1 Answer 1

Reset to default 1

So apparently, the issue was arising due to Revolution Slider for some reason. I went into Revolution Slider -> Global Settings and turned on the option to allow Revolution Slider libraries to load on all pages, and now the menu toggle works correctly everywhere.

I don't know why it worked, but this seems to be the issue. If someone can help figure out why this works, I'd be grateful!

Post a comment

comment list (0)

  1. No comments so far