Front Page Options – Footer – custom HTML Coding Shown On Page
-
For those who have the same issue and need to know what to do
In the ISIS theme Options, Front Page Tab, in the “Footer” field box, when I installed the theme, I used custom HTML with my footer content. Before it worked fine, displayed correctly in live view of the site.
Now, likely due to the two updates, the theme displays the footer HTML code in the live view of the site.
Here is what happened.
In the footer field box, under the Front Page Options tab, I entered the HTML code (example)
<span class=”class-name”>Text here</span>
The page rendered live showed
<span class=”class-name”>Text here</span>
instead of just
Text Here
The problem was in the Footer.php file.
The the following code was used:
<?php echo esc_textarea ( of_get_option(‘footer_textarea’)); ?>
The “esc_textarea” was the problem, it escaped the HTML code to render the code like text on the site.
Fix:
Remove the “esc_textarea”, so the code will now show as:<?php echo of_get_option(‘footer_textarea’); ?>
Now the HTML code will not be seen and the browser will render the text properly as per the HTML Code and CSS class.
- The topic ‘Front Page Options – Footer – custom HTML Coding Shown On Page’ is closed to new replies.