HTML in Presentation Columns (Tempera)

  • Author
    Posts
  • #24225
    Charlotte

    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!

    #24401
    Kay
    Cryout Creations mastermind

    Hi 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: MantraNirvanaParabolaTempera
    Tutorials: custom menustranslating themeinstalling themecategory page with introdisabling comments Wordpress: child themescategories/posts
    Before making any modifications to your theme we strongly recommend using Child Themes.
Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘HTML in Presentation Columns (Tempera)’ is closed to new replies.