Bootstrap 3菜单下拉怪BUG

时间:2021-10-01 19:57:55

I am making a site usng bootstrap 3. Now the problem is with navbar dropdown. When i click the link it gets changed into expand child menu and collapse child menu

我正在制作一个网站usng bootstrap 3.现在问题出在导航栏下拉列表中。当我点击链接时,它会变为展开子菜单并折叠子菜单

to clearify here is the pic i am trying to tell at first Bootstrap 3菜单下拉怪BUG

这里要清楚的是我想要首先讲述的图片

THen when i click it becomes

当我点击它变成了

Bootstrap 3菜单下拉怪BUG

Finally again Bootstrap 3菜单下拉怪BUG

Where did my gallery menu text go to ??? Hope some one can help.

我的画廊菜单文字在哪里?希望有人可以提供帮助。

1 个解决方案

#1


For anyone coming across this problem in Wordpress, I fixed this by commenting out a couple of lines in my theme's functions.php file.

对于在Wordpress中遇到此问题的任何人,我通过在我的主题的functions.php文件中注释掉几行来解决这个问题。

Find the line

找到这条线

wp_localize_script('themeName-script', 'screenReaderText', array('expand' => ..., 'collapse' => ...);

And comment out the 'expand' and 'collapse' array items. I'm guessing this could have unintended consequences in other parts of your app if you actually need to use screenReaderText somewhere else, however I don't so this worked perfectly.

并注释掉'expand'和'collapse'数组项。我猜这可能会在你的应用程序的其他部分产生意想不到的后果,如果你真的需要在其他地方使用screenReaderText,但我不这样做这完美。

#1


For anyone coming across this problem in Wordpress, I fixed this by commenting out a couple of lines in my theme's functions.php file.

对于在Wordpress中遇到此问题的任何人,我通过在我的主题的functions.php文件中注释掉几行来解决这个问题。

Find the line

找到这条线

wp_localize_script('themeName-script', 'screenReaderText', array('expand' => ..., 'collapse' => ...);

And comment out the 'expand' and 'collapse' array items. I'm guessing this could have unintended consequences in other parts of your app if you actually need to use screenReaderText somewhere else, however I don't so this worked perfectly.

并注释掉'expand'和'collapse'数组项。我猜这可能会在你的应用程序的其他部分产生意想不到的后果,如果你真的需要在其他地方使用screenReaderText,但我不这样做这完美。