The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

Using Javascript in WordPress

  • # March 2, 2012 at 9:39 am

    I would like to be able to use javascript in a WordPress Page, without a plug-in.
    I need to function to look like this. Is this possible within a WordPress Page?


    Is there a plug-in EXACTLY like this one?


    # March 2, 2012 at 10:10 am

    This reply has been reported for inappropriate content.

    Hey Kloy,
    Not entirely sure what you mean by a JavaScript plugin, you don’t really need one for that

    As for image sliders, here’s a whole bunch of wordpress ones


    # March 2, 2012 at 10:52 am

    i meant i want to be able to use the function from that page using the straight javascript WITHOUT the use of a plug in. Is that possible?

    # March 2, 2012 at 11:47 am

    This reply has been reported for inappropriate content.

    Yeah sure, go into your themes folder and modify the template to include your own JS
    Not sure what file to look for as I think it will change based on the theme you use which is why plugins work best, have a look through the source and look for the file that outputs the section of page you’d like to include your script

    # March 2, 2012 at 5:01 pm

    I guess that means going into the functions.php file…right?
    I’m still learning how to do that with screwing everything up.

    I’ve added the jQuery link at the bottom of the footer and have the .js file.
    Is there a way to point to the .js file without going into the functions.php file.

    # March 2, 2012 at 5:18 pm

    I think you’re a little confused here, kloy.

    If you want to do this for one page and one page only, just create a new page template.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed