WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: W3 Total Cache] Show js code as text (2 posts)

  1. jimaek
    Member
    Posted 4 years ago #

    I have this code in a widget

    <center>
    <form>
    <textarea cols="3" rows="3" onclick="javascript:select()" style="width: 160px;height: 55px; font-family: monospace; font-size: 12px;" wrap="on" readonly="yes">
    <script type="text/javascript" src="http://www.domain.com/widgets/widget.js"></script>
    </textarea>
    </form>
    Preview:
    </center>
    
    <script type="text/javascript" src="http://www.domain.com/widgets/widget.js"></script>

    But after installing W3TC the text area shows
    %MINIFYHTML57c1edd750ef0e79b2b6b4c47250a7917%

    How to fix this?

    http://wordpress.org/extend/plugins/w3-total-cache/

  2. Frederick Townes
    Member
    Posted 4 years ago #

    This issue still occurs with <script type="text/javascript" src="http://www.domain.com/widgets/widget.js"></script> omitted? Can you try URL encoding <script type="text/javascript" src="http://www.domain.com/widgets/widget.js"></script> instead in the text area? If not, you have to disable HTML minify or reduce your settings.

Topic Closed

This topic has been closed to new replies.

About this Topic