Great work Rahul! This looks awesome 🙂
Update: if yo uare using a child theme and the anspress theme override be sure to place it within the parent theme not the child one. i have tested it and i got almost same issues like you do and moving the anspress overide to the parent theme solved that hope this could be helpful.
these are css issues. since i tried the latest version and it simply looks ok, i believe that this should be a conflict with your current theme / plugin css.
First of all you need to change the language of wordbpress setup to the desired language, then you gonna need to follow steps described by @KUMAR. i believe that you gonna need many adjustment to the current theme since i don’t know if it supports RTL languages or no.
as a follow up i think that there might be another issue with received votes : i suggest to change the whole about block <div class="ap-about-block"> <h3><?php echo ap_icon('reputation', true); ?> <?php _e('Reputation', 'ap'); ?></h3> <div class="ap-about-block-c"> <div class="ap-about-rep clearfix"> <div class="ap-pull-left"> <span class="ap-about-rep-label"><?php _e('Total', 'ap'); ?></span> <span class="ap-about-rep-count"><?php ap_user_the_reputation(); ?></span> </div> <div class="ap-about-rep-chart"> <span data-action="ap_chart" data-type="bar" data-peity='{"fill" : ["#8fc77e"], "height": 45, "width": "100%"}'><?php echo ap_user_get_28_days_reputation(); ?></span> </div> <div class="ap-user-rep"> <?php if(ap_has_reputations(array('number' => 5))){ while ( ap_reputations() ) : ap_the_reputation(); ap_get_template_part('user/reputation-content'); endwhile; } ?> </div> </div> </div> </div> with this <div class="ap-about-block"> <h3><?php echo ap_icon('thumbs-up-down', true); ?> <?php _e('Votes', 'ap'); ?></h3> <div class="ap-about-block-c"> <div class="ap-about-votes row"> <div class="col-md-6"> <span class="ap-about-vote-label"><?php printf(__('%d votes received', 'ap'), ap_user_total_votes_received()); ?></span> <?php $upVoteReceivedPercent=0; if(ap_user_total_votes_received()>0) $upVoteReceivedPercent=ceil((ap_user_get_the_meta('__up_vote_received')/ap_user_total_votes_received())*100); ?> <span data-action="ap_chart" data-type="donut" data-peity='{ "fill": ["#9087FF", "#eeeeee"], "innerRadius": 20, "radius": 25 }'><?php echo $upVoteReceivedPercent; ?>/100</span> <span class="ap-vote-count"><b><?php ap_user_the_meta('__up_vote_received'); ?></b><?php _e('up', 'ap'); ?></span> <span class="ap-vote-count"><b><?php ap_user_the_meta('__down_vote_received'); ?></b><?php _e('down', 'ap'); ?></span> </div> <div class="col-md-6"> <span class="ap-about-vote-label"><?php printf(__('%d votes casted', 'ap'), ap_user_total_votes_casted()); ?></span> <?php $upVoteSentPercent=0; if(ap_user_total_votes_casted()>0) $upVoteSentPercent=ceil((ap_user_get_the_meta('__up_vote_casted')/ap_user_total_votes_casted())*100); ?> <span data-action="ap_chart" data-type="donut" data-peity='{ "fill": ["#9087FF", "#eeeeee"], "innerRadius": 20, "radius": 25 }'><?php echo $upVoteSentPercent; ?>/100</span> <span class="ap-vote-count"><b><?php ap_user_the_meta('__up_vote_casted'); ?></b><?php _e('up', 'ap'); ?></span> <span class="ap-vote-count"><b><?php ap_user_the_meta('__down_vote_casted'); ?></b><?php _e('down', 'ap'); ?></span> </div> </div> </div> </div>
hello, on /wp-content/plugins/anspress-question-answer/theme/default/user/about.php try to change the line 48 which is currently like this : <span data-action="ap_chart" data-type="donut" data-peity='{ "fill": ["#9087FF", "#eeeeee"], "innerRadius": 20, "radius": 25 }'><?php echo ceil((ap_user_get_the_meta('__up_vote_casted')/ap_user_total_votes_casted())*100); ?>/100</span> to <?php $upVotePercent=0; if(ap_user_total_votes_casted()>0) $upVotePercent=ceil((ap_user_get_the_meta('__up_vote_casted')/ap_user_total_votes_casted())*100); ?> <span data-action="ap_chart" data-type="donut" data-peity='{ "fill": ["#9087FF", "#eeeeee"], "innerRadius": 20, "radius": 25 }'><?php echo $upVotePercent; ?>/100</span>