Mio Shibuya
asked 8 years ago

HI, I tried to install your DW Jason theme and demo data.

It seems perfect, but when I try to change Welcome Headline from theme customization tab,
html tags such as , were encorded and broke top page display.


How can I set html tag into Welcome Headline?

3 Answers
answered 8 years ago

To resolve this issue you can open the customizer.php file then find around line 103 remove the following code:

'sanitize_callback' => 'esc_html',

Hope this helps!

Hendrik Spree
answered 6 years ago

I can’t find the code snippet you mentioned. (It should be in the “Welcome” section of customizer.php, right?) I’m using DW Jason Version: 1.0.4 and I just want to place a text link in the Welcome Message. (Font color in the Welcome Headline works fine.)

answered 6 years ago

To resolve this issue, you can open the template-tags.php file in the inc folder then find the line 38.
Replace it with the following code:

echo '<div class="page-description">' . wp_kses_post( dw_jason_get_theme_option( 'welcome_message' ) ) . '</div>';
Hendrik Spree
replied 6 years ago

That works. Thanks!

Dominic Staff
replied 6 years ago

If you have any issue or question, please let me know. We will check and help you resolve it.

Powered by DW Question & Answer Pro