Close Tab Not Visible
-
There are 2 issues with Tabbies.
1. Close tab is hard to see and it is empty, leaving visitors to wonder what it is for, if they see it. Normally, as people expect is an “X” to close something.
2. Accordion version of the close tab opens showing an empty container. There should be no reason for this and takes away from the design and layout of the page.
I fixed these issues with Custom CSS. It would be better if the plugin is changed to fix these issues instead of us having to add more CSS.
Anyway, here are my fixes for others who wish to achieve the same fix. This would be adding Custom CSS via Theme/WordPress customization panel.
— Issue 1 —
li[id$='-tab1']:before { content: "X"; font-family: sans-serif; color: #C0C0C0; background-color: transparent; } li[id$='-tab1'] { border-width: 1px !important; border-style: dashed !important; }
You can omit the CSS line giving the tab a dashed line. I did that to make it more distinctive. I want my visitors on my Tourism site to know quickly where to find things (close tab) and not second-guess it. This because a lot of visitors are one time only, not repeats, so the first success is the best success.
— Issue 2 —
@media screen and (max-width: 767px) { [id$='-panel1'] { display: none !important; } }
This one addresses the mobile screen, where the empty accordion panel occurs from tapping the (first) close tab/accordion. I believe the width of 767px is the break point, after that size it reverts back to regular tabs.
We cannot place any content into this close tab/accordion panel, so by default of the plugin, it creates an empty panel that will open when the close tab/accordion is tapped.
The custom CSS will stop the empty panel from showing when the close tab/accordion is tapped. It still closes the other panels if they are open, so now it functions properly without the extra panel display.
Hope this helps.
- The topic ‘Close Tab Not Visible’ is closed to new replies.