
In case you want to add a responsive gap between the columns, you may use the spacing options in the tab below.Īs the last step, we will create a responsive column WordPress layout for mobile devices. That is how your columns will look on any laptop device. In such a case, we will set the width of the first column as 50%, which means that on your laptop the columns will be equal. Now let’s move to the administrator dashboard of your website and set the column width for the tablet device. As you can see, the first column is much bigger than the second one. Here you can take a glance at the live example of how your webpage will look on the desktop device after you set this option. In case you have more than 2 columns, the remaining space will be distributed equally among all columns. The second column will automatically “take” the remaining space, which is equal to 35%. Let’s give the first column 65% on the desktop device. Firstly, let’s set the background for both columns and add simple paragraph blocks inside them. One of the most useful features of the column elements is that you can regulate the column width in percents. In the Spacing tab, you are able to set margins and paddings in pixels or percents for your desktop, tablet, and mobile phone. However, to make your page responsive, you only need two of them. Similarly to the Section block, here you also have 4 tabs with a bunch of settings. To start working with an element, you should click somewhere on the column area. In this article, we are going to explain how you can create different attractive and flexible layouts with responsive columns in WordPress. Moreover, in this tab, you can also set some more options according to the columns. To add more columns, you need to go to the General Settings tab and set the needed number. The Section block comes with 1 column by default. Click on the “+” icon, type the block name and pick it. To add responsive columns on the WordPress webpage, you firstly need to add a Section block.
#Wordpress responsive columns how to
How to add responsive columns in WordPress This allows the developer to never worry about the page layout or spacing options – everything is already organized neatly. Inside the columns, other elements are put. ZeGuten provides you with 15 flexible and easy-to-customize blocks, and one of them is a Section block.Ĭolumns are a part of ZeGuten Section block. Thanks to it, you can make your website look stunning on any device. * Center the custom widget row content.Responsiveness is the key feature of ZeGuten plugin. * Prevent first column margin from being overwritten by adding specificity. * Prevent column class margin from being overwritten by adding specificity. You could replace the current #demobox since I changed it to a class (see bottom notes). Navigate to Appearance > Customize > Additional CSS and add the following CSS styles.

Also assign a Column width value o f 1/3 to each.ĥ. Make sure to add the extendedwopts-md-center class to each widget like you did before to retain the current center style. Please send your CV or enquiries out more

Need some help with interview preparation?
#Wordpress responsive columns code
I cleaned up your HTML and made some structural changes to make your code valid and more accessible (see bottom notes). Instead add 3 Custom HTML widgets and add the following code to each. I see that you are using a total of 9 widgets, one for each column section, but that is not necessary and would in fact make it impossible to stack up on smaller screens. Remove the current 200px right and left row padding by setting both values back to zero under Advanced options > Row padding.ģ. In this example I’m adding widget-home-row, to the Widget Row widget under Advanced options > CSS classes text field.Ģ.

I looked at your page and here is how you can make the widget row responsive for your specific case:ġ. You could edit the CSS for each row as necessary by adding custom row classes. By default the columns are not responsive since every use case is different and I didn’t want to make any assumptions.
