Support » Fixing WordPress » Adding a line of code to existing articles…

  • To render Google’s intrusive SideWiki ineffective I need to place a line of JavaScript immediately after the opening head tag in all my WordPress articles, both existing and future.

    I’m guessing the articles are stored in a database.

    Can anyone suggest how this might be done?

    TIA

    – Rosie

Viewing 3 replies - 1 through 3 (of 3 total)
  • Bump me baby!

    Surely someone must be able to shed some light on this?

    TIA

    – Rosie

    By the way, I don’t need the SideWiki-suppressing JavaScript, I’ve already got that.

    I just need to know how to globally insert it immediately after the opening head tag in all existing articles.

    In other words, how do I do a global search and replace in WordPress?

    TIA

    – Rosie

    Moderator Mark Ratledge

    (@songdogtech)

    Forum Moderator

    Easiest place to put it is in header.php in your theme; that way it will be available to all pages and posts, no matter what. No need to manually put it in posts or pages via the editor.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding a line of code to existing articles…’ is closed to new replies.