• Today I noticed that names of comment authors are displayed with enclosing HTML tags. I analyzed site source text in browser and detected that HTML tag is converted to HTML syntax (see source code before div end tag):

    <cite class="fn">Gerhard Vavra</cite>
    </div>

    I am not sure when this behavior arrived. Last update for this theme occured on Feb, 1th, 2019 – Version 3.0.1.

    Is it possible that this theme is not 100% compatible with WordPress 5? My WP Version is the latest – 5.4.1.

    Or is there a setting I can set to prevent this behavior?

    Please help.
    Kind regards
    Christine Gerstenmayer

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

Viewing 12 replies - 1 through 12 (of 12 total)
  • Theme Author Rigorous Themes

    (@wpgaint)

    Hi Christine,

    We need to verify the issue. It would be great if you can share the admin details with me.

    Thanks
    Divya

    Thread Starter chriger

    (@chriger)

    Hi Divya,

    since I am not the owner (only the webmaster) of this website, I must not share admin details with you.
    Why do you need access to the backend?

    Tell me, which screenshots you need and I will provide them to you.

    Kind regards
    Christine

    Theme Author Rigorous Themes

    (@wpgaint)

    Hi,

    Can you share the Url of site.

    Thanks
    Divya

    Thread Starter chriger

    (@chriger)

    Hi,

    I already did this in the beginning of this thread.
    See here once more:
    https://www.lobaumuseum.wien/cms/fluglaermpause/#comment-399

    Kind regards
    Christine

    • This reply was modified 4 years, 6 months ago by chriger.
    Theme Author Rigorous Themes

    (@wpgaint)

    Hi,

    There is issue with the html. Author name is not visible because html is this

    <p class=”fn”>Robert Poth</p>

    Please replace with <p class=”fn”>Author name</p> this. Then it works

    Thread Starter chriger

    (@chriger)

    Hi,

    hm, since theme code is generating HTML code, how can I replace this?

    And my problem is not “<p class=”fn”>….</p> but <cite class=”fn”>…</cite>”.

    <cite class="fn">Gerhard Vavra</cite> </div>”

    See this:
    “<cite class="fn">Gerhard Vavra</cite>”

    HTML-Tags are converted so that they are displayed in plain text. Seems that there is processed a PHP htmlify where it should not be done.

    Kind regards
    Christine

    • This reply was modified 4 years, 6 months ago by chriger.
    • This reply was modified 4 years, 6 months ago by chriger.
    Thread Starter chriger

    (@chriger)

    Damned, how can I post HTML code in plain text here in this message?

    Thread Starter chriger

    (@chriger)

    <img alt='' src='https://secure.gravatar.com/avatar/482c2464ed881a5ddcdcbdb449bff271?s=117&d=mm&r=g' srcset='https://secure.gravatar.com/avatar/482c2464ed881a5ddcdcbdb449bff271?s=234&d=mm&r=g 2x' class='avatar avatar-117 photo' height='117' width='117' /> <cite class=&quot;fn&quot;>Gerhard Vavra</cite> </div>

    Theme Author Rigorous Themes

    (@wpgaint)

    Find this file in theme editor.

    File: wp-includes/comment-template.php

    Thread Starter chriger

    (@chriger)

    Ok, if I change code in this function, it will be lost with the next update of this theme. Will it be necessary to do this each time you provide an update?

    Thread Starter chriger

    (@chriger)

    I did not find this file in theme editor, but in file system, it is a wordpress file.
    Which part of it do you need (it is a little bit too large to post it here)

    • This reply was modified 4 years, 6 months ago by chriger.
    Theme Author Rigorous Themes

    (@wpgaint)

    Hi,

    Uses the WordPress database object to query for the comments. The comments are passed through the Array filter hook with the list of comments and the post ID respectively. The $file path is passed through a filter hook called Array, which includes the TEMPLATEPATH and $file combined. Tries the $filtered path first and if it fails it will require the default comment template from the default theme. If either does not exist, then the WordPress process will be halted. It is advised for that reason, that the default theme is not deleted. Will not try to get the comments if the post has none.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Comment author is displayed with HTML-Tags’ is closed to new replies.