• Resolved sarah_allen

    (@sarah_allen)


    http://rhinestonecardgirl.co.uk/

    I’m using Twenty Fifteen and the following plugin to display Etsy listings on my page above:
    https://wordpress.org/plugins/etsy-shop/

    It uses tables for the layout rather than divs. The rows with three items are fine, but those with only one or two are right-aligning on the page instead of left.

    I asked about this on the plugin forum but have had no response.

    I can’t see anything in the plugin code that would make the tables sit on the right of the page. I’ve tried hacking it to make the tables sit left but it had no effect.

    Just wondering if anyone knows of anything in the Twenty Fifteen theme that would cause tables to sit on the right like this?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    It’s normal for tables to behave like that.

    Thread Starter sarah_allen

    (@sarah_allen)

    Ok…. Any ideas how I could overwrite it? Where the tables only have one or two columns, I’d like them to sit left instead of right…

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    If you’re not using a Child Theme, and if the theme doesn’t have a designated section of the dashboard for CSS modifications then install this Custom CSS Manager plugin http://wordpress.org/plugins/custom-css-manager-plugin

    Then use its “CSS Code” section of the dashboard to hold your CSS modifications:

    Alternatively use your Child Theme style.css file to hold your CSS modifications:

    td.etsy-shop-listing {
        float: left;
    }

    Thread Starter sarah_allen

    (@sarah_allen)

    Thank you so much. 🙂

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    You’re welcome Sarah. Just note that it’s easy to get into overheads like this when using tables just for looks 😉 I think people get around that by using column plugins, that allow you to achieve the same sort of layout. I may be wrong because I’ve never used one, but this looks right https://wordpress.org/plugins/easy-columns/

    Thread Starter sarah_allen

    (@sarah_allen)

    Cheers. 🙂

    Personally I wouldn’t use tables at all as they’re poor from an accessibility perspective. Unfortunately this plugin uses tables for the layout. I did consider trying to hack the code to change it to divs for layout but that’s a bit beyond my current skills!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Would theme be causing this plugin behaviour? (table alignment)’ is closed to new replies.