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.

https://www.dropbox.com/s/i2zsa87sm26wv8c/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202016-03-08%2015.17.06.png?dl=0

How can I set html tag into Welcome Headline?

3 Answers
DominicStaff
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

Hi.
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.)

DominicStaff
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