Need help in adding code

I have my html, css and Js. And I want to add it in WordPress. Like chatgpt said that e can add our own code, but now when I have made 2 pages she is confusing so much. I can’t figure out how to add code. Like usually we need to know php, but she said we can add without knowing php. Can you help me in this. Like where to add my code so that it shows.

Hi there,
It depends on where you want to add your code. Here are some simple and effective options:

  1. Page Builders (e.g., Elementor):
    Most page builders offer an HTML widget/block. Use it to insert your code anywhere on the page.
    Best for:
    Custom sections, landing pages, or widgets.
  2. Gutenberg (Block Editor):
    Use the built-in “Custom HTML” block. You can also explore plugins to enhance this functionality.
  3. CSS Only:
    Go to Appearance → Customize → Additional CSS to safely add your custom styles.
  4. Widgets Section:
    Navigate to Appearance → Widgets, then add an HTML widget in your desired sidebar or footer area.
  5. Plugins:
    Use a plugin like Simple Custom CSS and JS to manage both HTML and CSS easily without editing theme files.
  6. Static HTML via <iframe>:
    You can embed HTML pages using iframes, but this depends on your hosting settings. However, it’s not recommended.
1 Like

hey! I tried the Elementor method, thanks for that. But I’m also using JS. I installed the Header Footer plugin and added my code snippets, but nothing’s working. Any idea what I can do?