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
- Trouble with formatting buttons in WordPress:Twenty Twenty-Four [closed]
- Customizing a WordPress theme without changing it?
- Installation failed: Download failed. No working transports found
- No “Add New” Button. How to add new theme?
- How to display date such “x ago”
- Css of both themes of my child theme isn’t showing up!
- FTP Username and password wrong while installing theme
- How do I change the fonts in the Twenty Thirteen theme?
- Can I obtain differents links for different installed theme?
- Will activating a different theme preserve custom settings to current theme?
- Question about the way that wp_register_script works
- Specific theme for non logged in users
- How to change the contact info at the bottom of my theme [closed]
- Customize “Continue Reading” text [closed]
- How does a Child Theme works?
- WordPress not displaying themes in the wp-content/themes folder
- How to create child theme of already active and customized theme
- Finding wordpress file in theme editor using the theme name
- Private theme update with zip archive without deactivating the theme
- Where in PHP do I move title and meta (date) to bottom of each blog section?
- How To Remove The “Delete” Theme Option In Dashboard
- How Do I Use A Custom Mobile Theme?
- Published site reverts without changes to theme
- What is calling this parallax-slider.less file that is missing? [closed]
- style.css not reflecting changes. I have no cache installed
- Unable to access wordpress login.php [closed]
- Permissions for installing themes and files in general?
- Twenty Seventeen search error
- Protect shortcodes, custom JS, and CSS from theme updates
- Recommended Media Size for Twenty Fourteen
- Free WordPress theme for an intranet tutorial site [closed]
- How do you remove a broken theme from WordPress Admin (without FTP or Cpanel)
- Switching Theme and back will reset the previous Theme’s settings?
- Using Grunt and keeping theme comments
- Why are so many popular responsive WordPress themes “boxed” at 940px? [closed]
- Pages and posts on ElegantTheme featured slider [closed]
- Blackberry mobile theme redirection
- Child theme breaks after update of master theme
- how to stop a gallery slideshow
- How can i set default pages to a word press theme? it shouldn’t be changed even if i install the theme in different host
- WordPress 2022 template, how to see the blocks added in post template on post edit?
- Two themes using a Multiple Themes plugin
- Broken theme, stylesheet is missing after uploading the right theme via FTP
- I cannot get an Advanced Custom Field code snippet to work – and ACF support say it should work
- WordPress thinks my custom theme is a theme in the public theme repository
- Warning: call_user_func() expects parameter 1 to be a valid callback
- Phone numbers showing same color as header [closed]
- Baskerville Theme – How to use the masonry grid layout on other pages
- Line break no working on theme
- QA/Staging envirnoment for wordpress sites
- Create /archive page in WordPress Theme
- Fatal error: Call to undefined function get_header() and BuddyPress [closed]
- How can I either move the nav bar down or create more space for the header? Theme – Ajaira
- To create a theme or use an existing one? [closed]
- Overwrite functions.php of a theme – What if the theme is updated?
- How to add/edit content Custom Content item in theme
- Is there a WordPress theme for twittstrap? [closed]
- My theme is not translated
- RTL in posts only [closed]
- Blocking Google Fonts in wordpress website
- css on body tag in editor
- Migrating a Bootstrap 3 Website to WordPress
- How do I remove the hamburger menu from the Twenty Twenty Four theme?