I used the following function to retrieve the URLs of each page.
function template_debug($filename = null) {
$url = home_url($_SERVER['REQUEST_URI']);
debug("Called from: $filename using URL $url \n");
}
Then I inspected the front page which triggered the 404 template along with the front-page template. The Network Monitor tab showed the error, which was an incorrect folder name included in the CSS file.
After making the necessary changes, the 404 template isn’t being triggered anymore.
Related Posts:
- Store Page Template Files in a Subfolder
- Creating page & post templates without template file
- The best way to create pages like an ‘about’, ‘contact’ and etc [closed]
- Static page won’t identify template
- Loading custom page template on a one page website
- Utilizing the template hierarchy while storing page templates in a subdirectory
- What is singular.php?
- How To Create A Paginated List Of All Categories On My Site?
- Password protected posts redirects
- Overriding page template using page_template filter
- Loading page content into a variable in template
- Capturing arbitrary semantic URL arguments
- How do I display the text inside the WP editor for a page with a custom template?
- Dynamically assign same page template to child page as parent
- What content should go in index.php?
- How to pass a numeric id to a page template?
- How can I dynamically load another page template to provide an alternate layout of the posts?
- page_template toggle between 2 templates + 2 permalinks for same post
- get url page template
- How to Set a Custom Template for Blog Posts
- How can I have a static title on my blog page?
- How to apply a custom template for posts by default?
- Use is_category(), is_tag(), … in functions.php
- How do I add a body class to specific pages?
- How to list all titles of posts on a specific page?
- How to handle a missing page.php?
- Customize edit.php Pages listing in dashboard to show only pages with a particular template applied?
- Programatically switch page template?
- remove page template from dropdown?
- Export csv and force download in template page
- WPML in custom page templates
- Why (and how?) is get_header() erasing all my stuff?
- get_pages — parent vs child_of?
- How to pass outside function to WP_REST_Request
- page.php not displaying content
- WP-CLI not setting page template with page_template=”template-name.php”
- Create a page template with No Footer
- Is there a way to set different post templates for parent posts and child posts in the same post type?
- Register/Get sidebar?
- How to make text show up – new page template
- using the loop with a custom table
- WordPress Pagination changes my template
- Verify if the current page has at least one published child
- How to use multiple archive templates for a taxonomy?
- how to remove all body classes in wordpress
- Selected template is not respected for home page in WordPress
- Custom Post Type Archive template page not found
- How can I conditionally show different home page templates based on whether or not the user is logged in?
- Add #sidebar-2 to a custom page template
- What is wrong with my page.php?
- wp_redirect goes to infinity loop
- Single page Template for pages that begin with ‘confirmation-‘
- What content to use for inserting images
- Display one post in different formats conditionally
- Single-page.php template file name not shown
- get_avatar() as backround image
- get_the_excerpt() inside WP_Query – link URL Incorrect
- inserting content of 1 Post to in another with a template hierarchy
- Change text size and color for tags and category meta description on product page
- Strip from the_tags() output
- How to make Dynamic Page Template based on Post ID’s
- add_rewrite_rule no longer working – possible https issue?
- Template Tag Does Not Work in Page Template
- How to display custom post type?
- Contact template doesnt appear in page template options
- Custom page template to sidebar/widget
- How to set custom cookies in WordPress after a form is filled on a page
- Proper way to create custom static page
- How to display all child/sub pages from all parent pages?
- RSS feed for a custom page template
- How to Override Page Template if URL matches query?
- Blog template with different header to rest of site
- Subpage is redirecting to spam site
- How to integrate custom HTML template in a premium wordpress theme?
- How to load page template according to the Searched Page
- Set page template automatically according to parent slug
- page_template filter without a plugin
- Add additional templates to the templates drop down on add page menu [duplicate]
- Custom Homepage As Single Page or Custom Post Type?
- Single page theme: Can I render other pages with their respective themes within another page?
- How to set title from page-template?
- create template for one page
- How do you create a default template?
- Cannot display default template after switching to custom
- Custom Page Template not working when site moved from subfolder
- change the Theme dynamically
- WordPress & External Page: 404 error in IE and some others
- How can I set full width page layout in a default post page?
- E-Commerce Products Page Sidebar Formatting
- Lead Generation with Cookies in WordPress
- trying to add custom landing page to Twenty Eleven- can’t get rid of Twenty Eleven header/container? [duplicate]
- Show tarifs page with menu a or b depending on menu of origin
- Fetching Image from other post/page with custom type
- How can I make different page templates for one category?
- wordpress header leaks into body in a specific template
- Display child page on parent
- Show page name in browser
- Animation as shown in the link
- WordPress Page Slug with URL custom template
- Can wordpress search inside a custom page template?