Sorry but I did not quite understand what are you trying to achieve, can you please describe me a little bit more or send me some example so I can take a look.
Do you want to have 3 Show__entries an all of your tabs or something else.
The Showing ___ entires functionality is from datatables library that we are using.
The display of the table should be the same like form the live preview in the backend.
If it is not the same like from the backend then probably there is some issue with the theme that is why it is necessary for me to see the link of that table so we can investigate.
Also please try to change the theme and tell me do you still have the same issue.
It's really not a clash of CSS with the theme. At least I don't think so. As you can see from the screen shots, those controls are generated as extra <div> elements. What is puzzling is that there are three other tables on the page and they display the "Show ____ entries" control correctly and there is only one on each.
I wrote some javascript to remove the extra elements:
elements = document.getElementsByClassName('dataTables_length'); elements[4].remove(); elements[4].remove(); //repeated because the previous call shrinks the collection by one.
I wish I could give you access to the page but that is against company policy.
However, I am happy to perform a debugging session for you if you like. Please supply the steps or data you need.
Do you can agree that extra divs are going to be introduced by the table generation code? It is using your css class, "dataTables_length".
I wish I knew what is happening on the back end to cause this. If you think this is specific to my installation then we can close this since I have found a way to remedy the problem.
I have a table where there are multiple instances of the "Show ___ entries" control showing in a table. (see toomany.png)
Looking at the browser console I see that there are a total of three divs generated for that control:
<div id="table_7_length" class="dataTables_length"></div>
<div class="dataTables_length"></div>
<div class="dataTables_length"></div>
Of course the last two are extraneous.
I have three other tables on the page and they look fine. (see isfine.png)
Though I can imagine fixing this with javascript I am hoping you can suggest a fix.
Mark Lee
Hi Mark,
Thank you for your purchase.
Sorry but I did not quite understand what are you trying to achieve, can you please describe me a little bit more or send me some example so I can take a look.
Do you want to have 3 Show__entries an all of your tabs or something else.
Correct me if I did not understand you.
Best regards.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
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 Bogdan,
I want just 1 "Show__entries" for each tab.
It looks to me as if wpDataTables is generating 2 extra divs on the table (see toomany.png).
Is there something I can do to prevent the extra <div>s from being generated?
Mark
HI Mark,
Can you please send me the link of that page so I can take a look.
Best regards.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
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
Bogdan,
I would like to give you a link but my company's policies don't allow this.
It really does look to me as if there is a bug - at least in this particular table.
As I pointed out below it does look as if there is code creating three divs that render "Show ____ entries" controls:
<div id="table_7_length" class="dataTables_length"></div>
<div class="dataTables_length"></div>
<div class="dataTables_length"></div>
You can see this in the following screen shots: divA.png divB.png divC.png
To me this is a bug.
Can you see anything from the screen shots?
Mark
Hi Mark,
The Showing ___ entires functionality is from datatables library that we are using.
The display of the table should be the same like form the live preview in the backend.
If it is not the same like from the backend then probably there is some issue with the theme that is why it is necessary for me to see the link of that table so we can investigate.
Also please try to change the theme and tell me do you still have the same issue.
Best regards.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
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 Bogdan,
It's really not a clash of CSS with the theme. At least I don't think so. As you can see from the screen shots, those controls are generated as extra <div> elements. What is puzzling is that there are three other tables on the page and they display the "Show ____ entries" control correctly and there is only one on each.
I wrote some javascript to remove the extra elements:
elements = document.getElementsByClassName('dataTables_length');
elements[4].remove();
elements[4].remove(); //repeated because the previous call shrinks the collection by one.
Best regards,
Mark
Hi Mark,
Is there any way that you can send me the link of that page so we can take a look.
Best regards.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
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 Bogdan,
I wish I could give you access to the page but that is against company policy.
However, I am happy to perform a debugging session for you if you like. Please supply the steps or data you need.
Do you can agree that extra divs are going to be introduced by the table generation code? It is using your css class, "dataTables_length".
I wish I knew what is happening on the back end to cause this. If you think this is specific to my installation then we can close this since I have found a way to remedy the problem.
Best regards,
Mark
HI Mark,
It is strange that this is happening only in one tab.
Maybe the issue can be some conflict with other plugin. So can you please try to disable some of the plugins and see if the issue is gone.
I am asking for credentials because this is the first time that someone reported this behaviour of the dataTables_length.
Also those buttons/labels are from datatables itself and we are using them and some features from their library to show tables on front end.
Can you please tell me is it happening on the backend also?
Our plugin should not create the extra divs for that label.
Best regards
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
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