WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to make "<body onLoad="change_link()">" automatic (integrated) in template? (2 posts)

  1. Dominicc2003
    Member
    Posted 6 years ago #

    I'm using the template "MyJournal Hypereal" and I want to edit the template so that each page loads with the body tags being:
    <body onLoad="change_link()"> and </body>.
    but I can't figure where to put it!
    The files I can edit are:

    * Stylesheet
    * Main Index Template
    * 404 Template
    * Archives
    * Archives Page
    * attachment.php
    * author.php
    * Category Template
    * Comments
    * Footer
    * functions.php
    * Header
    * Links Page
    * Page Template
    * Search Results
    * Sidebar
    * Single Post
    * Sitemap

    Could someone hold my hand and help me? :D

    Also, I'm having trouble adding <script src="exit_bar.js"></script> to the header. I pasted it in to header.php and it doesn't load with the body as yet (the html source doesn't contain "<script src="exit_bar.js"></script>"

    Thanks,
    Dom

  2. galo
    Member
    Posted 5 years ago #

    "<script src="exit_bar.js"></script>" should come before the </head>

    Add "onLoad="change_link()">" after <Body>.

Topic Closed

This topic has been closed to new replies.

About this Topic