Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.4k views
in Technique[技术] by (71.8m points)

woocommerce - Grid Responsive Section in Divi-Wordpress

I have 6 columns in a section. in desktop version its fine (all in one row), in tablet (3x3) but when its in mobile version why its showing a single column in a single row, I want it to be (3x3)or(2x3) and not (1x6)..Please help me with this.

Thanks in advance.

question from:https://stackoverflow.com/questions/65623647/grid-responsive-section-in-divi-wordpress

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
  1. Add a class to the section (Advanced -> CSS ID & Classes). Call it my-section (or whatever you want)

  2. Add this CSS code to Appearance -> Customize -> Additional CSS:

@media only screen and (max-width: 479px) {
    .my-section .et_pb_column {
    width: 50%!important;
}
}

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...