Fest/GavernWP Theme Options -Head/Foot converting to ASCII

Best WordPress theme for festivals or other events with responsive, clean and unique design.
GK User
Thu Oct 25, 2012 11:35 pm
The 'Add to head/Add to footer' sections of the FEST template is not accepting single quotation marks - it converts them to the ASCII character &039; - I have not tried this in other gavern WP templates, but it could also be an issue there due to the underlying framework.

If you know what to do, it's easy to replace all the single quotation marks with double quotes (swap ' for ") and then the JS works, but if you copy/paste a google analytics script etc etc then it will not work as these use a lot of the single quotes.

Please update the Theme / framework to make sure that all characters in these sections are passed on correctly rather than converted to ASCII.

thanks.

Aj
User avatar
Fresh Boarder

GK User
Fri Oct 26, 2012 9:47 am
Hi,

Please try to replace the following code:

Code: Select all
<?php
      echo stripslashes(
         htmlspecialchars_decode(
            str_replace( '&039;', "'", get_option($tpl->name . '_head_code', ''))
         )
      );
?>


in the layouts/header.php and:

Code: Select all
<?php
      echo stripslashes(
         htmlspecialchars_decode(
            str_replace( '&039;', "'", get_option($tpl->name . '_footer_code', ''))
         )
      );
?>


in the layouts/footer.php files. It should help.

Please also remember that you can use for problematic code fragments the gavernwp_head and gavernwp_footer hooks.
User avatar
Administrator


cron