• Hello,

    I have some code that I want to use on a page, but I don’t know how to make it work on WordPress.

    I have HTML code, CSS code, and javascript code.

    I assume I put the CSS and javascript code in to a text editor, save them as .css and .js, and then upload them to the server.
    Am I correct that they can/would go in to the main theme directory folder?

    Then, what do I do with the HTML code?

    And, how can I call everything, from where do I call it and how can I make it work on only the 1 page I’m looking for it to work on?

    I have been searching around for answers on this, but still haven’t found a solution.

    I don’t know a whole lot about code so any and all information you’re able to assist with is very greatly appreciated.

    Thanks in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • See:

    https://codex.www.ads-software.com/Using_Javascript

    For HTML – it can go in your content or in a .php template file depending on what you are doing.

    CSS generally goes in an external CSS file – but again, the specifics depend on what you are doing.

    What theme are you using and what are you trying to add?

    Thread Starter HopefulGJL

    (@hopefulgjl)

    Thank-you for that link. I reviewed it, but I must admit that I don’t completely understand what it’s attempting to convey. I tried a couple different things from there, but am still not able to get it to work.

    And, since I’m looking to use this on only 1 page, I’m not sure why I would even attempt to put anything in to the head section of the site? Wouldn’t that make it so it’s all over the site rather than the 1 place I’m looking for it to be?

    In answer to your other questions, I’m using the Flexsqueeze theme and I’m looking add this. It’s picture slider code.
    The reason I’m looking to add that is because the plugins that I’ve browsed either don’t quite seem to have the look & feel of what I’m looking for, have really bad (written) reviews from others who tried them or aren’t tested to work with the latest version of WordPress.
    That all said, I do realize that code is based on an old version of a plugin that’s available, though the current version isn’t tested to work with the current version of WordPress…So I’m therefore hoping to somehow use the code that I’ve linked to as it, if I can get the code where it should be, should give me the look & feel of what I’m looking for…

    I have successfully manipulated quite a bit of code (with very gracious assistance) on my site up till now, though this is the first time I’ve attempted to incorporate so many different elements at once and I’ve not even attempted to adjust any type of script until now…

    Ideas/feedback/comments?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Integrate code into WordPress?’ is closed to new replies.