Pagination Question

General ShopSite user discussion

Pagination Question

Postby utz119 » Thu Mar 29, 2007 3:09 pm

Is there anyway to change the look of the generated number of page so than my customers know what page they are viewing?

The page number shows like below no matter what page you are viewing.

prev 1 2 3 4 5 next


If you are in the page 3, I like to make it clear that you are page 3.

prev 1 2 3 4 5 next


Can I add Underline or Bold font just for the page number?

Thank you in advance.







utz119
 
Posts: 49
Joined: Thu Mar 29, 2007 2:46 pm
Location: New York

Postby loren_d_c » Thu Mar 29, 2007 3:18 pm

You can't change the HTML that is created by the PrevNext template tag, however the code it creates does have classes assigned to it so that you can define some of the look of it in your own CSS. The current page number, for example, is in a span with a class assignment of 'currentpage', so if you define a style for text in a span of this class, then it should affect only the current page number in the pagination links.

Example: here is what the HTML in the pagination links code looks like for page 1 when you are on page 1:

<span class="currentpage"><b>1</b></span>

If you know CSS, it should be pretty simple to come up with something to make this 1 look how you want it.

-Loren
loren_d_c
 
Posts: 2572
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere

Postby utz119 » Thu Mar 29, 2007 3:29 pm

Loren

Thank you so much. It worked!!

Tina
utz119
 
Posts: 49
Joined: Thu Mar 29, 2007 2:46 pm
Location: New York


Return to User Forum

Who is online

Users browsing this forum: No registered users and 92 guests