Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated

remove hits view from all pages

6 years 1 week ago
  • Robby's Avatar
    Topic Author
  • Robby
  • Offline
  • Fresh Boarder
  • Posts: 79
  • Thank you received: 0
Licenses:
JomSocial Active GURU Active Publisher Active AdAgency Active iSEO Active Socialize Active

Hi,

How do I remove the hits counter from every page?

Thanks,

6 years 1 week ago
Licenses:
JomSocial Active GURU Active Publisher Active AdAgency Active iSEO Active Socialize Active

Hi
I assumed you are talking about the Profile views.
Add this code in custom.css file to hide the profile views.

.joms-button--viewed {
    display: none!important;
}

If you want to remove the views code from event and video as well. You need to open each laayout file for video and event and remove the view code.
for example video file is : \com_community\templates\jomsocial\layouts\videos\single.php
And the code is
<h5 class="reset-gap">
    <svg viewBox="0 0 16 16" class="joms-icon">
        <use xlink:href="<?php echo CRoute::getURI(); ?>#joms-icon-eye"></use>
    </svg>
    <?php
        if (CStringHelper::isPlural($video->getHits())) {
            echo JText::sprintf('COM_COMMUNITY_VIDEOS_HITS_COUNT_MANY', $video->getHits());
        } else {
            echo JText::sprintf('COM_COMMUNITY_VIDEOS_HITS_COUNT', $video->getHits());
        }
     ?>
    </h5>

You can check the style classes using inspect element of firebug, this way you can easily find the code.


Regards

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW