• Resolved didde90

    (@didde90)


    After the last two updates of Minamaze (1.1.0 and 1.1.1) I am no longer able to insert HTML into the feature areas. Before the updates, I would go to Theme Options>Homepage (Content) and insert HTML into the text box. Now, when I place HTML into the text box, the code is not read. Instead, when I view my live site, the code is available for all to see.

    Here is a link to my site to check it out. https://www.diddecenter.org

    The first featured area shows what it looks like when I type in HTML. The others do not have HTML. (and I miss HTML very much.)

    Any help would be great! Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • I found where to fix this, but it requires making changes to the core minamaze theme – no way to override in a child theme.

    You need to modify the file located at /wp-content/themes/minamaze/admin/main/options/02.homepage.php

    The code that is escaping the html (and therefore making it display) is a WordPress built-in function esc_html.

    To allow HTML in the message area, delete the esc_html from lines 337 & 348 where it is applied to: $thinkup_homepage_introactionteaser

    To Allow HTML in the Content Area Descriptions, delete the ec_html from lines 270, 286 & 302 where it is applied to: $thinkup_homepage_section1_desc, $thinkup_homepage_section2_desc, and $thinkup_homepage_section3_desc respectively.

    if you want to allow HTML in other areas of the homepage, remove the esc_html in other places in this file.

    Thread Starter didde90

    (@didde90)

    Thank you so much for your help! It worked!

    periodismetrespuntzero

    (@periodismetrespuntzero)

    Hello,

    Would this work to have html in the featured images? I’d like to have same link in ‘Read more’ button and in the image of featured area itself.

    Thanks and Kind Regards, Alexandra

    Thread Starter didde90

    (@didde90)

    Hi Alexandra,

    You may want to start a new thread for your question so people will see it. Unfortunately, the problem that I originally posted about on this thread (html in the featured area text) has changed since the latest update and the solution no longer works.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘After updates, feature areas don't accept HTML’ is closed to new replies.