如何在WordPress中居中滑动条

我使用的是wordpress 5.1, 并具有BuildPress主题。它使用WPBakery。

最初, 滑块从左到右开始, 但是以某种方式我无法将滑块居中。使用WPBakery或wordpress主题自定义功能也无法正常工作。

但是, 我确实成功将其置于响应模式的中心。

但是同样, 不能将其居中在正常模式下。

我尝试了常规方法:

.wpb_wrapper {margin-left: auto; margin-right: auto;}

我试图使用position:absolute或position:inherit等。但是没有成功。

我确实阅读了以下线程:

无法弄清楚如何在WordPress主题中将div居中

还有:

如何在CSS中居中滑动条

并尝试了答案, 但没有成功。

我想念什么吗?

网站:http://richdesign.co.il


#1


在滑块的主div中, left的值设置为-366.5px, 可能是按主题设置的, 因此要使滑块居中对齐, 只需在该div中添加一个自定义类, 然后将left的值覆盖0(例如:.custom-class {左:0!important})。请检查主题中是否有任何设置以使滑块居中对齐。请看附件截图


#2


我认为在VC中创建列时存在问题。我在滑块div包装器中找到了一个带有vc_col-sm-2的额外的VC列类(vc_col-lg-3 / 5)。因此, 你可以从页面构建器中删除此类。请参阅所附的屏幕截图屏幕截图一屏幕截图二

我希望它能解决这个问题。

来源:

https://www.srcmini02.com/63165.html

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_41958.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?