dongtuhe0506 2016-04-29 10:49
浏览 28

Woocommerce过滤文字宽度

I have started to design a new site to my cousins and decided to use woocommerce as filter options is what we need. All products shall be filtered by their attributes. I put woocommerce filter widget on sidebar. But the text in the dropdown is not a single line in one attribute. It is on 2 line even it is a short attribute.

Shows where this issue occurs

I have realized that all 3 filters have different width in the style;

<span class="widgetSelect dropdown_layered_nav_tamirci" style="display: inline-block;">
<span class="widgetSelectInner" style="width: 225px; display: inline-block;">Hangi Tamirci</span>
</span>


<span class="widgetSelect dropdown_layered_nav_sehir" style="display: inline-block;">
<span class="widgetSelectInner" style="width: 73px; display: inline-block;">Hangi Şehir</span>
</span>

<span class="widgetSelect dropdown_layered_nav_ilce" style="display: inline-block;">
<span class="widgetSelectInner" style="width: 77px; display: inline-block;">Hangi İlçe</span>
</span>

I found in woocomerce plugin "wp-content/plugins/woocommerce/includes/widgets" class-wc-widget-layered-nav.php file has something but I couldnt manage to figure it out.

I have added below code but it didn't work;

.savilerowSelect .savilerowSelectInner,

.widgetSelect .widgetSelectInner {

width: 100%;

}

How can I make this filters one line?

Thank you.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 基于卷积神经网络的声纹识别
    • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
    • ¥100 为什么这个恒流源电路不能恒流?
    • ¥15 有偿求跨组件数据流路径图
    • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
    • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
    • ¥15 CSAPPattacklab
    • ¥15 一直显示正在等待HID—ISP
    • ¥15 Python turtle 画图
    • ¥15 stm32开发clion时遇到的编译问题