When you duplicated the template, I assume that you gave the template file a new file name, and placed it in the same directory as the source. And that you changed the “Template Name” in the duplicated file. And then made changes to the new template file to change the code on the button to point to the desired page.
And then you can edit the page and specify the new template for that page.
And that you did this on a Child Theme, because a theme update will overwrite any changes you made to theme files.
Ask the googles/bings/ducks about Child Themes (there are plugins that will create one for you), and also about Templates and how they work. Some programming skills are needed to understand how templates work.
Related Posts:
- Getting only direct child pages in WordPress with get_pages
- How to add a .php file to WordPress
- Check if a menu is empty?
- load/require specific php files for specific pages/templates/post types
- Exclude pages with certain template from wp_list_pages
- Loading page template into shortcode
- Help with a custom page template – listing contents of childpages?
- Easiest way to show total number of subpages
- Switching between custom templates in a post type of the admin menu
- page template for attachement page?
- Changing the template hierarchy
- How to enqueue CSS and JS only on specific template?
- Custom Template 404 for specific custom post type
- Showing content from one page on another
- how could I load a different template part by page
- Page Automatically Generated from Theme?
- How to hide all child pages with post_query?
- Can I install/embed WordPress on a ‘single page’?
- Can’t access variable outside for loop
- How to display pictures from database?
- Change title only in dynamic page
- Dynamic content in template
- Populate editor with some content of a page with a page template
- How to get the value of input hidden html from text editor to custom page template?
- Automatic Shortcode Creation with Custom Fields [closed]
- Does wordpress templates always in files or in database?
- Inject class in body when particular page template is used
- Adding wrapper elements in the_date() like in the_title()?
- Show meta box only for default page template
- WordPress template page name displayed on screen
- Display custom field on 404 page outside loop
- Display all pages – in order
- Editing a PHP file to include a small text piece on every page
- Short code template + ajax
- page-slug.php not working but only for specific slug
- get_page_template_slug returns incorrect path
- Dropdown menu for categories
- Posts are not looping through correctly
- Make a page (url) not cacheable [closed]
- Display additional page templates and a sidebar on plugin activation
- How do I add my PHP app to a WordPress page whilst keeping semantic URLs?
- Why wp_remote_get() fetches certain web pages while it doesn’t work for my localhost?
- Prevent header and footer from loading on specific pages with template or plugin
- Contain multiple page templates in one PHP custom template file in WordPress?
- WordPress add custom search
- How can I edit a php custom page template to work in other themes?
- Page template not working when logged out
- How to Change Site Elements based on referring URL
- How to add a full working piece of website already coded, to a large scale Website design project?
- Use wordpress for /blog section only and all other pages static, but using same footer.php and header.php
- remove_action() not working in page template – Genesis
- can’t grab PHP $_POST variable
- Pass form attributes to another php template in wordpress
- Code works on page-example.php by not category-example.php
- Calling PHP function doesn’t work in index.php
- Create page in templates for pages or the pages manager?
- Create a custom theme-specific page, invisible in the admin-panel?
- Execute php in pages
- Use page.php for front page
- Why isn’t my link attribute getting my css?
- Display pages from specific page template
- How can I put a custom field as the link of a button shortcode?
- Tables not showing divs and loop/php items
- Display custom meta box in my template file
- Loop on a wordpress Page instead of content coming from the WP text editor
- redirect user from login page if is logged
- Custom Post Type doesn’t have template content when creating programmatically in PHP but does when created in WP Admin
- Styling best practices for single pages/templates
- condition for specific pages
- WordPress post-template null warnings
- Correct and safe way to include php content in my page
- Revoke Access to certain user roles and admin pages
- update_post_meta on multi-dimensional array options
- How do I prepare strings for insertions as values into a MySQL table?
- How to present a div only when the index.php is accessed for/by the single post pages
- Displaying list of posts in category page
- How to get post category list as select in front-end?
- how can I include some custom variable from functions.php?
- Function to call either single post or category
- search and add in wordpress content
- Are there any drawbacks on opening a session_start in functions.php and header.php?
- Setting up a cron job to auto update a custom field
- Confuse between forms and tables
- How do I properly upgrade WordPress’s PHP within an OpenLiteSpeed GCP instance? [closed]
- Trying to retrieve meta values from three different meta keys and display in rows
- This occurs when I open admin or front on localhost
- Search only for posts with specific metadata?
- ACF background-color per post in a WordPress loop
- oembed facebook link?
- Trouble with checked() for array of multiple checkboxes
- Is it possible to dupplicate a WordPress post with php?
- How to create a radio button to alt between settings in wp_options table
- if user is admin display admin link and logout link else display logout only
- site_url() returns with additional backslashes
- How to redirect unattached image attachments
- Adding instant search to wordpress page
- Change order that the menu is generated with wp_list_pages
- Using variables as href in anchor tags (PHP) [closed]
- Parse error: syntax error, unexpected ‘else’ (T_ELSE) [closed]
- Code working in functions.php but not pluign for gavity forms