Links shortcode
[resolved] display links in 2 columns (3 posts)

  1. M One
    Posted 2 years ago #

    Hi Maarten - Could you please give me an idea how I can display the links in two columns either in a table or preferably using css? Thanks.


  2. netdiva790
    Posted 2 years ago #

    I would also like to know if the display can be two or three columns. Also, can it include logos?

  3. Maarten Swemmer
    Plugin Author

    Posted 2 years ago #

    Hello M One and netdiva790,

    Using a table would be a bit hard as you would manually have to split the links into equal length columns and then use two or more shortcodes in a HTML table in your page.

    Using CSS you could make a template which displays every link as a list item:

    The "before" template (in the plugin settings) would be
    <ul class="three_column_links">
    And the "after" template:

    You could then use CSS in your WordPress Theme CSS to display lists for the "three_columns_links" in columns, using the "column-count" CSS3 property: http://www.w3schools.com/cssref/css3_pr_column-count.asp
    It should be supported by all modern browsers, but I have no experience with it myself.

    About images, Yes, you can assign images to links in the Links module of WordPress. You can then retrieve the url for an image using the template tag [link_image].

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Links shortcode
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.