简体   繁体   English

WordPress 中的移动设备上的链接不可点击

[英]Links not clickable on mobile devices in WordPress

I am experiencing weird behaviour with links in WordPress.我在使用 WordPress 中的链接时遇到了奇怪的行为。 See attached screenshot.请参阅随附的屏幕截图。 The links in the piece of text are clickable on desktop, but when switching to mobile they can not be clicked anymore.文本中的链接在桌面上是可点击的,但当切换到移动设备时,它们就无法再点击了。

在此处输入图像描述

I inspected the element to check if some z-index or layer is blocking it, but I can't seem to find it.我检查了元素以检查是否有一些 z-index 或图层阻止了它,但我似乎找不到它。 Also the rest of the blocks in the website click fine on mobile.此外,网站中的块的 rest 在手机上点击罚款。

If you want to try for yourself, website link: https://www.keeperstalent.nl The part that gives trouble is on the homepage somewhere around the middle.如果您想自己尝试,网站链接: https://www.keeperstalent.nl出现问题的部分位于主页中间的某个位置。

Any help is appreciated!任何帮助表示赞赏!

I was able to fix it by adding:我能够通过添加来修复它:

a {
position: relative;
display: inline-block;
z-index: 2;
}

I'm not sure what was the problem, I just noticed that it works.我不确定是什么问题,我只是注意到它有效。 And it only works with all of the three properties.它仅适用于所有三个属性。

You actually have a problem with columns overlap.你实际上有列重叠的问题。

列在移动设备上重叠 桌面上的列并排

All you need to do is to make these two columns to have the same classes:您需要做的就是使这两列具有相同的类:

<div class="wpb_column vc_column_container vc_col-sm-6 vc_col-lg-6 vc_col-md-6 vc_col-xs-12">

Though Andrey's answer will do the trick it may lead to undesirable consequences like this:尽管安德烈的回答可以解决问题,但它可能会导致这样的不良后果:

链接在标题上方

Now all links are placed over your header and popups现在所有链接都放在您的 header 和弹出窗口上

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM