• Resolved A2E

    (@a2e)


    Recently updated Hueman from 2.2.2 to 2.2.3 (full version from https://alxmedia.se)
    My footer copyright used to contain HTML data, which used to appear fine

    <a rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-sa/4.0/88x31.png" /></a><br />This work is licensed under a<br /><a rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International License</a>

    However, since the update it now appears as raw code.

    Any help would be greatly appreciated!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi A2E. In v2.2.3 the copyright in footer.php is sanitized using the esc_attr() function:

    <div id="copyright">
    	<?php if ( ot_get_option( 'copyright' ) ): ?>
    		<p><?php echo esc_attr( ot_get_option( 'copyright' ) ); ?></p>

    You could copy footer.php to a child theme and remove the esc_attr() function which should allow the html to be displayed:

    <!-- remove esc_attr() to allow script and html in copyright -->
    <p><?php echo ot_get_option( 'copyright' ); ?></p>

    Thanks bdbrown. Did the trick for me ??

    Thread Starter A2E

    (@a2e)

    Thanks! That worked great

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Footer Copyright & HTML’ is closed to new replies.