"Enhanced Text Widget"

  • Author
    Posts
  • #41912

    Hi, I downloaded the “Enhanced Text Widget” to try and add some javascript coding onto my site. However, I am not all familiar with javascript and not sure what information goes in what field.

    The fields that exist within this widget are:
    -Title
    -URL
    -CSS Classes
    -Content

    This is the code I am trying to put in

    <script type=”text/javascript”><!–
    s6_user = “farmhousesoul”;
    s6_format = “125×125″;
    //–></script>
    <script type=”text/javascript” src=”https://society6.com/js/show_banner.js”&gt;
    </script>

    I have tried putting this code into the content field box, but nothing shows up in the widget after doing that & I even put the “src” link into the URL field and that too didn’t help.

    I am at a loss and hoping someone could kindly guide me in the right direction.

    Thank you
    -Jordan

    Website: farmhousesoul.com

    #41976
    Zed
    Cryout Creations mastermind

    This really depends on the plugin and how it filters/sanitizes those fields. My guess is that if the plugin uses the usual WordPress sanitization functions, the opening and closing <script> tags get filtered out, making the code non-functional.

    You can check if any of the code is outputted in the source of the site on the frontend.


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
    #41999

    I’m sorry, but this makes no sense to me. I did try and remove the both the opened and close tags, but to no avail did that do anything.

    #42163
    Zed
    Cryout Creations mastermind

    I said you could use the presence (or absence) of those tags to check how the plugin/WordPress sanitizes the fields and get an idea where the problem is.

    In-line scripts will not work without the opening and closing tags, so you not including them or the sanitization filtering them out ends in the same result.


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘"Enhanced Text Widget"’ is closed to new replies.