-
AuthorPosts
-
March 5th, 2014 at 23:56 #24225Charlotte
Hi there,
I need to add some html into the presentation column text. I read the following in the FAQs:“As far as modding the theme is concerned, you can edit the theme/admin/sanitize.php file and inside the [..]_options_validate() function you can remove the wp_kses_data() processing on every field you wish to remove the sanitation from (the field names are pretty much self explanatory).”
So, I went in and deleted ‘wp_kses_post’ and ‘wp_kses_data’ from the following lines of code:
$input[‘tempera_columnimg1’] = wp_kses_data($input[‘tempera_columnimg1’]);
$input[‘tempera_columntitle1’] = wp_kses_data($input[‘tempera_columntitle1’]);
$input[‘tempera_columntext1’] = wp_kses_post($input[‘tempera_columntext1’]);
$input[‘tempera_columnlink1’] = esc_url_raw($input[‘tempera_columnlink1’]);
$input[‘tempera_columnimg2’] = wp_kses_data($input[‘tempera_columnimg2’]);
$input[‘tempera_columntitle2’] = wp_kses_data($input[‘tempera_columntitle2’]);
$input[‘tempera_columntext2’] = wp_kses_post($input[‘tempera_columntext2’]);
$input[‘tempera_columnlink2’] = esc_url_raw($input[‘tempera_columnlink2’]);
$input[‘tempera_columnimg3’] = wp_kses_data($input[‘tempera_columnimg3’]);
$input[‘tempera_columntitle3’] = wp_kses_data($input[‘tempera_columntitle3’]);
$input[‘tempera_columntext3’] = wp_kses_post($input[‘tempera_columntext3’]);
$input[‘tempera_columnlink3’] = esc_url_raw($input[‘tempera_columnlink3’]);
$input[‘tempera_columnimg4’] = wp_kses_data($input[‘tempera_columnimg4’]);
$input[‘tempera_columntitle4’] = wp_kses_data($input[‘tempera_columntitle4’]);
$input[‘tempera_columntext4’] = wp_kses_post($input[‘tempera_columntext4’]);
$input[‘tempera_columnlink4’] = esc_url_raw($input[‘tempera_columnlink4’]);However, it is still not working. What am I doing wrong???
Thanks!March 15th, 2014 at 16:14 #24401KayCryout Creations mastermindHi Charlotte!
Just update to the latest version of the Tempera theme. Both HTML and shortcodes are now accepted in the Pressentation Page Columns.
Before posting consider reading our short theme debugging instructions.
Please read the FAQs: Mantra • Nirvana • Parabola • Tempera
Tutorials: custom menus • translating theme • installing theme • category page with intro • disabling comments Wordpress: child themes • categories/posts
Before making any modifications to your theme we strongly recommend using Child Themes. -
AuthorPosts
The topic ‘HTML in Presentation Columns (Tempera)’ is closed to new replies.