How to add html to the Copyright Text

Steak House, food and drink theme, is now available on support forum.
GK User
Tue Nov 25, 2014 7:50 am
I've used different Gavick themes and this is the first one that doesn't let me insert html at the Copyright Text.

How can I do that with this theme... I actually found how to edit the text, but if I try to add html (eg. <a href"...> it shows only whatever is before the <a tag.

Thanks in advance
User avatar
Senior Boarder

GK User
Tue Nov 25, 2014 8:42 am
Hi,

In the new version of WP all customize options should be sanitized (because of security):
http://codex.wordpress.org/Function_Ref ... text_field

If you want to remove this limitation, please edit Steakhouse/theme-customizer.php file and change this fragment (around line 323):
Code: Select all
$wp_customize->add_setting(
         'steakhouse_copyright_text',
         array(
            'default'   => '&copy; 2014 GavickPro. All rights reserved.',
            'capability' => 'edit_theme_options',
            'sanitize_callback' => 'sanitize_text_field'
         )
      );

into:
Code: Select all
$wp_customize->add_setting(
         'steakhouse_copyright_text',
         array(
            'default'   => '&copy; 2014 GavickPro. All rights reserved.',
            'capability' => 'edit_theme_options'
         )
      );
User avatar
Moderator


cron