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

Categories

0 votes
1.2k 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 Answer

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;
}
}

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...