multiple postviews shown in magazine template

Reports about issues that you encounter in Suffusion. This forum is closed with effect from February 2019. Please post future requests on https://github.com/sayontan/suffusion.
Forum rules
This forum is being officially closed with effect from 3rd February 2019. Future support requests can be posted on the GitHub page at https://github.com/sayontan/suffusion/issues.
Locked
ahmetax
Posts: 26
Joined: 20 Apr 2013, 04:00

multiple postviews shown in magazine template

Post by ahmetax » 22 Jul 2015, 15:47

Hello,
I am using suffusion 4.4.7 on multisite wordpress. Also I use wp-postviews plugin.
Normally there are no problems while showing postviews.
But when I use magazine template, all postviews numbers are repeated unnecessarily on a row above the slider box.
The postviews shown below the post titles are normal.
When I remove the slider box, the problem line also disappears.
How can I remove that extra postviews line?
You can see the problem at: http://gurmezin.com
Thank you.
Ahmet

drake
Posts: 6223
Joined: 26 Jul 2011, 07:56
Location: Constanta, Romania
Contact:

Re: multiple postviews shown in magazine template

Post by drake » 23 Jul 2015, 18:32

The problem is not with the theme, it is a problem with your plugin. This is settled to show counts everywhere, including in excerpts. The featured slider is constructed by excerpts, so, the counts are listed again. Even more, the page itself is counted - you can see strange numbers on the top left of the page.

More than that, your homepage markup is broken, those strange numbers appear immediately after the <body> tag, accompanied by a lot of <style>, <link>, <meta> and <script> tags which need to stay in <head> section. These errors can come from a plugin or from your own edits in files.

Finally, all the numbers added by your plugin are simple text nodes, they aren't wrapped in any html tag. In this case they cannot be addressed by CSS because they aren't part of any CSS element, so they cannot by hided with "display:none;".

ahmetax
Posts: 26
Joined: 20 Apr 2013, 04:00

Re: multiple postviews shown in magazine template

Post by ahmetax » 24 Jul 2015, 10:19

Hello drake,
Thank you for your detailed answer.
It looks like there is no easy solution for the problem.
Maybe I can try to hack the plugin when I had enough time.
Thanks.
Ahmet

Colin
Posts: 5066
Joined: 27 Oct 2009, 10:46

Re: multiple postviews shown in magazine template

Post by Colin » 24 Jul 2015, 11:56

There are a lot more plugins that show the number of post views. It may be worth trying one of those.

See https://wordpress.org/plugins/search.php?q=post+views

Locked