Q2A Market - Support

We are here to provide you support for Q2A Market premium and free products. If you have any issue in installation, option settings or any bug you found. Please create a ticket. We would try to get back to you as soon as possible.

Generates 2 html codes for “question’s visit counts”.

In the recent 1.1.4 update a problem with styling visit counts in question pages was fixed, but there is another thing that needs to be corrected.

The theme generates 2 html codes for “question’s visit counts”. So for related questions I have 2 numbers telling visits instead of one.

opened on Sep 23 in Elegant Responsive

That is because when you add Related Questions widget it shows view count for that too. I have checked and nowhere I found two HTML code for the main Question.

Please post either HTML or some screenshot for more visual reference.

The circle at the top right was fixed in the latest upgrade and now the visit count shows twice in the related questions.

So the theme in some way its adding it. Please see the image.

1 Answer

 
Best answer

This issue you are having that has been fixed with version 1.14 itself. Please have a look this demo site.

There may be some cache issue or something else.. Please cross check once with cache and any custom modification if you have done.

Modified CSS qa-styles.css
Check below code around line #880

.qa-template-question .qa-q-view-main .qa-view-count{
    background: #eee;
    position:absolute;
    right:0;
    top:0;
    float:none;
    margin:0;
    padding:0 0 2px;
    width:auto;
    height:auto;
    color:#777;
    border:none;
    width: 20px;
    height: 20px;
    display: block;
    border-radius: 20px;
    border:1px solid #ccc;
}
.qa-template-question .qa-q-view-main .qa-view-count-data{
    font-size:11px;
    line-height:18px;
    margin-top:1px;
    display:inline;
    color: #666;
}
.qa-template-question .qa-q-view-main .qa-view-count-pad{
    font-size:8px;
    line-height:8px;
    letter-spacing:1px;
    display: none;
}
.qa-widget-main .qa-q-item-main .qa-view-count{
    display: none;
}
answered Sep 24
selected Sep 26

I dont understand, can you be more specific ?

What I mean is the code you have posted as a fixed that is already there in the theme. So just wonder how your theme missed that code.

About "visit count" problem I mentioned that you need to "search and remove these code". when this code is not in your theme class('qa-themes.php' in your theme directory) it will be called from Default Theme Class in "/qa-include/qa-theme-base.php" which does not have this problem.

Thats the answer I got from the person is helping me. So maybe for 1.1.5 this fix can be included and also de optimized images I sent :D

Since this feature has been added in 1.6 soI am pretty much sure that I have already added conditional code in theme file. I have cross checked in all development files as well and it is there from the beginning.

While working on Snow Theme I already know this to add in all Q2A Market theme so I am still wonder why your theme didn't have that code. But anyway as far as your issue been resolve.

As I understand is the other way, the code should not be there because its called from Default Theme Class in "/qa-include/qa-theme-base.php". And the result is having 2 visit counts. One in the theme and one called.

Thats why that code should be removed from the theme.