Viewing 4 posts - 1 through 4 (of 4 total)
  • Posted in: Supreme
  • #25400
    Ernesto Jimenez
    Member
    Post count: 13

    Hi,

    Is there any way to put a views counter on posts? like the comments counter or likes counter.

    Regards.

    #25609
    Melanie – SUPPORT
    Member
    Post count: 11032

    Not built into the theme, maybe you can find a plugin that lets you do that. Cheers

    #26672
    Ernesto Jimenez
    Member
    Post count: 13

    Hi Melanie,

    I installed a plugin now, I just need to include this code in the places where it is needed:

    <?php total_views(get_the_ID()); ?> Total Views

    I put it in single.php for all posts.
    How can I make that my counter appears in the masonry blog of my front page? instead of “love-it” counter or “comments” counter.

    This is my page: http://texasborderbusiness.com/

    #26847
    Cosmin – SUPPORT
    Member
    Post count: 3851

    The file you need to edit for the Masonry blog element is:

    /includes/page-builder/composer/lib/shortcodes/blog.php

    Regards,
    ————————————————————————————————————

    Cosmin – Support

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register