Not signed in (Sign In)

Categories

Welcome, Guest

Want to take part in these discussions? Sign in if you have an account, or apply for one below

RecentTags

Vanilla 1.1.5a is a product of Lussumo. More Information: Documentation, Community Support.

This discussion has been inactive for longer than 90 days, and is thus closed.
    • CommentAuthorPGR
    • CommentTimeMay 14th 2008 edited
     permalink
    I have affiliate code that needs to be inserted in posts. The code includes both CSS (<style></style>) and JavaScript (<script></script>).

    How can I insert the code directly into a post and have it work? I've turned off the Visual Editor and tried adding <literal> tags around the code.

    I've put the code into an Inline Widget and inserted the widget into a post ... this works fine. However, for tracking purposes, I need to be able to vary certain parts of the code from post to post. So I need to add the code directly in a post, as opposed to created a huge number of Inline Widgets.

    Thanks for your help,
    Penelope
    • CommentAuthorPGR
    • CommentTimeMay 15th 2008
     permalink
    After a good bit of research, I've found solutions to these issues.

    CSS - I removed this from the post and added it to my custom.css file.

    JavaScript - Used the plugin at http://wordpress.org/extend/plugins/inline-javascript/. Works great.
    •  
      CommentAuthorMike_K
    • CommentTimeMay 17th 2008
     permalinkBuy a Drink
    It is possible to embed the javascript in Presentations->Scripts (pre 5.5) or Settings->Scripts (5.5)

This discussion has been inactive for longer than 90 days, and is thus closed.