The key to answer was found on SO; here is the solution for my case:
create a PHP file with the following:
<?php
define('WP_USE_THEMES', false);
require('path/to/your-wordpress-dir/wp-blog-header.php');
get_header();
?>
//Contents of the body of your XHTML page go here
<?php get_footer(); ?>
Now you have an external page in the format of your WordPress theme.
Related Posts:
- Retaining old HTML archives and displaying themes conditionally
- The style.css stylesheet doesn’t contain a valid theme header
- Change Default Image HTML
- Edit raw HTML of the landing page
- In which directory do I find a specific HTML code of my wordpress page? Some of it seems to be missing after checking all pages [closed]
- WordPress Fatal error: Call to undefined get_header() in index.php on line 15 [closed]
- What is the WordPress Pinecone sitting on top of? [closed]
- How do I apply my CSS to a theme page?
- Understanding Theme specific Code
- How to find out if page_for_posts is showing (in order to style menu item)
- Remove transparancy in Sydney theme’s headerimage
- Theme option not saved if in wp_editor() and html decoded
- How does WP generate html?
- How to deactivate the text, that appears, when you hovering over topbar tabs? [closed]
- Finding and disabling ‘rogue’ stylesheet from header: Source Sans Pro
- Need to edit themes HTML code
- Blank line before doctype
- Modifying the markup in the Tag Cloud widget?
- WP HTML Templates – Any way to get bloginfo() or the path to the theme folder?
- How to trace and resolve a theme problem such as flickering links in WordPress? [closed]
- Changing an image in header.php
- How to add some php code in header.php using plugin
- Moving the search bar to be in menu bar
- How to use only scripts from new theme?
- How to get ONLY the URL of the image that show_media_header returns?
- removing side space between para and container on generatepress?
- share wrordpress data between two shared hosts using REST API
- How do I get the featured image to sit below the header in the twenty nineteen theme?
- I want to remove part of a header
- Custom CSS is overwritten by WordPress?
- Sticky header for wordpress changes size and logo size as I scroll down
- TwentyFourteen Theme : Changing grid layout
- Meta title W3C Validation Error with
- How to disable primary main site header and logo in wordpress (Astra Theme) [closed]
- How to create an Single-Portfolio page?
- Help with responsive theme styling issue
- Remove ALL HTML from single page
- Opinions and recommendations on the best barebones base theme [closed]
- Different template of products for specific category. WooCommerce
- what the best way to include images from the template’s images folder?
- WordPress 5 / Gutenberg – theme doesn’t have featured image option showing up
- How to refresh WordPress Customizer panel upon entering a value
- Set Featured Image for Archive templates
- How do I change Twenty Nineteen’s primary color without using the color slider in the theme customizer?
- How to add the main style.css to my index.php?
- How to attach region identifier to a pretty url?
- Remove action within a class in a parent theme from the child theme
- How to get themes from wordpress.com per SVN? [closed]
- How to move WordPress theme files into a subfolder without breaking the theme?
- remove rel=next on home page but not others
- Disable Sidebar in the Product Page in Storefront Theme [closed]
- How do you create a custom WPTouch theme?
- Renaming the Twenty Fourteen WordPress theme
- Defining different theme for Blog posts page
- Working with an Array inside Your Theme Options Array – Multiple Values
- WordPress Theme for Video Showcase [closed]
- How to understand a specific bit of WordPress syntax
- How to unset comment_notes_before field in WordPress comment_form
- Widgets menu does not appear under “Appearance” in dashboard
- How to loop over wp_get_themes() and create an array of themes name
- Combining wordpress themes
- Switching to a child theme
- Restrict access to specific widget field based on user role
- Twenty Twelve theme search returns Nothing Found
- WooThemes PremiumNews Theme jQuery Conflict with WordPress 3.2
- after_setup_theme is called three times
- Change copyright text on the footer section [closed]
- WordPress front page empty, however, there is content on website
- Theming Using Bootstrap Glyphicons and WordPress Dashicons
- How to reset a custom theme
- Warning : Invalid argument supplied for foreach() in theme php on line 56 [closed]
- Cannot changing login button color, have tried theme, plugins… is it GoDaddy managed?
- Responsive issue with secondary logo – not sticking in position [closed]
- How To Show Different Footers For Different Post Types Pages?
- Uploading new version of theme fails, folder already exists
- Date based CSS/theme
- my blog crashes ie7?
- Setting Multiple Post Containers Across Homepage And Costumize Them
- Flexslider in child theme
- How to edit the default comment title?
- How to change the width of certain paragraph or header blocks?
- Theme CSS missing completely
- wordpress theme link url
- Work on theme files on a server & browser preview before installing it
- Route to custom file
- “Template is missing” install error on non-child theme
- Theme customizer live preview JS- Trying to bind to an html image url without luck
- wordpress template page Usage [duplicate]
- No “available widgets” (wordpress 3.2.1 multisite)
- How to create a second index.php?
- How to make a website like the ones in theme demos? [closed]
- how to use Easy Docs theme to write a book?
- How can I add a google play badge to my header and footer?
- Divi theme including javascript
- 2 WP websites same content different themes
- How is WordPress child related to Buddypress child theme
- Remove Google Fonts from parent theme within a child theme [closed]
- Define a Custom Template Part As A Widget Area
- Changing Sidebar In 2023 Theme
- Fatal error Class-wp-hook, again, but not sure what’s triggering it