Skip to content

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

Description

@revdan

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 :)

Activity

  1. nickpad commented on Nov 21, 2013

    @nickpad
    Contributor

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

  2. majorvin commented on Jan 20, 2014

    @majorvin

    I have a solution for this.
    majorvin#1

  3. Aufree commented on Sep 18, 2014

    @Aufree

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

  4. chip-and-dail commented on Nov 1, 2014

    @chip-and-dail

    +1

  5. edatrix commented on Sep 8, 2015

    @edatrix
    Contributor

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

  6. jacurtis commented on Jan 15, 2016

    @jacurtis

    @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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions