Two of the best ways to do this are (1) by using Create Block Theme plugin or a (2) Child theme. Why complicate it with a new plugin?
In the child theme, create a templates
folder, and in that, add a custom-template.html
file.
You can also add a new template by using the Plus + button on top to add a new template and export it as either a new theme or as a child theme using Create Block Theme
Related Posts:
- Difference between register_block_type & wp.blocks.registerBlockType
- Possible way of having multiple Gutenberg instances for a page?
- Block registration with viewScript
- Refresh server side rendered block in Gutenberg without changing attributes or its content
- Custom block based off core block using filter
- Uncaught Error: Call to undefined function wp_generate_attachment_metadata() @ wp-cron
- When unit testing a plugin, does the plugin need to be in the wp-content/plugins directory of the WordPress tests install?
- How can I prevent a plugin from updating unless it’s minimum PHP version is met?
- Using require_once in a Plugin?
- Stackoverflow type of badge plugin giving warnings in WordPress 3.5
- Plugin.php: PHP Notice: Undefined offset: 0 in
- Determining where fopen() is writing files when used from WordPress AJAX call [closed]
- How Restrict access to admin dashboard by specific static ip?
- How to get images from EDD post?
- Gutenberg List Extension Block
- Add multiple attributes to product from php
- How to install and activate a plugin via an external PHP script
- Sanitizing, Validating and Escaping in WordPress (Plugin)
- How to remove xmlns on language_attributes()?
- How to initialize something in unit test before the init hook being called?
- Add category to body class
- Plugin Development sqlite or WordPress’ database
- How to review WordPress website php version compatibility?
- WooCommerce get_price returning wrong price when used via ajax
- Open Post Thumbnail in New Child Theme File in WordPress
- Download any file after submitting a form [closed]
- Pulling data from custom plugin settings using PHP shortcode and Javascript
- woocommerce 3.2.1 not sending order notification emails
- WordPress on AWS with ELB
- How to access data in wordpress database externally using php
- Add a CSS class based on categroy id to archive pages
- Add button gutenberg help
- Access WordPress data from external PHP application.
- Problem with PHP wordpress, Undefined index: in C:\xampp\htdocs\wordpress\wp-content\plugins\epoch\classes\core.php on line 190 [closed]
- After upgrade to php 7 plugin/them updates broke [closed]
- WP Query. Is there a maximum size?
- WP Plugins – Use includes to display page content
- WordPress 4.8.1 php getting commented
- Finding the screen id of a page generated with add_menu_page
- Issue running db create table query from static method
- How to make multiple admin pages for one plugin?
- Use $variable from file1.php in file2.php (different file paths)
- Woocommerce Backend Search by Title and SKU
- Set Multiple Meta Values as an Array Using dispatch( ‘core/editor’ ).editPost() Call in Gutenberg/JS
- Control page content visibility based on URL parameter
- WooCommerce Shopping Cart Not Initially Showing Products [closed]
- Plugin not working & permalink erorr after upgrade to php 7x on Nginx
- How to include a custom field in the woocommerce email?
- How to translate wordpress error message
- Override a Plugin Function
- All custom widgets are not showing in widget area at the same time
- Add key and value to an array in another file
- Wierd site output [closed]
- Trying to make a simple wordpress plugin, having difficulties understanding how to make it?
- wordpress plugin license issue -New plugin development
- Create “new pages” within the admin section of plugin
- More gentle way to hook WordPress custom url
- How to Call Specific .PHP file on add_submenu_page selection in Plugin Development?
- How to properly replace the_content with the html in a php file?
- How to Add text value in Automatically in this conditions?
- Creating an array from form inputs before it is posted to the options database
- Plugin which unlock free gift when you reach some amount in cart
- Hide content for specific users with id
- adding dynamic/multiple slug values in ‘option_none_value’
- Problem with Date translation in WordPress
- How to assign a specific service to a specific provider based on location
- How can I create a secure file download in WordPress?
- 500 Internal server error wp_handle_upload_prefilter
- Can’t access 3rd party API, code works on local server but not on wordpress
- Ajax call to php function doesn’t work PHP code
- Compare Ajax Data Results
- How can I make the search bar in my wordpress site search all of the pages rather than just the blog posts?
- Nested DIV’s across functions in PHP, do not seem to work
- How to insert image into the Settings Page of a Plugin?
- Same Title on two different post type with single custom taxonomy
- Every time I use wp_get_current_user() my plugin breaks
- Paginated Comments “reply” does not work!
- resizes images on the fly
- get_option return incorrect values
- I created a custom form in HTML/CSS and now I need it to submit … should I create custom PHP or is there a plugin I can use?
- Saving plugin data returns “You do not have sufficient permissions to access this page.”
- How to add a handler for a button in plugin?
- private functions in plugins
- Load my plugin before cache
- wp_insert_post() get Fatal Error from Plugin
- Adminimize Plugin — Is there an alternative to limiting Editor to ‘Appearance > Widgets’ only?
- Is there a visual editor specifically for page snippets/sections?
- Visual Composer Data Source?
- Woocommerce disable checkout on specific day
- TML Theme My Login Plugin
- How to debug periodic performance issue
- Displaying Category Feature image on loop
- Sort posts by Date (DESC) and by ACF: active_inactive (ASC)
- How to fix Fatal error: Cannot redeclare get_cli_args() in class-wp-importer.php
- How to fix template and image buffering issues on website [closed]
- PHP FATAL ERROR
- Implementing onSplit/onMerge in dynamic Gutenberg Custom Blocks
- Best approach to change mobile background image and adding its class
- WordPress broken dashboard with ninja-shell text
- Why is my Gutenberg block not saving and rendering the chessboard?