menu

arrow_back How do I insert html code with css and js into a page?

by
1 vote
Can you tell me if you can somehow add a page from your html code with css and js?

3 Comments

vladimir328 , put CSS in the styles file, JS in the file with the script. Most often these files are in some folder assets and are called style.css and app.js respectively.

And the html code wherever you want. And this applies not only to Wordpress sites. You also didn't specify where you are going to insert this piece of code. In the theme files, or maybe directly in the article editor?

For a less abstract answer, I need to see the file structure of your project, get the information where you will include the html code, see the content of the head tag of your theme.

If you don't want to figure it out, you can put this plugin https://ru.wordpress.org/plugins/custom-css-js/ . It will allow you to write CSS and JS code without interfering with the theme files.

But the html code must be added by hand.

Although for this case I recommend not to put anything, it is too simple a task.
Semyon Kuznetsov I want to insert html code on a wordpress page that uses css and js.Is there any way to insert this code to make it work properly
It doesn't make any sense. Re-phrase the question

1 Answer

by
1 vote