• Resolved zamyboi

    (@zamyboi)


    Hi,
    I want to customise the plugin.

    By default, the plugin displays no of views at bottom of each page and posts.

    I have already inserted necessary code in functions.php:
    add_action( ‘after_setup_theme’, ‘my_pageviews_support’ );
    function my_pageviews_support() {
    add_theme_support( ‘pageviews’ );
    }

    and inserted this too, to show it on top of posts
    views: <?php do_action( ‘pageviews’ ); ?>

    1. I want this to only appear on posts, not pages. The plugin still shows counter on pages and at bottom of posts ??
    2. I want to insert an icon for views. Like the svg icon used in default.

    Thanks

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Customisation’ is closed to new replies.