• Hello,

    I have a problem with the texte in feature page function. When I have some HTML code (hyper link per example), the code appear than a text.

    Sample, in a WebPage, the start of the page is a hyperlink :

    <a title="XXXXXX" href="https://www.XXXXXX.fr/" target="_blank">XXXXX website</a>

    and in the feature page, they don’t show me the text with a link but the HTML Code.

    A solution for that ?

    Thanks for your help !

Viewing 5 replies - 1 through 5 (of 5 total)
  • This seems to be a bug. Several people have raised it. For now, the workaround is to paste clean text into the “Front page” panel of “Customiz’it!”

    ElectricFeet, what do you mean “clean text”? Just not use HTML? Does anyone have a way to force a newline?

    Thread Starter Farocs01

    (@farocs01)

    Ok so, no html code with feature functions ??

    For information, when you past a html text into the “Front page” panel, the HTML works in preview … but just for preview ??

    Thanks for your help ??

    I found a temporary solution. The function causing issues is esc_html()

    in $themeDirectory]/parts/class-content-featured_pages.php I changed the following line from:
    $featured_text = esc_html($__options['tc_featured_text_'.$area]);
    to:
    $featured_text = $__options['tc_featured_text_'.$area];

    Now I am just going to copy the file into my child theme and once a theme update is released see if the issue is fixed.

    Nice! Thanks for that—should help a few people.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘HTML Code in features page’ is closed to new replies.