Custom Pagination Error [using default method]

New Member
4 0 0

Hi there,

I have a cilent who wants the pagaination on their site to look like this:

<Previous  1 2 3 4 5 6 7 8 9 ... 36  Next>

I have used the desult [easy way] to solve it however it looks very strange and pulls in Product names [see below]

 

Emma Sharon Jamie Joanne Ciara Jen Reanne Jenna
« Previous 1 2 3 4 … 16 Next »
 

 

How do I fix this... also whats the best way to center it on the page. I assume I use CSS but not sure on syntax

 

Cheers

0 Likes
New Member
4 0 0

*** UPDATE ***

OK I got it to work by using "Manual Paganianion"

 

  {% if paginate.previous %}
    {{ paginate.previous.title | link_to: paginate.previous.url }}
  {% endif %}
  {% for part in paginate.parts %}
    {% if part.is_link %}
      {{ part.title | link_to: part.url }}
    {% else %}
      {{ part.title }}        
    {% endif %}        
  {% endfor %}      
  {% if paginate.next %}
    {{ paginate.next.title | link_to: paginate.next.url }}
  {% endif %}

 

Now just have to work out how to center it...

0 Likes
Highlighted
Excursionist
36 0 31

Hi Luke,

Did you manage to align it to the center? Or move it to another part of the site? I'm also trying to do that...

0 Likes