• Resolved shirhix

    (@shirhix)


    Greetings,

    For our website we want to create a page where people visit a cyberspace. For this to work as efficiently as possible, that one page may only run the html code we need.

    But how can we stop the plugins and wp from writing on that page? We don’t need a theme there, no ads, no commerce, just raw html.
    Thank you in advance.

    (The page doesn’t exist yet)

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • hy @shirhix

    You can use the procedures below to make a page on your WordPress website that only uses the particular HTML code you require, excluding plugins, themes, advertisements, and functionality linked to online commerce:

    Creating a Custom Page Template is the first step; this template will be used only for this page. Duplicate the page.php file and rename it (for example, custom-page-template.php) in the theme’s folder.

    Eliminate Extraneous Code: Open the freshly built custom page template and eliminate all extraneous code pertaining to plugins, themes, advertisements, and commerce. For your basic HTML content, you can exclude any functions, hooks, or HTML components that you don’t require.

    Add Your HTML Code: Enter the HTML code you want right into the template for your specific page. If necessary, you can also add your own JavaScript or CSS.

    A new page can be created by selecting “Add New” under “Pages” in the WordPress admin panel. Give the page a title and choose the “Custom Page Template” from the “Page Attributes” section (often located on the right side of the page editor).

    Publish the Page: To make the page live on your website after adding your HTML code and choosing the unique page template, click the “Publish” button.

    You can create a particular page on your WordPress website that only uses the HTML code you added by following these instructions. By doing so, you can remove pointless plugins, themes, advertisements, and features connected to online commerce from that specific page.

    Thread Starter shirhix

    (@shirhix)

    Ah thank you. It worked very well. Allthough I did not find a way to choose a custom template, I renamed my php to page-[site id] and it worked automatically.

    Moderator bcworkz

    (@bcworkz)

    I’m glad you found a solution.

    FWIW, to be able to choose a custom template on the page editor screen, the template file must have a specific comment header. And not be named page-[page_id].php.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding a page with complete override’ is closed to new replies.