You can add some custom CSS to your sites to permanently remove the ellipses:
.wp-paginate .gap {
display: none;
}
Hi Alan,
Unfortunately that doesn’t really solve the issue as you are still left with the margin-right of it’s parent <li> element.
The right margin can also be adjusted with custom CSS code.
Hi Alan,
Not in a reliable manner it can’t. It has no specific class tied to that <li> element, so the only way to target it would be to target it as a specific child element, but it doesn’t stay in a reliable position to do so (sometimes it’s the last child and sometimes it’s the second last child – and I think sometimes it’s the first child and sometimes it’s the second child).
Yes, you could technically apply a class to it via JS, but to be honest IMO I think that is getting a bit convoluted for what should be a trivial problem.
Why is it so hard to fix this?
To me it seems that putting in a simple checkbox in admin to disable the ellipses would be pretty simple.
All you have to do is change this line:
$ellipsis = "<li><span class='gap'>...</span></li>";
to…
$ellipsis = "";
Not sure why this is such a hard request. Every single time the plugin is updated I have to manually make this change.
Fortunately I only have it installed on one site at this stage, but I likely wouldn’t install it on any others because of this.
We have been busy with a major project. But we can consider adding this in the future.
Thank You. That would be much appreciated! 🙂
We have released version 2.1.1 that includes the option to hide ellipses.
Thank you so much Alan – this makes updating so much easier 🙂
Hi @alanp57,
Once again thanks for putting in a fix for this, however it seems it falls a bit short as it leaves the empty <li></li> there.
This is a problem for the reasons I have specified above.
Can’t it just be an empty string? …or at least apply a class to the empty <li> so it can reliably be targeted with CSS.
Thanks!
You can change
$ellipsis = "<li></li>";
on line 369 to
$ellipsis = "<li class='ellipse-gap'></li>";
And this will be included next release, whenever that happens.