Classic theme: In your active theme, create a file like page-custom.php. Add a header comment: /* Template Name: Custom Page */. Then write your PHP markup, usually starting with get_header(), the Loop, and get_footer(). Upload the file to the theme folder. In WordPress admin, open a page, click Template in Page Attributes or the right sidebar, and choose “Custom Page,” then publish. Block theme: Go to Appearance → Editor → Templates → Add New Template, design it with blocks, and assign it to a page. For reusability, add custom fields, CSS classes, and test on mobile before making it live.
Share