WordPress.org

Ready to get started?Download WordPress

Forums

Adding a line of code to existing articles... (4 posts)

  1. Rosie-L
    Member
    Posted 4 years ago #

    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

  2. Rosie-L
    Member
    Posted 4 years ago #

    Bump me baby!

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

    TIA

    - Rosie

  3. Rosie-L
    Member
    Posted 4 years ago #

    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

  4. 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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.