The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. Dominicc2003
    Posted 8 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>"


  2. galo
    Posted 8 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