Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #4540
    Yoram Zara
    Participant

    I installed the plugin on my test site http://50.116.26.160:8080/staging.avelim.co.il/
    My site runs on WodPress in Hebrew which is written right to left.

    This is a sample post
    http://tinyurl.com/o7aby2j

    Currently, when read from right to left you have:
    “icon” “Posts view label” “number”
    I want to change the order. I want it to be, read from right to left”
    “number” “Posts view label” “icon”
    See
    http://goo.gl/VTx9fv

    How do I do that?

    #5779
    Diego Peixoto
    Participant

    Hello, my friend. I’m a bit late to reply, but I figured out how to do this. On functions.php, change wherever on:

    $html = apply_filters(
    			'pvc_post_views_html',
    			'<div class="post-views post-'.$post_id.' entry-meta">
    				'.($options['display_style']['icon'] && $icon_class !== '' ? $icon : '').'
    				'.($options['display_style']['text'] ? '<span class="post-views-label">'.$label.' </span>' : '').'
    				<span class="post-views-count">'.$views.'</span>
    			</div>',
    			$post_id,
    			$views,
    			$label,
    			$icon
    		);

    to:

    
    		$html = apply_filters(
    			'pvc_post_views_html',
    			'<div class="post-views post-'.$post_id.' entry-meta">
    				'.($options['display_style']['icon'] && $icon_class !== '' ? $icon : '').'
    				'.($options['display_style']['text'] ? '<span class="post-views-count">'.$views.' </span>' : '').'
    				<span class="post-views-label">'.$label.'</span>
    			</div>',
    			$post_id,
    			$label,
    			$views,
    			$icon
    		);
    

    It i’ll invert Label and view, i don’t recommend to invert icon position, cause it can cause some trouble.

    Take care.

    #5792
    Bartosz
    Keymaster

    It will work but it’s not a good idea to change the plugin files – it will be overwritten during the plugin update.

    I suggest just using the pvc_post_views_html filter to display any content and items order you need.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.