Support » Plugin: Pageviews » Too big icon on amp pages!

  • Resolved Punker1


    On amp pages, the counter icon has a size equal to its width, i.e. very large.
    I had to make changes to the line of code in the file “pageview.php”:
    $content .= '<div class="pageviews-wrapper"><svg xmlns="" xmlns:xlink="" x="0px" y="0px" viewBox="0 0 1792 1792" style="width: 16px;"><path d="M588.277,896v692.375H280.555V896H588.277z M1049.86,630.363v958.012h-307.72V630.363H1049.86z M1511.446,203.625v1384.75h-307.725V203.625H1511.446z"/></svg>' . self::get_placeholder( $key ) . '</div>';

    Added code: style="width: 16px;

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Too big icon on amp pages!’ is closed to new replies.