Well this approach is not remotely close to the proper way to use WordPress, so there is just not going to be a correct way to do this. However the problem is that you’re linking directly to a file in the theme. This is incorrect. To create a page in WordPress you need to create a page under Pages and then link to that page’s permalink. If you need that page to use bar.html
then you need to create a page template for that page that includes bar.html
into it.
Related Posts:
- What is the link to my default “archive” page?
- How to properly insert a link to a template in WordPress?
- WordPress Schema.org Markup. What value does it add?
- Why write markup for index.php?
- Get link to a specific template file [closed]
- How are the HTML classes generated?
- How to create a WP theme that use BootStrap? [closed]
- Locating the HTML piece of code in wordpress
- Where is the general html template file?
- html blog template to wordpress template
- Bootstrap Dropdown menu is not working
- What is sr-only in Bootstrap 3?
- How does the data-toggle attribute work? (What’s its API?)
- How to add hamburger menu in bootstrap
- Bootstrap 4 images thumbnail classes
- Bootstrap Dropdown menu is not working
- Bootstrap Dropdown menu is not working
- Bootstrap dropdown not working
- How to use Class
in Java? - bootstrap navbar not working correctly
- bootstrap 3 navbar collapse button not working
- How to center content in a Bootstrap column?
- Bootstrap throws Uncaught Error: Bootstrap’s JavaScript requires jQuery
- How to give spacing between buttons using bootstrap
- Bootstrap carousel not sliding
- how to center form using bootstrap 4
- How can I override Bootstrap CSS styles?
- How to change the background-color of jumbrotron?
- vertical divider between two columns in bootstrap
- vertical-align with Bootstrap 3
- Table fixed header and scrollable body
- how to do a line break in Bootstrap 3.3.7
- How to increase height of textarea using bootstrap rows and columns
- Bootstrap Columns Not Working
- Set bootstrap modal body height by percentage
- Bootstrap 3 Glyphicons CDN
- How can I change the Bootstrap default font family using font from Google?
- How do I horizontally center a table in Bootstrap
- Set textarea width to 100% in bootstrap modal
- Creating Accordion Table with Bootstrap
- Closing Bootstrap modal onclick
- How to make Bootstrap Panel body with fixed height
- Change navbar text color Bootstrap
- Is it possible to combine a WordPress template (Semplice) and some HTML & CSS pages?
- Get name of the current template file
- How do you find out which template page is serving the current page?
- How to change the default registration email ? (plugin and/or non-plugin)
- How do I get the size of an attachment file?
- Is there any way to use get_template_part() with folders?
- Adding Page Attributes Metabox and Page Templates to the Posts Edit Page?
- WordPress Admin Bar Overlapping Twitter Bootstrap Navigation [closed]
- How can i change email template for new user
- Any advantage to using get_header() over include(‘header.php’)?
- Enable page templates. How?
- Is it possible to override the result of get_template_part()?
- Use [embed] filter in template files
- What’s the purpose of the paged.php file?
- How do you access the Product Short Description in a WooCommerce email template? [closed]
- Prevent comments_template() to load comments.php
- Is there a way to list all used/unused WP templates?
- Page editor missing Templates drop down
- Print WordPress template filename(s) for debugging
- How to force TinyMCE in WordPress to replace newlines with tags and not with
- How to find the posts page (home page) programatically
- WooCommerce: Change template for single product page
- View WordPress page template usage (or unused)
- Why do templates contain so many PHP tag pairs?
- How to edit contents of dynamic_sidebar()?
- How to check if a shortcode exists?
- Where is get_header(‘shop’) file in Woocommerce templates
- Custom templates folder
- How to get slug of current category in taxonomy template?
- How to show a under construction page for a domain but still be able to work on index.php?
- Change the name of the ‘Default Template’
- Customizing get_the_excerpt() to specific length and “Read More” output.
- How to customize the default HTML for WordPress Attachments
- How to Rename a Template File?
- get page templates
- Echoing Elementor page content in template, but it doesn’t get styles and some widgets are missing
- Using WordPress templating for HTML emails
- Loading partial templates with AJAX/PJAX
- WP frontend output of custom textarea fields not respecting line breaks. In admin it’s OK
- How do you check if a WordPress template file exist?
- Load entire NextGEN gallery from single thumbnail?
- I put my blog on a subpage, how do I get page title?
- What exactly does “Posts page” do in WordPress?
- A special single page templates for posts under a category and all its child category
- Custom reset password template after forgot password request
- Outputting Canonical Resource URLs Across a Multisite Network?
- Gravity Forms Custom Templates [closed]
- Child Theme: how to override variables?
- How do I get the URL of a specific size featured image?
- Where to store some per-template preferences?
- add/apend templates ‘transparently’ via plugin to currently active theme or child theme?
- stop blog page from using index.php?
- How can I modify the default reset (lost) password email text?
- How to create tag.php
- Template files missing after moving site
- How do I override template-tags.php in twentyseventeen theme
- Get template part vs locate template function