• can you please help me add a two column table to my home page? i’m using the executivepro theme by studiopress.

    the table should be the width of the site, height of the screen.

    table size should be responsive

    thanks

    ps: i’m not a coding professional – so i appreciate as much detail as you can give. ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • If you don’t know how to code a table, you should think about using the TablePress plugin. It’s very easy to use and to set up your own tables. There are features like setting up a table so that users can sort by clicking on a heading.

    I might recommend the plugin Shortcodes Ultimate. As a theme developer I found this to be the easiest solution when it comes to creating columns and other basic HTML code with styling. It supports an easy edit in place UI with live previews before submitting.

    If you’re just looking for basic table code then try this for two columns. This is only going to be basic code with no table header.

    <table id="home-table">
        <tr>
            <td>Column 1</td>
            <td>Column 2</td>
        </tr>
    </table>

    I would then recommend using CSS to set width and height of the table.
    #home-table table { width: 100%; height: 100%; }

    You will run into issues with the width and height if you have a parent structure.
    Most developers wouldn’t recommend you use TABLES for anything in themes structure, DIV’s are usually ideal for anything structural. I myself will only use tables for organizing specific content.

    Hope this helps out!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘add table to home page’ is closed to new replies.