• Resolved sokol8

    (@sokol8)


    Hi,
    I have a widget in a sidebar. I’ve recently came accros a problem, that some of the comments appears to be clickable (with ling to the actual comment) and some not. I have found out, that the problem of missing link can be with the comments from users, which has a website in their user information. I have also tried to deactivate all other plugins, but it seems not to solve the problem.

    Don’t you have any idea, what to do with that and have them all clickable?

    Thanks
    Jonatan

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hi Jonatan,

    It looks like each comment in the Better Recent Comments widget is being wrapped with an additional <a> link, which isn’t something plugin adds at this point. For example, the first comment looks like this:

    <div class="comment-wrap">
        <a href="https://.../#comment-298075"> <!-- this link is the problem! -->
           <span class="comment-author-link">Marek_</span>: &ldquo;
           <span class="comment-excerpt" style="word-break: break-word;">To je v po?ádku, ka?dy má jiné preference. Ale myslím, ?e i aerodynamicky ?isté auto m??e byt hezké, nap? EQS,&hellip;</span>&rdquo;
           <span class="comment-date"><a href="https://...#comment-298075">Zá? 1, 14:52</a></span>
        </a>
    </div>

    So because you have a link within a link – the ‘comment-date’ link inside the outer one, that causes the error you’re seeing, as it’s not valid HTML.

    Could you try disabling the other plugins on your site, or checking for any code which is interacting with Better Recent Comments?

Viewing 1 replies (of 1 total)
  • The topic ‘Some comments appears without link in widget’ is closed to new replies.