WordPress.org

Ready to get started?Download WordPress

Forums

Javascript, How to Load in WordPress ? (2 posts)

  1. cuban_cigar
    Member
    Posted 5 years ago #

    A bit of javascript displays nicely in a php file

    However it does not work when in wordpress,

    Attempts Sofar:
    ---------------------------------------------------------------

    added include("/art.php") to the template wordpress files. index.php, category.php

    added the javascript directly to the templates.

    added the javascript to the "html" view of the wordpress gui

    added the include("/art.php") to the "html" view of the wordpress gui with the php-exec plugin which normally allows php from the "html" view

    tried all of the above making certain to insert the type and src into the head

    All didn't seem to display the javascript which seems to display all right when not integrated into wordpress.

    Here could be the same issue is a post from 4 months ago:
    http://wordpress.org/support/topic/217046

    Alternative: loading sidebar functions from non wp pages

  2. cuban_cigar
    Member
    Posted 5 years ago #

    the paths were wrong, working now

Topic Closed

This topic has been closed to new replies.

About this Topic