0

By making our own .html, .css and .js pages, how can we upload them in WordPress directory correctly? And then, how can we insert, for example, our Elementor's header (which is being used in all website) into that pages?

1 Answer 1

0

WordPress is designed to use themes or plugins to output the final HTML, CSS, and JavaScript. You don't normally directly include an HTML file, because it won't have a way to connect to WordPress to do things like including an Elementor header or any content you can edit in the Editor.

Instead, for this type of thing, you will probably want to either create a child theme or create a plugin. Either way you can set up a PHP template that will use the HTML you want to use and allow you to pull in Editor content as well as Elementor header etc. Then you can create a page (or post, or a custom post type) in wp-admin and apply your template.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.