Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to remove the default class of .pagination? #21

Open
revdan opened this issue Oct 20, 2013 · 6 comments
Open

Is it possible to remove the default class of .pagination? #21

revdan opened this issue Oct 20, 2013 · 6 comments

Comments

@revdan
Copy link

revdan commented Oct 20, 2013

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

screen shot 2013-10-20 at 20 53 24

Thanks in advance :)

@nickpad
Copy link
Contributor

nickpad commented Nov 21, 2013

Thanks for reporting this. I’ll try and get round to adding an option to override the ‘pagination’ class soon.

@majorvin
Copy link

I have a solution for this.
majorvin#1

@Aufree
Copy link

Aufree commented Sep 18, 2014

When i add code <%= will_paginate @comments, renderer: BootstrapPagination::Rails %> to my project, I got two class pagination, Why?

@chip-and-dail
Copy link

+1

@edatrix
Copy link
Contributor

edatrix commented Sep 8, 2015

Is this still open? I'm still getting two pagination classes.

@jacurtis
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants