Keyword

[SOLVED] k2 comments pagination

  • George Nasis
  • George Nasis's Avatar Topic Author
  • Offline
  • Elite Member
More
11 years 3 weeks ago #118148 by George Nasis
[SOLVED] k2 comments pagination was created by George Nasis
Hallo there..i try to change the css of k2 comments pagination but i cannot find it anywhere..and in the item.php the code only show

<div class="itemCommentsPagination">
<?php echo $this->pagination->getPagesLinks(); ?>
<div class="clr"></div>
</div>
<?php endif; ?>

where can i add a simple margin? it looks like that Start12345End and i simply want to enter gaps by a simple margin. Start 1 2 3 4 5 End
Thanx

Please Log in or Create an account to join the conversation.

  • Yiota
  • Yiota's Avatar
  • Visitor
11 years 3 weeks ago #118149 by Yiota
Replied by Yiota on topic Re: k2 comments pagination
Hello George,
The comments pagination is the same with the rest of the K2 and Joomla! pagination. The difference is that it loads within a different container. So if you have in your CSS a statement like .k2Pagination to add styling in your other pagination pages you should also add the same styling for the .itemCommentsPagination as well.

Please Log in or Create an account to join the conversation.

  • George Nasis
  • George Nasis's Avatar Topic Author
  • Offline
  • Elite Member
More
11 years 3 weeks ago #118150 by George Nasis
Replied by George Nasis on topic Re: k2 comments pagination
Thanx for the response
i am not sure if i understand right.Already in the k2.css file there is the

div.itemCommentsPagination {padding:4px;margin:0 0 24px 0;}
div.itemCommentsPagination span.pagination {display:block;float:right;clear:both;}

statement.But in only affects the div as a whole.I would like to modify the "pages" individually.

Please Log in or Create an account to join the conversation.

  • Yiota
  • Yiota's Avatar
  • Visitor
11 years 3 weeks ago #118151 by Yiota
Replied by Yiota on topic Re: k2 comments pagination
Yes, but do you already have somewhere any css styles for pagination for listings?
What I meant was that if you already have styles for the pagination you should apply the same styles for the itemCommentsPagination as well.

Please Log in or Create an account to join the conversation.

  • George Nasis
  • George Nasis's Avatar Topic Author
  • Offline
  • Elite Member
More
11 years 3 weeks ago #118152 by George Nasis
Replied by George Nasis on topic Re: k2 comments pagination
Thanks again!
Do you mean to look in my templates css files to find a css file which contain itemCommentsPagination?
But i still can`t change the elementes of the pagination such as the gap between the numbers and arrows.It will affect the div.style.Maybe can i try something like this?

.pagination a, .pagination strong, .pagination a.next, .pagination a.previous {
font-size: 12px;
line-height: 29px;
margin:3px;

maybe to add this in my k2.css?

Please Log in or Create an account to join the conversation.

  • Yiota
  • Yiota's Avatar
  • Visitor
11 years 3 weeks ago #118153 by Yiota
Replied by Yiota on topic Re: k2 comments pagination
I mean look into your template.css file to locate .pagination a, etc... or anything you can find for pagination in general. Then just add
.itemCommentsPagination .pagination a, etc.

Please Log in or Create an account to join the conversation.

  • George Nasis
  • George Nasis's Avatar Topic Author
  • Offline
  • Elite Member
More
11 years 2 weeks ago #118154 by George Nasis
Replied by George Nasis on topic Re: k2 comments pagination
Thnan Yiota!

I just added whatever i want into k2.css!!!

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum