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

admin2025-06-02  2

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!

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1748866072a314371.html

最新回复(0)