Please submit a private ticket if you need to share sensitive information, such as license details and admin credentials.

Okay
  Public Ticket #3333605
Compare columns
Open

Comments

  • Frits Strijbos started the conversation

    Hello,

    If I have two items selected to compare I get three columns of which one is empty. Is there a way to hide the empty column?

    Thanks for the support!

    Kind regards,

    Frits Strijbos

    Attached files:  WPClever Smart Compare.png

  •  767
    Janilyn replied

    Hi Frits,

    Thank you for contacting WPClever Support Forum. 

    We’ve received your ticket and assigned one of our developers to help you with that. 

    He’ll be looking into your question and responding with specific instructions as soon as possible. 

    Please stay patient as we're having very heavy workloads, it might take some time for our developers to reach back.

    Best regards.

    Janilyn T. - WPClever Support Agent

  •  1,238
    Dustin replied

    Hi Frits,

    Please add the below custom code (How to add custom code?)

    add_filter( 'woosc_get_table_minimum_columns', function () {
        return 1;
    } );

    And all empty columns will be hidden https://www.screencast.com/t/ALiFN6sJ

    OR

    Please add below CSS code to WP-Admin → Appearance → Customize → Additional CSS:

    .woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table tbody tr.tr-image td.td-placeholder {
        background-image: none;
    }
    .woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table tbody tr td.td-placeholder:before {
        display: none;
    }

    All empty columns still be kept but haven't the background https://www.screencast.com/t/2TYePpyE

    Best regards,
    Dustin

  • Frits Strijbos replied

    Hello Dustin,

    Thank you for the support!

    The code works like a charme.

    Kind regards,
    Frits Strijbos