• Hello,
    I’m trying to use a simple javascript file to allow users to switch the css file to see larger or smaller fonts.
    i tested the script in html and it works
    but when i try to apply it to the index php on a WP site it doesn’t work.
    i’ve poured over my work, and searched and searched here on wp_header, javascript, wp-blog-header, and the best result i found was only a discussion of using php includes to build alternate pages with various templates.
    so how do you insert a javascript tag into the index.php?
    can you?
    puzzled.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Is it a conflict in variable names ?
    (And I really would love to use this !!)

    dss,
    Have you declared the use of JavaScript with one of these babies:
    <script language="JavaScript" type="text/javascript">
    You can do it in the body or I *think* you can declare it up in the head of the index.php page too.

    Thread Starter dss

    (@dss)

    Fixed it!
    wooot!
    it was as you might expect… drum roll… author error!
    yay, my favorite!
    ok, so what i did wrong:
    i was silly and thought that the link to the alternate stylesheets would require “./” before css the file names… removing this, leaving only the name, et voila! it works.
    i’ll write it up correctly and return with a link.
    until then: enjoy changing seamlessly between .8em and 10pt type (at 105%) here
    pleased.

    That is just what I’ve been after – Thank You !!

    Thread Starter dss

    (@dss)

    here is my write up:
    link to mine
    hope it’s useful.

    Thanks ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘WP and Javascript?’ is closed to new replies.