-
> character converted to & gt ; in Custom CSS Code fieldViewing 7 posts - 1 through 7 (of 7 total)
-
September 7, 2014 at 6:03 pm #1939
The Custom CSS Code field under Advanced settings does not accept > characters, which are essential in CSS. It automatically converts those characters to their html equivalent: & gt ;
September 8, 2014 at 8:51 am #1952Hey apprique,
You are correct the custom CSS panel doesn’t accept the > character. please let me know if you can’t find a way around that character and I will help.
Edit: Will update you with this bug fix soon
Regards
September 8, 2014 at 9:47 am #1957However, this issue also applies to the JavaScript field, and there it is not possible to work around!
September 8, 2014 at 4:38 pm #1959Hey apprique,
I have found the solution to this, added it to the update, but I already applied the fix on your installation:
On file /functions.php
I changed
<?php echo cr_get_option('custom_css','') ?>
<?php echo cr_get_option("google_code",''); ?>
<?php echo cr_get_option("custom_js",''); ?>
with
<?php echo htmlspecialchars_decode(cr_get_option('custom_css','')) ?>
;
<?php echo htmlspecialchars_decode(cr_get_option("google_code",'')); ?>
<?php echo htmlspecialchars_decode(cr_get_option("custom_js",'')); ?>on lines 1576 and 1584 – 1585
Also on file creiden-framework/inc/options-interface.php
Changed
$output .= '<textarea id="' . esc_attr($value['id']) . '" class="of-input" name="' . esc_attr($option_name . '[' . $value['id'] . ']') . '" rows="' . $rows . '">' . esc_textarea($val) . '</textarea>
With
$output .= '<textarea id="' . esc_attr($value['id']) . '" class="of-input" name="' . esc_attr($option_name . '[' . $value['id'] . ']') . '" rows="' . $rows . '">' . $val . '</textarea>
Sorry if this took some amount of time.
Cheers. -
The topic ‘> character converted to & gt ; in Custom CSS Code field’ is closed to new replies.