WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. M One
    Member
    Posted 1 year 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.

    http://wordpress.org/extend/plugins/links-shortcode/

  2. netdiva790
    Member
    Posted 1 year ago #

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

  3. Maarten Swemmer
    Member
    Plugin Author

    Posted 1 year 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:
    <link_xxx_etc]</li>

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

    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

About this Topic

Tags

No tags yet.