will_paginate-bootstrap
will_paginate-bootstrap copied to clipboard
Is it possible to remove the default class of `.pagination`?
I'm removing the page numbers, and adding a class of .pager like this:
<%= will_paginate @posts,
renderer: BootstrapPagination::Rails,
page_links: false, class: :pager %>
However, because it's automatically adding the .pagination class as well, I'm getting some funkiness.
I don't have a live example, but here's how it looks with first .pager .pagination and second with just .pager

Thanks in advance :)
Thanks for reporting this. I’ll try and get round to adding an option to override the ‘pagination’ class soon.
I have a solution for this. https://github.com/majorvin/will_paginate-bootstrap/pull/1
When i add code <%= will_paginate @comments, renderer: BootstrapPagination::Rails %> to my project, I got two class pagination, Why?
+1
Is this still open? I'm still getting two pagination classes.
@Aufree or @edatrix does your @comments model belongs_to another model like "Posts" or something? If so, this might be the cause of the issue. Would need to investigate after confirming. I bet that is what causes two paginations.