• If i want to keep a normal page on theme.. but have my own php code on the site where exactly do I add in my php/css/html?
    Is it possible use a them as normal.. but then where you create new page have a separate html/css code. or has it all to be php.
    On 1 page only I’d like to have html/css interactive part. Would it be correct in syaing i create a seperate page for this?

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    Where you put your code depends on what it’s doing. From your questions I’m guessing a custom page template would work for you. Generally for custom code you should create a child theme, but if all of your code resides on the custom template it’s sort of safe in your current theme’s folder. Keep a backup somewhere in case it disappears during a theme update.

    Since a PHP page template can contain a mix of PHP, HTML, and CSS you likely do not need any other files unless it helps you to stay organized. Once you have your template, just add a new page based on it. Request that page as normal and your code will run.

    Obviously that means this is all on a separate page, but there are other ways to add an interactive segment to your site, such as widgets, shortcodes, template overrides, or filters. A separate page is probably easiest though.

Viewing 1 replies (of 1 total)
  • The topic ‘Using html/css wishing the wordpress them..’ is closed to new replies.