When adding several charts or tables to a tab on a WordPress page, the custom css of my theme is randomly ignored and only the native css (of the theme) is used. This is, however, not always the case.
when creating a new table/chart and inserting it for the first time into a page with the shortcode, it works fine
when the page is loaded a second time, the css is suddenly reverted to the native css
this is only the case with code within a div that also has a wpDataTables shortcode; others are fine
on the link supplied: the tabs "Geboortes", "Huwelijken" and "Overlijdens" contain charts. The latter ("Overlijdens") works, while the two others don't use the correct css.
Is this something that can be solved?
For your information, each chart is built like this:
<div> <h3 id="name">Title to be displayed</h3> [wpdatachart id=1] </div>
With in the custom css a before:: tag setting the icon to be shown for the specific ID. Neither the before:: nor the make-up of the <h3> (which is also in the custom css) show up on 2 of the three pages.
you are correct, that is the issue. But not only the icons, it's the complete custom CSS rules: the places where you don't see the icons also don't have the correct make-up (font, underline, colour, etc.). What you see, is what it would be with only the theme CSS. The ones that show the icons and are underlined, also have the custom CSS.
The pages you see are:
- theme: Accelerate Pro (ThemeGrill)
- page builder: SiteOrigin Premium
The items you see that are displayed correctly and that are not charts, are shortcodes calling an ExtendedText widget.
When I added the charts to the first tab, it was ok. The second one too. It's only when I added charts to a third tab, that the first two stopped using the custom CSS.
From inspecting the page, I'd say that the custom CSS was added to widget-title span, but the tabs' headers in which it's not applied are not in <span>...</span>:
How have you added the CSS? Can you check the page? Also, could you record a short video, showing me how and where you added the CSS, and provide me with a temporary wp-admin user (Administrator) in a PRIVATE response, and I'll gladly take a look?
thank you for noticing that, I feel a bit stupid now for not seeing it.
I'm quite sure the <span> was added, as I did a copy paste before altering the text. But the tag was indeed missing.
I did a test, added the <span> to the "Geboortes" tab again, and they displayed correctly. However, after doing that the ones on the "Overlijdens" tab (the one that worked correctly before) disappeared.
The issue seems to be in the Tab widget of SiteOrigin - which removes code without me asking it. Not wpDataTables.
When adding several charts or tables to a tab on a WordPress page, the custom css of my theme is randomly ignored and only the native css (of the theme) is used. This is, however, not always the case.
Is this something that can be solved?
For your information, each chart is built like this:
<div>
<h3 id="name">Title to be displayed</h3>
[wpdatachart id=1]
</div>
With in the custom css a before:: tag setting the icon to be shown for the specific ID. Neither the before:: nor the make-up of the <h3> (which is also in the custom css) show up on 2 of the three pages.
Hey Tom
Thanks for reaching out to us.
I apologize, but I don't quite understand the issue here. If I'm not mistaken, only these icons that are appearing here:
But aren't appearing here:
Is the issue?
Could you please explain in a bit more detail, and tell me please which page builder are you using?
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Dear Aleksandar,
you are correct, that is the issue. But not only the icons, it's the complete custom CSS rules: the places where you don't see the icons also don't have the correct make-up (font, underline, colour, etc.). What you see, is what it would be with only the theme CSS. The ones that show the icons and are underlined, also have the custom CSS.
The pages you see are:
- theme: Accelerate Pro (ThemeGrill)
- page builder: SiteOrigin Premium
The items you see that are displayed correctly and that are not charts, are shortcodes calling an ExtendedText widget.
When I added the charts to the first tab, it was ok. The second one too. It's only when I added charts to a third tab, that the first two stopped using the custom CSS.
Kind regards,
Tom
Hi again Tom.
From inspecting the page, I'd say that the custom CSS was added to widget-title span, but the tabs' headers in which it's not applied are not in <span>...</span>:
How have you added the CSS? Can you check the page? Also, could you record a short video, showing me how and where you added the CSS, and provide me with a temporary wp-admin user (Administrator) in a PRIVATE response, and I'll gladly take a look?
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hi Aleksandar,
thank you for noticing that, I feel a bit stupid now for not seeing it.
I'm quite sure the <span> was added, as I did a copy paste before altering the text. But the tag was indeed missing.
I did a test, added the <span> to the "Geboortes" tab again, and they displayed correctly. However, after doing that the ones on the "Overlijdens" tab (the one that worked correctly before) disappeared.
The issue seems to be in the Tab widget of SiteOrigin - which removes code without me asking it. Not wpDataTables.
I will check with them what's happening.
Kind regards,
Tom
That's strange behavior, Tom, I must say.
Please let me know what they say. It's just a tag, so I have no idea why it would disappear.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables