• Resolved mwarbinek

    (@mwarbinek)


    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter mwarbinek

    (@mwarbinek)

    Now marked as resolved

    Thread Starter mwarbinek

    (@mwarbinek)

    Update:

    This is the syntax that was there in footer.php for the theme:

    <?php echo esc_textarea ( of_get_option('footer_textarea')); ?>
    <?php echo html_entity_decode ( of_get_option('footer_textarea')); ?>

    The theme author said on this website in the comments for this free theme to add the “html_entity_decode” line after “esc_textarea” coding in the footer.php file.

    That did not fix the problem.

    Then I said above, in an earlier posting to remove;

    esc_textarea

    from the PHP syntax leaving the rest of the syntax.

    That worked BUT it caused the theme to duplicate the text in the footer, so I would see two lines of the same text.

    To make sure its fixed and working properly, I had to do the following:

    Remove completely this entire line of code:

    <?php echo esc_textarea ( of_get_option('footer_textarea')); ?>

    Now its fixed, the HTML coding is escaped and will not show, the text shows properly with its HTML formatting and its not duplicated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Front Page Options – Footer – custom HTML Coding Shown On Page’ is closed to new replies.