• Website Home
  • About
  • Services
  • Portfolio
    • Recent
    • Archives
  • Shop
    • Catalog
    • Order

ASK Design Blog

Designer | Artist | Teacher

  •  
    • Blog Home
    • Web Design
    • Graphic Design
    • Art
      • Licensed Art
    • Links
    • Calendar
    • Contact

    4 Ways to Create Columns in WordPress

    January 5, 2021 by ProfK Leave a Comment

    Columns are a great way to organize and display the content. Their structure enhances the user experience by improving readability, prioritizing information, and presenting material in attractive ways. Fortunately, creating columns in WordPress has become easier and easier over the years.

    Types of Content for Columns

    Instead of using one wide line length, break up the text into narrower columns. This is especially helpful on wide web pages without sidebars. Usually, separating the text into 2-3 columns does the trick.

    Column one appears on the left and runs continuously until the code for column two is inserted. Cupcake ipsum dolor sit amet fruitcake icing dessert muffin. Oat cake soufflé dragée tart cotton candy donut topping tootsie roll. Danish dessert icing lemon drops pastry cotton candy bear claw. Macaroon halvah dragée candy brownie chocolate cake.

    Column two appears on the right and runs continuously until the code for the next content item is inserted. Cupcake ipsum dolor sit amet fruitcake icing dessert muffin. Oat cake soufflé dragée tart cotton candy donut topping tootsie roll. Danish dessert icing lemon drops pastry cotton candy bear claw. Macaroon halvah dragée candy brownie chocolate cake.

     

    Columns and rows are effective for displaying products and services in WordPress and other websites. E-commerce sites really benefit from this type of layout. Art and photo portfolios can be presented in this way as well.

    Section of a page on the Zamir website.
     

    Icons, logos, social media links, and buttons are also perfect candidates for columns.

    I’ll use the following social media section as an example for each of the 4 basic ways to create columns in WordPress without using a plugin.

     

    Visual vs. Code Editor

    In WordPress, you always have the option of using the code editor, rather than the visual editor. With the Classic Editor, there is a Visual tab and a Text tab. The Text tab is actually the HTML code option.

    WP classic editor
    Classic Editor
     

    With the new Gutenberg Editor, each piece of content uses a block that can be edited as HTML. Simply select the block, click on the 3 vertical dots, and select “Edit as HTML“. Alternatively, you can input into the Custom HTML block.

    Gutenberg: Edit as HTML for columns
    Edit block as HTML
     
    Custom html block to create columns
    Custom HTML block
     

    1. The Old, Unresponsive Way: Tables

    Tables are very commonly used in society as a method of structuring and presenting information. In the early days of web design, tables were THE way to construct entire web layouts. CSS was not well-supported across browsers, so it made sense to use tables. They consist of columns and rows of equal or varying widths and heights. Cells can span multiple columns and rows, and they can be grouped together.

    Here is the code to construct our sample social media section using tables:
    <table style="width:100%">
    <tr>
    <td style="text-align:center"><a href="https://www.facebook.com/ASKDesign"><span class="social social-facebook" style="font-size: 3.6rem"></span></a></td>
    
    <td style="text-align:center"><a href="https://twitter.com/ASKDesign2/"><span class="social social-twitter" style="font-size: 3.6rem"></span></a></td>
    
    <td style="text-align:center"><a href="https://www.youtube.com/user/askdesign2/"><span class="social social-youtube" style="font-size: 3.6rem"></span></a></td>
    </tr>
    </table>

     

    Tables are still appropriate for displaying tabular data on the web. That function has always been what tables do best. However, they are no longer considered best practice in constructing web pages. The primary reasons are:

    • Although there is flexibility in how to structure a table, the cells are static. Their size is not mobile-responsive.
    • Screen readers (used by the visually-impaired) have a difficult time interpreting table code.
    • Tables require more complex code than CSS and HTML combinations.
     

    2. Custom HTML and Inline Styling

    Inline styles can contain any CSS property and can be applied to any individual HTML tag. In the style sheet cascade, they take priority over any other style because they are closest to the element. Thus, they can override existing styles in a CSS file.

    Because inline styles mix presentation with content, it is not possible to change them for mobile-responsive media queries. The media queries reside in a CSS file, whereas inline styles do not. The advantages of using a stylesheet are lost with inline styles. For these reasons, use them only when necessary!

    Here is the code to construct our sample social media section using html and local styling:
    <div style="text-align:center; width:33%; float: left;"><a href="https://www.facebook.com/ASKDesign"><span class="social social-facebook" style="font-size: 3.6rem"></span></a></div>
    
    <div style="text-align:center; width:33%; float: left;"><a href="https://twitter.com/ASKDesign2/"><span class="social social-twitter" style="font-size: 3.6rem"></span></a></div>
    
    <div style="text-align:center; width:33%; float: left;"><a href="https://www.youtube.com/user/askdesign2/"><span class="social social-youtube" style="font-size: 3.6rem"></span></a></div>

     

    3. Genesis Columns Classes with other CSS

    Some WordPress themes, like Genesis, provide columns classes. This is a step up from inline styling. Since these classes are in the stylesheet, mobile-responsive adjustments can be made. Plus, the code is more neat and tidy.

    Here is the code to construct our sample social media section using Genesis columns classes:
    <div class="one-third first has-text-align-center"><a href="https://www.facebook.com/ASKDesign"><span class="social social-facebook" style="font-size: 3.6rem"></span></a></div>
    <div class="one-third has-text-align-center"><a href="https://twitter.com/ASKDesign2/"><span class="social social-twitter" style="font-size: 3.6rem"></span></a></div>
    <div class="one-third has-text-align-center"><a href="https://www.youtube.com/user/askdesign2/"><span class="social social-youtube" style="font-size: 3.6rem"></span></a></div>

     

    4. Gutenberg Columns Block

    Gutenberg is the new WordPress default editor. It is based on content blocks that can be moved easily from one area of the page to another. One of those blocks is “Columns“.

    Here are the steps and code to construct our sample social media section using the Gutenberg Columns block:
    1. Add new block. If the Columns block doesn’t show up in the first set of options, you can either
      (a) search for it – the columns option will appear
      Add New Block: Search
      or
      (b) click “Browse All” – search for it here or scroll to the design section to find it
      Add New Block: Browse All

    2. Select “Columns“
      Columns variations
    3. Select the variation named “33/33/33“
    4. Add a new Custom HTML block to each column
      3 columns ready for content
    5. Insert the code as follows:
    Column 1
    <a href="https://www.facebook.com/ASKDesign"><span class="social social-facebook" style="font-size: 3.6rem"></span></a>
    Column 2
    <a href="https://twitter.com/ASKDesign2/"><span class="social social-twitter" style="font-size: 3.6rem"></span></a>
    Column 3
    <a href="https://www.youtube.com/user/askdesign2/"><span class="social social-youtube" style="font-size: 3.6rem"></span></a>

     

    Related Posts

    How Can I Change the Typeface in WordPress?
    Migration and Cloning Tools for WordPress Sites
    SEO for WordPress Content Creators
    Why and How You Create WordPress Child Themes
    How to Disable Gutenberg in WordPress 5

    Filed Under: WordPress Tagged With: code editor, columns, custom HTML, Genesis columns classes, Gutenberg columns block, inline styling, tables, visual editor

    Reader Interactions

    Leave a Reply Cancel reply

    Your email address will not be published. Required fields are marked *

    Primary Sidebar

    Subscribe to Mailing List

    Sign up to get periodic updates on Anne's design and art adventures, and receive useful info. via her blog.
    * = required field

    We never share our email list with anyone.

    Looking for Something?

    My Art in a Book!

    kornegger loseyourmind front cover
    Several of my paintings are in this book (including the cover)
    BUY THE BOOK!
    My blog post about designing the book: Self-Publishing Adventures

    Testimonials

    I received the notecards on Friday and it was on my to do list today to email you my deep appreciation for them. They are amazing and I am so glad to have them to share. I am sure I will order more in the future. You are such a gifted artist and I thank you for sharing in a way others can use the art.

    — Shari Spokes

    Your new pastel "Lettuce Lake” is really beautiful. Very, very nice.

    — Tony from Belmont, MA

    My dear sweet sister. I can’t tell you how much I love your pictures. I so much wanted something and was so sorry that I couldn’t pick something out at your sale. On the other hand, I so much wanted something that you had chosen for me. Its been on my mind and suddenly, your beautiful pictures arrived. They are beyond beautiful and I cried when I saw them. Sending you love and my bestness.

    — Marti from Reno, NV

    Affiliate Partners

    We receive compensation when you purchase a service or product via the links on this blog.

    Web Hosting

    ThemeOfMonth

    Great Software Deals!

    MacUpdate Logo

    themeforest banner

    Photo, Video & Design Software

    Copyright

    © 2000-2020 Anne S. Katzeff. All rights reserved. Unless noted, all artwork and text are copyrighted by the artist. Images may not be reproduced, manipulated, or used in any way without Anne’s written permission.

    Categories

    Graphic Design

    • AIGA
    • Design Is History
    • Janice Moore
    • Mass. Contractors

    Web Design

    • 978 Grid System
    • A List Apart
    • A List Apart
    • Adobe Color Tools (formerly Kuler)
    • AWWWards
    • Smashing Magazine
    • underthesite
    • www schools

    Tech-Computer

    • Adobe TV
    • Orramac
    • Teknoziz

    Comments

    In an effort to reduce spam, comments are restricted. Please email Anne if you have a comment or question that you are unable to post. Thanks for understanding.


    Archives

    Typography

    • 1001fonts
    • Adobe Type
    • Adobe Web Type
    • Bitstream
    • Dafont.com
    • Emigre
    • Font converter (free)
    • Font Spring
    • Font Squirrel
    • Google Fonts
    • I Love Typography
    • identifont
    • Typeinspire
    • Typewolf
    • Typoretum

    Photography

    • Creative Commons

    Footer

    Subscribe to Mailing List

    Sign up to get periodic updates on Anne's design and art adventures, and receive useful info. via her blog.
    * = required field

    We never share our email list with anyone.

    Subscribe to RSS Feed

  •  ASK Design Blog
  • Contact

    Website
    Email

    Connect and Share

  •  
  • Copyright © 2021 · Optimal Theme · Built on the WordPress Genesis Framework· Customization and design by ASK Design