First you need site to be processed as PHP, since WP simply won’t work otherwise. I think you can do it for non-.php extensions by tinkering with server config.
THen see Integrating WordPress with Your Website in Codex. You can load WP core to required degree and use the functions.
However I’d consider just migrating site to WP completely.
Related Posts:
- The proper way to include/require PHP files in WordPress
- Should we use get_template_part() in functions files instead of include_once?
- Why doesn’t default WordPress page view use force_balance_tags?
- Hide a div that is part of all pages on one specific page
- What is the right way to include a wp-admin file in your theme?
- Can’t get staging site to display same way as live site. Completely stumped
- Snippet: Use classes instead of inline styles for text alignment
- How to set dimensions of the post thumbnails (featured images)
- Where is definied the theme location for the main menu in a WordPress template?
- How to prepare the HTML for WordPress [closed]
- Should I use include or load_template for including shortcodes, plugins and so on?
- How can I wrap html around the output of the_time function?
- What’s stopping my HTML from rendering in my template parts?
- Is there any tool to find lines of codes responsible to generate front-end HTML elements?
- I used single quote to design HTML of my WordPress blog. Now site redirects to index.php everytime than page.php or single.php
- Theming Using Bootstrap Glyphicons and WordPress Dashicons
- Random white space before doctype
- How to safely return the HTML?
- Converting a static HTML template into a WP theme – How do I specify page content?
- multiple html/css files for wordpress theme?
- Why I obtain different visualization when I run the website on my local machine and on remote server?
- Some doubts about WordPress handle the horizontal main menu visualization
- How to create a WP theme that use BootStrap? [closed]
- my single.php is mixup on some post for no reason
- Does wordpress add their own classes into nav menus?
- Social-Link block not loading html on page with custom theme
- Twentytwenty theme p-tags break em- and strong-tags that span several paragraphs
- How do I change the color of individual page titles in WordPress?
- How can I include custom Gutenberg Blocks in a theme?
- Whether an tag is required in header?
- Why .widget-area is outside of .site-content in Underscores starter theme?
- Using require_once for parent-directory not working but is working in sub-directories
- Incorrect search results in search.php – issue triggered by using `define(‘BodyID’, ‘search’); the_post();` in search.php
- Why the slideshow is not shown in my theme?
- Theme customizer live preview JS- Trying to bind to an html image url without luck
- Standard Way To Do Custom Work Within A Page?
- Want to include ad code after related post
- How can I get rid of the distance when I’m using list-style-type: none? [closed]
- HTML to WORDPRESS [closed]
- Which function(s) to build a paged HTML table
- Is there a way to prevent wp_head from outputting self-closing tags?
- Dynamic nav menu with icons [closed]
- WordPress Includes mejs 404 error
- What is the difference between wp_register_sidebar_widget and register_widget?
- Form Submitting Error with get_template_part()
- Get 10 posts from a WP_Query. If less than 10, get the remainder from elsewhere
- How Do I Programmatically Force Custom Permalinks with My Theme?
- Best practice (forward compatibility) for theme options
- How to use Plupload in themes
- what’s meaning of it when submit a theme?
- Returning Variables back into a template
- How to handle thumbnails
- How to add custom template tag in wordpress theme?
- Doubled titles when using All in One SEO with custom template
- In theme development, are there functions which write HTML in a standard fashion to reduce “spaghetti code”?
- Checking if there is an Image inserted – if not don’t display anything
- Retrieve data using wpdb to use for customizer controls
- Modify the Additional CSS section (adding a disclaimer)
- Creating directory and file using native wordpress file system
- Don’t understand why theming is so strange and twisted [closed]
- I want edit_post_link() to open in a new window/tab (target=”_blank”)
- How to store functions in… functions.php?
- Simple way to get two language WP site
- get_page_template returning nothing
- How can i initialize a widgetized sidebar (with widgets)
- How do you force a sidebar widget to have a container div around all child widgets?
- Add widgets to available widgets section without changing the theme?
- jQuery not available to other scripts
- Override template file i subfolders
- Does the switch_theme action run when you’re upgrading a theme?
- How to obtain the html stripped version of $category->description?
- How to make animated intro?
- StoreFront product pages: Turn the Short Description section into a kindred tab section [closed]
- How to jump to newly posted comment anchor after submit?
- Change WordPress header color using customizer
- Default Text not showing from customizer
- Images not showing after path specified in header.php
- Template for landing pages
- How to show a manageable list of images on a post?
- Remove link on full-size images
- How to reset post data properly
- Theme options save routine clashes with plugin save
- get_search_query() not working with search queries with ampersand in it
- If user is logged in and has a role echo statement
- Fixed button and slideshow in template upload per page
- Non-standard (new) theme file
- Best Practice for Server Processing
- WordPress Show Single Post on Home Page with previous/ Next Button
- Is there any way to store single.php wordpress file into a php variable
- How to change listing type permlink?
- Group several custom global page templates in sub-folder
- Get chronological page order
- Query wp_postmeta into an array based on post_id
- Theme not uploading showing maximum upload size on live site
- How do I get my theme scripts to load in a custom theme built from Bootstrap
- Problem with multiple menus in theme
- How to convert that page to a wordpress template? [closed]
- Saving Permalinks Results in 403 MAMP (Windows)
- Add rel to all images in a post
- WordPress theme Modifications not showing up on live server