WordPress.org

Ready to get started?Download WordPress

Forums

KR Popular Posts
[resolved] Change px to % (2 posts)

  1. Julian
    Member
    Posted 1 year ago #

    Hello again,

    I would like to change the solid to % instead of px.
    If a post has 22 views i would like to be the solid to 22 % of the div.
    I changed px in the php to % but that didnt worked.

    Here is a picture:

    http://postimage.org/image/cc1m8p00l/

    Thanks in advance!

    http://wordpress.org/extend/plugins/knowledgering-post-popularity-graph-tool/

  2. Julian
    Member
    Posted 1 year ago #

    I was too stupid to change it. But now it works. For everyone else here is how i did it:

    Find the following part in the knowledgeringppgt.php:

    $kppg_post_graph='';
    		$kppg_post_graph.=__("Beliebtheit dieses Artikels: ","knowledgeringppgt");
    		$kppg_post_graph.=$kppg_post_popularity .'&nbsp%  ';
    
    		$kppg_post_graph.='<div style="width:'.$kppg_post_graph_width.'px;'.$kppg_graph_bg.';height:'.$kppg_post_graph_height.'px;">';
    		$kppg_post_graph.='</div>';

    and change the px of $kppg_post_graph_width. to %. Thats it!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic