• Resolved pandaura

    (@pandaura)


    Is there any way to hide the Javascript code in the excerpt without manually adding a post excerpt?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    It depends on how that javascript is being added to the content. If you are using a plugin then for excerpts the plugin removed from the_excerpt via a filter.

    Is that from a plugin and if so which one?

    Thread Starter pandaura

    (@pandaura)

    Hi Jan!

    Thank you for the reply and pointing out how the script is added. It is certainly not from a plugin. The script is at the top of the post and the excerpt field is empty. I rechecked the script and added the code below; it solved my problem.

    <script>
    //<![CDATA[
        ...code...
    //]]>
    </script>

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Hide Javascript code in excerpt’ is closed to new replies.