WordPress.org

Ready to get started?Download WordPress

Forums

raindrops
Which header template for javascript file? (2 posts)

  1. tomwood
    Member
    Posted 1 year ago #

    I want to place some Flash SWFs in WordPress Pages. I see the following templates in the Editor:

    header-front.php
    header-html5.php
    Header
    (header.php)

    Since I'm lazy, I usually go find the </head> tag and put the link to the .js file just above it. But I don't know which of these files is serving the header to the WordPress Page template. And, header-front has the closing < /head> tag in TWO places.

    Where should I place the link to a .js Javascript file so that it loads with a WordPress Page?

    ` <script type="text/javascript" src="www.mysite/folder/swfobject.js"></script>
    <script type="text/javascript">
    swfobject.registerObject("myId", "9.0.115");
    </script>`

    Thanks!

  2. nobita
    Member
    Theme Author

    Posted 1 year ago #

    Hi tomwood

    Raindrops default setting header 'header-html5.php'

    Template page-templates/front-page.php use 'header-front.php'

    Raindrops support document type 'xhtml1.0' 'use header.php'

    Add script ,Most easy way is use custom field.

    1. create custom field key 'meta'
    2. value paste your script code.

    Please try custom field key name 'css', 'javascript'.

    Thank you.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.