• Resolved rsobczak

    (@rsobczak)


    Hello,

    I love your plug-in. However, I’ve encountered a problem. In disabling WPDiscuz and going back to native WordPress comments, the secondary title along with it’s html code is appearing in the comment section. The problem resolves when I turn off Secondary Title, but I like Secondary Title and would like to keep it.

    This is my secondary title field: [[ %title%<br><span style=”color:#585858;font-family:Courier;font-size:20px;”>%secondary_title%</span> ]]

    Can you think of a fix?

    Thank you,

    Bob

    • This topic was modified 2 years, 6 months ago by rsobczak.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author thaikolja

    (@thaikolja)

    Hi @rsobczak,

    Thanks for forwarding this issue to the appropriate forum.

    Since you’re using the GeneratePress theme, you should be able to use the generate_comments_title_output filter to strip out the Secondary Title formatting.

    Are your PHP skills enough for that or do you need any assistance?

    • This reply was modified 2 years, 6 months ago by thaikolja.
    Thread Starter rsobczak

    (@rsobczak)

    Thanks @thaikolja,

    I’m using version 6.0 of WordPress and the GeneratePress Theme.

    About your suggestions: (1) I turned off “Auto Show” to add manually, but it seems like I have to add a line of php? And do I have to add that every time the theme gets updated? (2) Not sure about the JavaScript approach, I’ve never worked with it.

    I was wondering if a third way would to be to add the Advanced Custom Fields Plugin, create a new field, and locate it using a hook or block element?

    Thanks for your insights I truly appreciate it and have loved your plugin,

    Bob

    Plugin Author thaikolja

    (@thaikolja)

    @rsobczak, I believe your answer was about my first comment which I later edited. Please check my comment again and see if that works.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Secondary Title is showing html code in WP comment area’ is closed to new replies.