• Resolved scooterfox

    (@scooterfox)


    Dear Support-Team,

    there is a wish from my customer I can’t implement:

    If the visitor filters the selection is shown down under with a thin line trough.

    Is it possible to have a double line AND a hover text which says “Reset Filter”?

    Looking forward for your support.

    Thanks
    Julia

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    To get the double line at all times (even when hovering), please change your CSS to

    .column-filter-widgets a.filter-term,
    .column-filter-widgets a.filter-term:hover {
      text-decoration: line-through double !important;
    }

    Unfortunately, I’m not aware of a quick way to add a hover text 🙁 This would require changes to the HTML code of the dropdowns, which you’d have to do in the JS files of the ColumnFilterWidgets. Unfortunately, I don’t know where exactly, as I’m not the developer of that JS code but only added it to the TablePress Extension.

    Regards,
    Tobias

    @scooterfox you could try this

    .column-filter-widgets a.filter-term:hover:after {
    content: “Reset Filte”;
    margin-left: 1em;
    }

    or even better for you

    .column-filter-widgets a.filter-term:hover {
    text-decoration: none!important;
    }
    .column-filter-widgets a.filter-term:hover:after {
    content: “clear filter”;
    margin-left: 1em;
    text-decoration: none!important;
    background: #ed7900;
    color: white;
    padding: 0.2em;
    }

    .column-filter-widgets a.filter-term {
    text-decoration: line-through double;
    }

    • This reply was modified 6 years, 6 months ago by nordie. Reason: extra
    • This reply was modified 6 years, 6 months ago by nordie.
    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    nordie, nice idea! Thanks for sharing this!

    Regards,
    Tobias

    @tobiasbg your welcome the least i can do

    btw
    this is a bit overkill
    .column-filter-widgets a.filter-term,
    .column-filter-widgets a.filter-term:hover

    this would be sufficient
    .column-filter-widgets a.filter-term:hover

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    yes, the hover version should be sufficient, indeed.

    Regards,
    Tobias

    Thread Starter scooterfox

    (@scooterfox)

    Dear Tobias, dear nordie,

    sorry for asking so late. I was ill.

    Thank you so much for your help.

    I’m really very grateful!

    It’s a good thing there are people like you.

    <3

    Thread Starter scooterfox

    (@scooterfox)

    Forgot to say: it works perfect 🙂

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! 🙂 Good to hear that this helped!

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

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

The topic ‘Column-Filter-Widget – Layout via CSS’ is closed to new replies.