• Resolved Jamncream

    (@jamncream)


    Hi all, I have been using the plugin for some time, and I managed to style the frontend views text with:
    .post-views-count {
    font-size: 11px !important;
    font-style: italic;
    }

    It was working perfectly, but today I noticed it has reverted to p CSS (14px, not italic).

    Could a recent upgrade of the plugin trashed the .post-views-count?

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Jamncream

    (@jamncream)

    Found it, sorry, I had forgotten I had modified a plugin php file also.
    Changed:
    $hits_html = ‘<p>’ . sprintf(__(‘Views: %s’, ‘wp-statistics’), $hits) . ‘</p>’;
    to:
    $hits_html = ‘<p class=”post-views-count”>’ . sprintf(__(‘Views: %s’, ‘wp-statistics’), $hits) . ‘</p>’;

    in the /includes/class-wp-statistics-frontend.php file

    Plugin Author Mostafa Soufi

    (@mostafas1990)

    Good to hear your issue is fixed.

    Let me know if you have any further questions.

    Best

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.