get_header() and get_footer() are WordPress functions, not native PHP. If the code snippet you’ve posted is the entire content of tos.php, you’re not loading WordPress at all, the functions don’t exist, and so tos.php is throwing a fatal error. It’s likely that your web host is configured to not display fatal errors, so you see an entirely blank page.
Further: Gutenberg is an editor, and shouldn’t affect the display of pages on the front end. If you’re trying to specify that a given post or page should use your tos.php template, you should have a look at the template_include filter.
Related Posts:
- How to add custom css file in theme?
- get_template_part vs action hooks in themes
- CSS classes for theme
- How to remove search bar from a wordpress theme? [closed]
- Get url of thumbnail from the media uploader
- My child theme doesn’t work Error: “The parent theme is missing. Please install your parent theme”
- Should I use set_transient or update_option?
- Theme file for all pages that are a child of a specific page
- Template for individual post designs
- Best practice way to implement custom sections into a WordPress theme
- How to show next Post Thumbnail image in WordPress using current post id
- Pushing updates to your premium theme
- Where can I find a good reviewed collection of Twenty Ten child themes?
- Front End Post Submit Form
- How do I remove RSS feeds from themes?
- CSS in child theme not overriding the parent theme [closed]
- First post of each category
- Advantages of using instead of wp_enqueue_style()?
- Style.css redirects to 404 Page not found
- Displaying wp menus by name without using theme locations
- How to add dynamic inline style?
- Optimal solution to develop a wordpress theme?
- How to add suggest plugin to theme?
- Create a theme by combining a parent and a child theme
- Prevent update check for specific theme
- How to add oEmbed support to my theme?
- Do I really need the div class entry?
- How Can I Create a List of Values to Be Iterated Through via WordPress Customization API?
- Am I supposed to create a child theme for every theme I use?
- If I build a custom theme, will it update?
- using wordpress without javascript
- Recommended tools for Theme Development with SASS [closed]
- What tags should be used for themes to show the type of layout?
- Theme Check: Could not find post_class
- What are non-printable characters doing in my theme?
- Why wp_head() function not loading style.css?
- Override theme programmatically
- Set multiple templates per post
- How can I let templates choose which stylesheets are enqueued?
- WP 3.1 upgrade breaks AutoFocus+ theme
- How can I display/hide certain content based on a Theme Option field?
- create-guten-block in wordpress theme?
- How can I make that when I clic on one of the menu items, that page shows only posts with the same category?
- Lightweight framework [closed]
- Theme Splash Image within the “Appearance -> Themes” control panel [duplicate]
- Theme Loading Into Dashboard
- How to make theme elements customizable in wordpress?
- How to add “Template” option in page attributes panel?
- How to edit my theme for full width?
- Which html elements should be styled in wordpress theme
- Folder name for a pro version of a WordPress.org theme?
- Echo all category names, apart from one
- correct tags for validating input types
- Renaming a theme so it aids SEO and the theme used is hidden
- WordPress 3.8 Backend Admin Color Scheme add more scheme how to do?
- Theme thumbnail in dashboard
- How to change the theme directory uri for localhost?
- Will my site get messed up when the wordpress theme updates if I edited the html code in the editor to change footer?
- How to correctly enqueue the parent and child theme stylesheets in the creation of a child theme? [duplicate]
- featured content: which area does this cover [closed]
- Which cache is kicking
- searchform.php doesn’t work properly
- Customizer: get_preview_url() inside customize_save_after hook
- Shortcodes do not work in own template
- Adding Bootstrap to WordPress TwentySixteen Theme
- Is there a way to switch to another theme?
- New to WordPress – Read the Codex, Other Docs; Still Confused
- When trying to set title, not sure how to edit it for different pages
- Post archives link yields a 404 Not Found
- Get video from the post on homepage
- static front page ONLY for certain themes?
- How to add cropped custom header image?
- WordPress Themes Directory: Template which hits the standards?
- How to change a local wordpress installation xml export file urls? and change them to what if you don’t have a live website?
- Any way to change/add to the theme name dynamically?
- how to create/register menu items that can be added to menus later
- Why nav_menu_css_class doesn’t work with apply_filters?
- WordPress and Semantic UI
- Theme does not allow shortcodes
- Text widget is placing everything side by side. I want to post it above
- What is an alternative to not using child theme to customize a WordPress theme?
- Menu names not getting translated
- How to generate a rtl.css file for themes?
- Get property of non-object on theme activation
- change wordpress website logo url [duplicate]
- wp_editor some functionality not working on custom theme
- Update modified Shopify third-party theme [closed]
- hide/show a div in wordpress
- Providing updates to your WordPress theme
- One-Page WordPress Template
- How one category can have different fields?
- How do child themes work?
- Fail to install theme on development copy of WordPress on Webmatrix
- How to prevent XSS attack in wordpress theme?
- Featured Image Module Randomly Disappears
- adding navigation to genesis themes
- Show post thumbnail only if it exists using timthumb
- Getting all months in one year WordPress Archive
- What is the point of using the front-page.php template? [closed]
- Is child-theme required when modyfing “Appearence > Editor”?