-
AuthorPosts
-
February 23, 2012 at 10:44 am #174204
Hi there
I need to move the “Page 1 of x” into the pagination bar in front of “Start | Prev | 1 ..” See image below.
Also I’d like to add a title above the pagination bar “Other News Articles”. How would I add that in?
Your assistance would be very much appreciated.
-
pixelzombie Friend
pixelzombie
- Join date:
- August 2010
- Posts:
- 339
- Downloads:
- 2
- Uploads:
- 49
- Thanks:
- 32
- Thanked:
- 168 times in 107 posts
February 28, 2012 at 1:05 pm #440601Hi boost_it,
since the pagination counter “Page 1 of 2” resides in another file than the pagination “Start Prev” it’s not possible (for me) to combine them. So you have to “move” the page counter via css like this: Open up your
templates/ja_business/css/template.css file and look for these 2 code blocks. Change / add the red marked text.
.pagination p.counter {
float: none;
font-size: 92%;
text-align: left !important;
position: relative;
top: -35px;
left: 21px;
}
.pagination .pagination ul {
margin: 0 !important;
overflow: hidden;
padding: 0 10px 0px 90px;
position: relative;
width: 525px;
}
To add your custom text above the pagination open up
templates/ja_business/html/pagination.php and change the following code block from this
// Initialize variables
$lang =& JFactory::getLanguage();
$html = "<div class="pagination clearfix"><ul>";
// Reverse output rendering for right-to-left display
to this
// Initialize variables
$lang =& JFactory::getLanguage();
$html = "<div class="pagination-title"><h5>Other News Articles</h5></div>";
$html .= "<div class="pagination clearfix"><ul>";
// Reverse output rendering for right-to-left display
I picked <h5> but you can put there whatever you want and style the tile via css and the .pagination-title class.
Cheers
Frank
1 user says Thank You to pixelzombie for this useful post
March 1, 2012 at 7:01 am #441045Much appreciated Frank 🙂
Your suggested changes were close to what I need. I know you said you can’t get the “Page 1 of 2” in the “Start Prev” pagination section. Can you suggest someone else who can help me do this?
This is what the pagination looks like after your suggested code changes:
pixelzombie Friendpixelzombie
- Join date:
- August 2010
- Posts:
- 339
- Downloads:
- 2
- Uploads:
- 49
- Thanks:
- 32
- Thanked:
- 168 times in 107 posts
March 1, 2012 at 8:23 am #441055My CSS code above should move the “Page 1 of 2” before the “Start Next” allready. Did you paste it to your template.css?
.pagination p.counter {
float: none;
font-size: 92%;
text-align: left !important;
position: relative;
top: -35px;
left: 21px;
}1 user says Thank You to pixelzombie for this useful post
March 1, 2012 at 9:08 am #441063Yes I followed your code exactly. Any ideas why its not moving it to the correct spot? BTW I’m using JA Business 1.6 template (in case that affects the result).
pixelzombie Friendpixelzombie
- Join date:
- August 2010
- Posts:
- 339
- Downloads:
- 2
- Uploads:
- 49
- Thanks:
- 32
- Thanked:
- 168 times in 107 posts
pixelzombie Friendpixelzombie
- Join date:
- August 2010
- Posts:
- 339
- Downloads:
- 2
- Uploads:
- 49
- Thanks:
- 32
- Thanked:
- 168 times in 107 posts
March 5, 2012 at 12:34 am #441819Thanks for sending your site url. Please try these small changes:
.pagination p.counter {
float: none;
font-size: 92%;
text-align: left !important;
position: relative;
top: 76px;
left: 20px;
}
Cheers
Frank
1 user says Thank You to pixelzombie for this useful post
March 6, 2012 at 3:10 am #442096Thank you :laugh: it’s exactly how I wanted it.
pixelzombie Friendpixelzombie
- Join date:
- August 2010
- Posts:
- 339
- Downloads:
- 2
- Uploads:
- 49
- Thanks:
- 32
- Thanked:
- 168 times in 107 posts
March 6, 2012 at 12:15 pm #442173Hi boost_it,
I’m glad it worked out as you wanted it 🙂
If you have any other issues feel free to open a new thread and we’ll figure it out!Cheers
Frank
AuthorPostsViewing 9 posts - 1 through 9 (of 9 total)This topic contains 9 replies, has 2 voices, and was last updated by pixelzombie 12 years, 9 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum
-