Keyword

how to place Hits (page views) counter in same line as read more?

  • migors
  • migors's Avatar Topic Author
  • Offline
  • New Member
More
14 years 1 month ago #86190 by migors
Helo friends, please help noob, could you suggest how to place Hits (page views) counter in same line as read more? it takes too many space where it is so i need it like in picture, and is there way to place in the same line publish datate and time. I d be rely thanks full. I am not a programmer just like joomla and building my personal webpages, just try use k2 instead of joomla content, great component :)

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

More
14 years 1 month ago #86191 by william white
see attached file
this is item.php file with a line moved to put what was above - beside

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

  • migors
  • migors's Avatar Topic Author
  • Offline
  • New Member
More
14 years 1 month ago #86192 by migors
Hi thanks for reply
Hi i tried but no result, i have default k2 template in /httpdocs/components/com_k2/templates/default/
so i tried there.

and i need to place that hit counter in category view, does item.php will change that?


William White said:see attached file this is item.php file with a line moved to put what was above - beside

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

More
14 years 1 month ago #86193 by william white
In that case you will need to work in one of the files starting with category.......php in the same directory
Find the file that contains "be the first to comment" and try there

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

  • migors
  • migors's Avatar Topic Author
  • Offline
  • New Member
More
14 years 1 month ago #86194 by migors
Thank you i need just a little guidance and i did it :) So i needed to eddit category_item.php and k2.css.

Here result:



I am not shure did i all right, but for now all works. Could you please look on code and say if it is ok? css i ok but dont know is it right way in php

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

More
14 years 1 month ago #86195 by william white
It appears to be working!
Please consider using K2 overrides
Search here and the documentation forum
Using an override and onecss4k2 will allow you to update k2 and not loose the changes

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

  • migors
  • migors's Avatar Topic Author
  • Offline
  • New Member
More
14 years 1 month ago #86196 by migors
Thanks!

William White said:It appears to be working! Please consider using K2 overrides
Search here and the documentation forum
Using an override and onecss4k2 will allow you to update k2 and not loose the changes

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


Powered by Kunena Forum