{"id":98029,"date":"2024-01-04T15:25:23","date_gmt":"2024-01-04T15:25:23","guid":{"rendered":"https:\/\/inalbania.al\/?p=98029"},"modified":"2024-01-04T17:25:46","modified_gmt":"2024-01-04T17:25:46","slug":"how-to-change-the-number-of-columns-on-mobile-tablet-in-divi-theme","status":"publish","type":"post","link":"https:\/\/inalbania.al\/al\/how-to-change-the-number-of-columns-on-mobile-tablet-in-divi-theme\/","title":{"rendered":"How To Change The Number Of Columns On Mobile &#038; Tablet In Divi Theme?"},"content":{"rendered":"<p><strong>Finally! Here\u2019s a solid and easy way to change the number of columns on mobile and tablet in Divi. By adding some custom CSS you\u2019ll get full control over how many columns to display on mobile and tablet in each Divi row.<\/strong><\/p>\n<p>Unlock 2-6 columns on mobile and tablet with nice spacing between and beneath the columns. This is a more robust solution then some\u00a0<em>quick &amp; dirty fixes<\/em>, for example\u00a0<code>display:flex<\/code>\u00a0or\u00a0<code>width:50%,<\/code>that are shared in various Facebook groups and blogs. We\u2019ll stay consistent by using the same type of code that Divi already uses for desktop columns, and apply it for smaller screens too.<\/p>\n<p>In the end of the article, I\u2019ll show how you can save time by using the the\u00a0<strong>Divi Global Presets<\/strong>\u00a0to change the number of columns on mobile and tablet \u2013 without having to add custom CSS classes to your rows.<\/p>\n<p>&nbsp;<\/p>\n<h2>1. Add CSS to enable multiple columns on mobile and tablet in Divi<\/h2>\n<p>The first step to change the number of columns in Divi for mobile and tablet is to add some custom CSS.<\/p>\n<ol>\n<li>Log in to your WordPress dashboard<\/li>\n<li>Go to\u00a0<strong>Divi<\/strong>\u00a0\u00bb\u00a0<strong>Theme Customizer<\/strong>\u00a0\u00bb\u00a0<strong>Additional CSS<\/strong><\/li>\n<li>Copy and paste the CSS below:<\/li>\n<\/ol>\n<p><strong>Pro tip:<\/strong>\u00a0<em>Copy the entire CSS snippet to access\u00a0<strong>all<\/strong>\u00a0the additional column options for mobile and tablet. If you only need one specific option, for example\u00a0<strong>2 columns on mobile<\/strong>, you only need to copy that specific part of the snippet (row 3-21 below).<\/em><\/p>\n<hr \/>\n<p><span style=\"color: #ff6600;\"><strong>\/*** Change Mobile Columns by https:\/\/inalbania.al ***\/<br \/>\n\/* 2 Columns Mobile *\/<br \/>\n@media all and (max-width: 767px) {<br \/>\nhtml .et-db #et-boc .two-col-mob .et_pb_column {<br \/>\nwidth:47.25% !important;<br \/>\n}<\/strong><\/span><\/p>\n<p><span style=\"color: #ff6600;\"><strong>html .et-db #et-boc .two-col-mob .et_pb_column:nth-last-child(-n+2) {<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>margin-bottom:0;<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>}<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>html .et-db #et-boc .two-col-mob .et_pb_column:not(:nth-child(2n)) {<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>margin-right:5.5% !important;<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>}<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>}<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>\/* 3 Columns Mobile https:\/\/inalbania.al*\/<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>@media all and (max-width: 767px) {<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>html .et-db #et-boc .three-col-mob .et_pb_column {<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>width:29.6667% !important;<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>}<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>html .et-db #et-boc .three-col-mob .et_pb_column:nth-last-child(-n+3) {<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>margin-bottom:0;<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>}<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>html .et-db #et-boc .three-col-mob .et_pb_column:not(:nth-child(3n)) {<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>margin-right:5.5% !important;<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>}<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>}<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>\/* 4 Columns Mobile https:\/\/inalbania.al*\/<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>@media all and (max-width: 767px) {<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>html .et-db #et-boc .four-col-mob .et_pb_column {<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>width:20.875% !important;<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>}<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>html .et-db #et-boc .four-col-mob .et_pb_column:nth-last-child(-n+4) {<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>margin-bottom:0;<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>}<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>html .et-db #et-boc .four-col-mob .et_pb_column:not(:nth-child(4n)) {<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>margin-right:5.5% !important;<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>}<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>}<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>\/* 5 Columns Mobile https:\/\/inalbania.al*\/<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>@media all and (max-width: 767px) {<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>html .et-db #et-boc .five-col-mob .et_pb_column {<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>width:15.6% !important;<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>}<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>html .et-db #et-boc .five-col-mob .et_pb_column:nth-last-child(-n+5) {<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>margin-bottom:0;<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>}<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>html .et-db #et-boc .five-col-mob .et_pb_column:not(:nth-child(5n)) {<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>margin-right:5.5% !important;<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>}<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>}<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>\/* 6 Columns Mobile https:\/\/inalbania.al*\/<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>@media all and (max-width: 767px) {<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>html .et-db #et-boc .six-col-mob .et_pb_column {<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>width:12.083% !important;<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>}<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>html .et-db #et-boc .six-col-mob .et_pb_column:nth-last-child(-n+6) {<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>margin-bottom:0;<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>}<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>html .et-db #et-boc .six-col-mob .et_pb_column:not(:nth-child(6n)) {<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>margin-right:5.5% !important;<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>}<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>}<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>\/*** Change Tablet Columns By https:\/\/inalbania.al\u00a0***\/<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>\/* 1 Column Tablet *\/<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>@media all and (min-width: 768px) and (max-width: 980px) {<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>html .et-db #et-boc .one-col-tab .et_pb_column {<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>margin-right:0 !important;<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>width:100% !important;<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>}<\/strong><\/span><\/p>\n<p><span style=\"color: #ff6600;\"><strong>html .et-db #et-boc .one-col-tab .et_pb_column:not(:last-child) {<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>margin-bottom:30px !important;<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>}<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>}<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>\/* 2 Columns Tablet https:\/\/inalbania.al*\/<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>@media all and (min-width: 768px) and (max-width: 980px) {<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>html .et-db #et-boc .two-col-tab .et_pb_column {<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>width:47.25% !important;<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>}<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>.two-col-tab .et_pb_column:nth-last-child(-n+2) {<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>margin-bottom:0;<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>}<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>html .et-db #et-boc .two-col-tab .et_pb_column:not(:nth-child(2n)) {<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>margin-right:5.5% !important;<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>}<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>}<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>\/* 3 Columns Tablet https:\/\/inalbania.al*\/<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>@media all and (min-width: 768px) and (max-width: 980px) {<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>html .et-db #et-boc .three-col-tab .et_pb_column {<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>width:29.6667% !important;<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>}<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>html .et-db #et-boc .three-col-tab .et_pb_column:nth-last-child(-n+3) {<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>margin-bottom:0;<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>}<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>html .et-db #et-boc .three-col-tab .et_pb_column:not(:nth-child(3n)) {<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>margin-right:5.5% !important;<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>}<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>}<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>\/* 4 Columns Tablet https:\/\/inalbania.al*\/<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>@media all and (min-width: 768px) and (max-width: 980px) {<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>html .et-db #et-boc .four-col-tab .et_pb_column {<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>width:20.875% !important;<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>}<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>html .et-db #et-boc .four-col-tab .et_pb_column:nth-last-child(-n+4) {<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>margin-bottom:0;<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>}<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>html .et-db #et-boc .four-col-tab .et_pb_column:not(:nth-child(4n)) {<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>margin-right:5.5% !important;<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>}<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>}<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>\/* 5 Columns Tablet https:\/\/inalbania.al*\/<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>@media all and (min-width: 768px) and (max-width: 980px) {<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>html .et-db #et-boc .five-col-tab .et_pb_column {<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>width:15.6% !important;<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>}<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>.five-col-mob .et_pb_column:nth-last-child(-n+5) {<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>margin-bottom:0;<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>}<\/strong><\/span><\/p>\n<p><span style=\"color: #ff6600;\"><strong>html .et-db #et-boc .five-col-tab .et_pb_column:not(:nth-child(5n)) {<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>margin-right:5.5% !important;<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>}<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>}<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>\/* 6 Columns Tablet https:\/\/inalbania.al*\/<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>@media all and (min-width: 768px) and (max-width: 980px) {<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>html .et-db #et-boc .six-col-tab .et_pb_column {<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>width:12.083% !important;<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>}<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>html .et-db #et-boc .six-col-tab .et_pb_column:nth-last-child(-n+6) {<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>margin-bottom:0;<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>}<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>html .et-db #et-boc .six-col-tab .et_pb_column:not(:nth-child(6n)) {<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>margin-right:5.5% !important;<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>}<\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\"><strong>}<\/strong><\/span><\/p>\n<hr \/>\n<div class=\"et_pb_column et_pb_column_1_2 et_pb_column_6 et_pb_css_mix_blend_mode_passthrough\">\n<div class=\"et_pb_module et_pb_text et_pb_text_6 et_pb_text_align_left et_pb_bg_layout_light\">\n<div class=\"et_pb_text_inner\">\n<h3>Available mobile columns options:<\/h3>\n<\/div>\n<\/div>\n<div class=\"et_pb_module dsm_icon_list dsm_icon_list_0\">\n<div class=\"et_pb_module_inner\">\n<ul class=\"dsm_icon_list_items dsm_icon_list_ltr_direction dsm_icon_list_layout_horizontal\">\n<li class=\"dsm_icon_list_child dsm_icon_list_child_0 dsm_icon_list_child_tooltip\">\n<div class=\"dsm_icon_list_tooltip\" data-tippy-arrow=\"true\" data-dsm-tippy-placement=\"right\" data-dsm-slug=\"dsm_icon_list_child_0\" aria-expanded=\"false\"><span class=\"dsm_icon_list_wrapper\"><span class=\"dsm_icon_list_icon\">\uf058<\/span><\/span><span class=\"dsm_icon_list_text\">1 column on mobile<\/span><\/div>\n<\/li>\n<li class=\"dsm_icon_list_child dsm_icon_list_child_1\"><span class=\"dsm_icon_list_wrapper\"><span class=\"dsm_icon_list_icon\">\uf058<\/span><\/span><span class=\"dsm_icon_list_text\">2 columns on mobile<\/span><\/li>\n<li class=\"dsm_icon_list_child dsm_icon_list_child_2\"><span class=\"dsm_icon_list_wrapper\"><span class=\"dsm_icon_list_icon\">\uf058<\/span><\/span><span class=\"dsm_icon_list_text\">3 columns on mobile<\/span><\/li>\n<li class=\"dsm_icon_list_child dsm_icon_list_child_3\"><span class=\"dsm_icon_list_wrapper\"><span class=\"dsm_icon_list_icon\">\uf058<\/span><\/span><span class=\"dsm_icon_list_text\">4 columns on mobile<\/span><\/li>\n<li class=\"dsm_icon_list_child dsm_icon_list_child_4\"><span class=\"dsm_icon_list_wrapper\"><span class=\"dsm_icon_list_icon\">\uf058<\/span><\/span><span class=\"dsm_icon_list_text\">5 columns on mobile<\/span><\/li>\n<li class=\"dsm_icon_list_child dsm_icon_list_child_5\"><span class=\"dsm_icon_list_wrapper\"><span class=\"dsm_icon_list_icon\">\uf058<\/span><\/span><span class=\"dsm_icon_list_text\">6 columns on mobile<\/span><\/li>\n<\/ul>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"et_pb_column et_pb_column_1_2 et_pb_column_7 et_pb_css_mix_blend_mode_passthrough et-last-child dsm_icon_list_column_fix\">\n<div class=\"et_pb_module et_pb_text et_pb_text_7 et_pb_text_align_left et_pb_bg_layout_light\">\n<div class=\"et_pb_text_inner\">\n<h3>Available tablet columns options<\/h3>\n<\/div>\n<\/div>\n<div class=\"et_pb_module dsm_icon_list dsm_icon_list_1\">\n<div class=\"et_pb_module_inner\">\n<ul class=\"dsm_icon_list_items dsm_icon_list_ltr_direction dsm_icon_list_layout_horizontal\">\n<li class=\"dsm_icon_list_child dsm_icon_list_child_6 dsm_icon_list_child_tooltip\">\n<div class=\"dsm_icon_list_tooltip\" data-tippy-arrow=\"true\" data-dsm-tippy-placement=\"right\" data-dsm-slug=\"dsm_icon_list_child_6\" aria-expanded=\"false\"><span class=\"dsm_icon_list_wrapper\"><span class=\"dsm_icon_list_icon\">\uf058<\/span><\/span><span class=\"dsm_icon_list_text\">1 column on tablet<\/span><\/div>\n<\/li>\n<li class=\"dsm_icon_list_child dsm_icon_list_child_7\"><span class=\"dsm_icon_list_wrapper\"><span class=\"dsm_icon_list_icon\">\uf058<\/span><\/span><span class=\"dsm_icon_list_text\">2 columns on tablet<\/span><\/li>\n<li class=\"dsm_icon_list_child dsm_icon_list_child_8\"><span class=\"dsm_icon_list_wrapper\"><span class=\"dsm_icon_list_icon\">\uf058<\/span><\/span><span class=\"dsm_icon_list_text\">3 columns on tablet<\/span><\/li>\n<li class=\"dsm_icon_list_child dsm_icon_list_child_9\"><span class=\"dsm_icon_list_wrapper\"><span class=\"dsm_icon_list_icon\">\uf058<\/span><\/span><span class=\"dsm_icon_list_text\">4 columns on tablet<\/span><\/li>\n<li class=\"dsm_icon_list_child dsm_icon_list_child_10\"><span class=\"dsm_icon_list_wrapper\"><span class=\"dsm_icon_list_icon\">\uf058<\/span><\/span><span class=\"dsm_icon_list_text\">5 columns on tablet<\/span><\/li>\n<li class=\"dsm_icon_list_child dsm_icon_list_child_11\"><span class=\"dsm_icon_list_wrapper\"><span class=\"dsm_icon_list_icon\">\uf058<\/span><\/span><span class=\"dsm_icon_list_text\">6 columns on tablet<\/span><\/li>\n<\/ul>\n<h2>2. Add CSS Classes to your Divi Rows to change the number of columns on mobile and tablet<\/h2>\n<p>To apply the new column count for mobile and tablet you need to\u00a0<strong>add the matching CSS class(es)<\/strong>\u00a0to your Divi row. That will actually take less time than reading this paragraph of text.<\/p>\n<ol>\n<li>Enable the Divi Visual Builder on the page that you want to edit<\/li>\n<li>Edit the row (that\u2019s the box with the green border) by clicking the cogwheel<\/li>\n<li>Go to\u00a0<strong>Advanced<\/strong>\u00a0\u00bb\u00a0<strong>CSS ID &amp; Classes<\/strong>\u00a0\u00bb\u00a0<strong>CSS Class<\/strong><\/li>\n<li>Add one or two CSS classes, matching the number of columns that you want to use, from the table below.<\/li>\n<\/ol>\n<p><strong>Please notice:<\/strong><em>\u00a0Sometimes, the Divi Visual Builder does not display the new column structure the correct way in backend. Save and preview in frontend to see the final result.<\/em><\/p>\n<\/div>\n<div class=\"et_pb_with_border et_pb_row et_pb_row_7 three-col-tab three-col-mob\">\n<div class=\"et_pb_column et_pb_column_1_3 et_pb_column_9 et_pb_css_mix_blend_mode_passthrough\">\n<div class=\"et_pb_module et_pb_text et_pb_text_9 et_pb_text_align_left et_pb_bg_layout_dark\">\n<div class=\"et_pb_text_inner\">\n<h4>Number of columns<\/h4>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"et_pb_column et_pb_column_1_3 et_pb_column_10 et_pb_css_mix_blend_mode_passthrough\">\n<div class=\"et_pb_module et_pb_text et_pb_text_10 et_pb_text_align_left et_pb_bg_layout_dark\">\n<div class=\"et_pb_text_inner\">\n<h4>Mobile CSS class<\/h4>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"et_pb_column et_pb_column_1_3 et_pb_column_11 et_pb_css_mix_blend_mode_passthrough et-last-child\">\n<div class=\"et_pb_module et_pb_text et_pb_text_11 et_pb_text_align_left et_pb_bg_layout_dark\">\n<div class=\"et_pb_text_inner\">\n<h4>Tablet CSS class<\/h4>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"et_pb_with_border et_pb_row et_pb_row_8 three-col-tab three-col-mob et_pb_section_video_on_hover\">\n<div class=\"et_pb_column et_pb_column_1_3 et_pb_column_12 et_pb_css_mix_blend_mode_passthrough\">\n<div class=\"et_pb_module et_pb_text et_pb_text_12 et_pb_text_align_left et_pb_bg_layout_light\">\n<div class=\"et_pb_text_inner\">\n<p><strong>One<\/strong><\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"et_pb_column et_pb_column_1_3 et_pb_column_13 et_pb_css_mix_blend_mode_passthrough\">\n<div class=\"et_pb_module et_pb_text et_pb_text_13 et_pb_text_align_left et_pb_bg_layout_light\">\n<div class=\"et_pb_text_inner\">\n<p>[no class needed]<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"et_pb_column et_pb_column_1_3 et_pb_column_14 et_pb_css_mix_blend_mode_passthrough et-last-child\">\n<div class=\"et_pb_module et_pb_text et_pb_text_14 et_pb_text_align_left et_pb_bg_layout_light\">\n<div class=\"et_pb_text_inner\">\n<p>one-col-tab<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"et_pb_with_border et_pb_row et_pb_row_9 three-col-tab three-col-mob et_pb_section_video_on_hover\">\n<div class=\"et_pb_column et_pb_column_1_3 et_pb_column_15 et_pb_css_mix_blend_mode_passthrough\">\n<div class=\"et_pb_module et_pb_text et_pb_text_15 et_pb_text_align_left et_pb_bg_layout_light\">\n<div class=\"et_pb_text_inner\">\n<p><strong>Two<\/strong><\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"et_pb_column et_pb_column_1_3 et_pb_column_16 et_pb_css_mix_blend_mode_passthrough\">\n<div class=\"et_pb_module et_pb_text et_pb_text_16 et_pb_text_align_left et_pb_bg_layout_light\">\n<div class=\"et_pb_text_inner\">\n<p>two-col-mob<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"et_pb_column et_pb_column_1_3 et_pb_column_17 et_pb_css_mix_blend_mode_passthrough et-last-child\">\n<div class=\"et_pb_module et_pb_text et_pb_text_17 et_pb_text_align_left et_pb_bg_layout_light\">\n<div class=\"et_pb_text_inner\">\n<p>two-col-tab<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"et_pb_with_border et_pb_row et_pb_row_10 three-col-tab three-col-mob et_pb_section_video_on_hover\">\n<div class=\"et_pb_column et_pb_column_1_3 et_pb_column_18 et_pb_css_mix_blend_mode_passthrough\">\n<div class=\"et_pb_module et_pb_text et_pb_text_18 et_pb_text_align_left et_pb_bg_layout_light\">\n<div class=\"et_pb_text_inner\">\n<p><strong>Three<\/strong><\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"et_pb_column et_pb_column_1_3 et_pb_column_19 et_pb_css_mix_blend_mode_passthrough\">\n<div class=\"et_pb_module et_pb_text et_pb_text_19 et_pb_text_align_left et_pb_bg_layout_light\">\n<div class=\"et_pb_text_inner\">\n<p>three-col-mob<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"et_pb_column et_pb_column_1_3 et_pb_column_20 et_pb_css_mix_blend_mode_passthrough et-last-child\">\n<div class=\"et_pb_module et_pb_text et_pb_text_20 et_pb_text_align_left et_pb_bg_layout_light\">\n<div class=\"et_pb_text_inner\">\n<p>three-col-tab<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"et_pb_with_border et_pb_row et_pb_row_11 three-col-tab three-col-mob et_pb_section_video_on_hover\">\n<div class=\"et_pb_column et_pb_column_1_3 et_pb_column_21 et_pb_css_mix_blend_mode_passthrough\">\n<div class=\"et_pb_module et_pb_text et_pb_text_21 et_pb_text_align_left et_pb_bg_layout_light\">\n<div class=\"et_pb_text_inner\">\n<p><strong>Four<\/strong><\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"et_pb_column et_pb_column_1_3 et_pb_column_22 et_pb_css_mix_blend_mode_passthrough\">\n<div class=\"et_pb_module et_pb_text et_pb_text_22 et_pb_text_align_left et_pb_bg_layout_light\">\n<div class=\"et_pb_text_inner\">\n<p>four-col-mob<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"et_pb_column et_pb_column_1_3 et_pb_column_23 et_pb_css_mix_blend_mode_passthrough et-last-child\">\n<div class=\"et_pb_module et_pb_text et_pb_text_23 et_pb_text_align_left et_pb_bg_layout_light\">\n<div class=\"et_pb_text_inner\">\n<p>four-col-tab<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"et_pb_with_border et_pb_row et_pb_row_12 three-col-tab three-col-mob et_pb_section_video_on_hover\">\n<div class=\"et_pb_column et_pb_column_1_3 et_pb_column_24 et_pb_css_mix_blend_mode_passthrough\">\n<div class=\"et_pb_module et_pb_text et_pb_text_24 et_pb_text_align_left et_pb_bg_layout_light\">\n<div class=\"et_pb_text_inner\">\n<p><strong>Five<\/strong><\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"et_pb_column et_pb_column_1_3 et_pb_column_25 et_pb_css_mix_blend_mode_passthrough\">\n<div class=\"et_pb_module et_pb_text et_pb_text_25 et_pb_text_align_left et_pb_bg_layout_light\">\n<div class=\"et_pb_text_inner\">\n<p>five-col-mob<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"et_pb_column et_pb_column_1_3 et_pb_column_26 et_pb_css_mix_blend_mode_passthrough et-last-child\">\n<div class=\"et_pb_module et_pb_text et_pb_text_26 et_pb_text_align_left et_pb_bg_layout_light\">\n<div class=\"et_pb_text_inner\">\n<p>five-col-tab<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"et_pb_with_border et_pb_row et_pb_row_13 three-col-tab three-col-mob et_pb_section_video_on_hover\">\n<div class=\"et_pb_column et_pb_column_1_3 et_pb_column_27 et_pb_css_mix_blend_mode_passthrough\">\n<div class=\"et_pb_module et_pb_text et_pb_text_27 et_pb_text_align_left et_pb_bg_layout_light\">\n<div class=\"et_pb_text_inner\">\n<p><strong>Six<\/strong><\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"et_pb_column et_pb_column_1_3 et_pb_column_28 et_pb_css_mix_blend_mode_passthrough\">\n<div class=\"et_pb_module et_pb_text et_pb_text_28 et_pb_text_align_left et_pb_bg_layout_light\">\n<div class=\"et_pb_text_inner\">\n<p>six-col-mob<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"et_pb_column et_pb_column_1_3 et_pb_column_29 et_pb_css_mix_blend_mode_passthrough et-last-child\">\n<div class=\"et_pb_module et_pb_text et_pb_text_29 et_pb_text_align_left et_pb_bg_layout_light\">\n<div class=\"et_pb_text_inner\">\n<p>six-col-tab<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"et_pb_row et_pb_row_14\">\n<div class=\"et_pb_column et_pb_column_4_4 et_pb_column_30 et_pb_css_mix_blend_mode_passthrough et-last-child\">\n<div class=\"et_pb_module et_pb_text et_pb_text_30 et_pb_text_align_left et_pb_bg_layout_light\">\n<div class=\"et_pb_text_inner\">\n<p>The table above is actually a live example of this code using the classes \u201cthree-col-mob three-col-tab\u201d to display three columns on tablet and three columns on mobile (the same as on desktop).<\/p>\n<\/div>\n<h2>3. Pro Tip: Use Divi Global Presets To Change Number Of Columns on Mobile And Tablet<\/h2>\n<p>This last step is not necessary but it\u2019s a nice way to speed up your design process by adding different mobile row structures to your Divi Global Presets library.<\/p>\n<p>This way, you don\u2019t need to add custom CSS classes each time that you want to change the number of columns in a row. Instead, you can just choose the row numbers that you want to use from the\u00a0<strong>Presets dropdown<\/strong>\u00a0when you add a new row.<\/p>\n<h3>Changing mobile row numbers with Divi Global Presets<\/h3>\n<ol>\n<li>Make sure that you have added the custom CSS in the\u00a0<strong>Theme Customizer<\/strong>\u00a0(see step 1 above)<\/li>\n<li>Create a new row on a page, a post or in a layout in the Divi Library.\u00a0<em>It does not matter which column structure you choose for the row.<\/em><\/li>\n<li>Close the\u00a0<strong>Insert Module<\/strong>\u00a0modal and open the\u00a0<strong>Row Settings<\/strong>\u00a0by clicking the cogwheel<\/li>\n<li>Go to\u00a0<strong>Advanced<\/strong>\u00a0\u00bb\u00a0<strong>CSS ID &amp; Classes<\/strong><\/li>\n<li>Enter the CSS Class(es) that you want to add to your preset (see step 2 above) \u2013 for example\u00a0<strong>two-col-mob four-col-tab<\/strong><\/li>\n<li>Now, click the\u00a0<strong>Preset: Default<\/strong>\u00a0toggle in the purple top bar of the\u00a0<strong>Row Settings<\/strong><\/li>\n<li>Click\u00a0<strong>Create new preset from current styles<\/strong><\/li>\n<li>Give your new\u00a0<strong>Preset<\/strong>\u00a0a clear name, for example\u00a0<strong>2 col mob | 4 col tab<\/strong><\/li>\n<li>Make sure that\u00a0<strong>Assign Preset To Default<\/strong>\u00a0is set to<strong>\u00a0NO\u00a0<\/strong>and save by clicking the green checkmark button<\/li>\n<li>Repeat the process to add as many\u00a0<strong>Row Presets<\/strong>\u00a0you like.<\/li>\n<\/ol>\n<p>That\u2019s it! To change the number of columns on mobile and tablet, just click the Preset toggle in the row settings and choose one from your list.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>How To Change The Number Of Columns On Mobile &#038; Tablet In Divi Theme?<\/p>\n","protected":false},"author":1,"featured_media":4307,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[183],"tags":[69204,69205,69206],"class_list":["post-98029","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aktualitet","tag-how-to-change-the-number-of-columns-on-mobile-tablet-in-divi-theme","tag-how-to-change-the-number-of-columns-on-mobile-tablet-in-divi","tag-how-to-change-the-number-of-columns-on-mobile-in-divi-theme"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/inalbania.al\/al\/wp-json\/wp\/v2\/posts\/98029","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/inalbania.al\/al\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/inalbania.al\/al\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/inalbania.al\/al\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/inalbania.al\/al\/wp-json\/wp\/v2\/comments?post=98029"}],"version-history":[{"count":0,"href":"https:\/\/inalbania.al\/al\/wp-json\/wp\/v2\/posts\/98029\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/inalbania.al\/al\/wp-json\/wp\/v2\/media\/4307"}],"wp:attachment":[{"href":"https:\/\/inalbania.al\/al\/wp-json\/wp\/v2\/media?parent=98029"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/inalbania.al\/al\/wp-json\/wp\/v2\/categories?post=98029"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/inalbania.al\/al\/wp-json\/wp\/v2\/tags?post=98029"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}