You don’t, what you’ve modified is a template file, those don’t go in plugins.
Instead, create a child theme and copy this file into that theme. WordPress will preferentially load templates from the child theme, falling back to the original parent theme. This way any modifications you make in the child theme will overwrite the parent, and if the parent is updated no changes are lost
Related Posts:
- Fatal error: Call to undefined function mysql_connect()
- How to Add Image to WordPress RSS-Feed with no Plug-in?
- Childs PHP files not overwriting Parent’s PHP files
- How to add active class to custom menu using while loop and wp_list_pages
- How can I run a .php file located in my site’s root folder?
- How to return a string that has a variable inside in a shortcode?
- Cleanest/Fastest way to avoid calling and retrieving data from the database multiple times?
- Saving metabox repeatable fields
- Get list of WP Updates Across Sites
- Switching between custom templates in a post type of the admin menu
- Woocommerce HTML email option unavailable
- Use template for posts with a particular category grandparent
- How to add a custom id to each post URL in wordpress
- How to start a script from cli within wordpress
- How to group 2 radio buttons in a widget?
- What’s the best user registration library to integrate WordPress?
- Missing sidebar parameter “fix” – before_content
- WordPress add post format support not working
- Page Automatically Generated from Theme?
- Adding Custom Slider
- Displaying custom taxonomy on WooCommerce product page
- Don’t insert if permalink is the same?
- PHP errors in class-wp-query
- Store a default value for a transient on plugin activation
- conditional logic for front-end custom field edits
- Custom posts in different columns style
- php syntax : [ && ] between commands [closed]
- Insert custom PHP head above in WP pages
- Which PHP page is the Default Posts Page
- Can we count the WordPress Loop
- Display most popular posts of category
- Is there a way to hook or call a custom woocomerce template that is not part of the default templates of woocommerce?
- Fixing Memory Leaks in WordPress (HHVM)
- Get html data with javascript to php array and store to wordpress database
- How to use array in function to get only value I want
- Apply class to every third list item? [duplicate]
- How to remove sidebar primary widget on Mobile on category page [closed]
- How to upload WP user avatar on woocommerce account page [closed]
- Argument for if term-> have child?
- add_filter function concatenate string and locate_template function
- HTTP ERROR 500 after installing child-theme [WordPress] [closed]
- get users search not working with array
- How to return a string that has a jQuery and Ajax inside in a shortcode?
- How to get a list of users who like a current wordpress post [closed]
- get_page_templates only return templates with “home” in the filename
- ‘pre_user_query’ interfering with user export
- Custom CSV exporter – Cannot modify header information – headers
- Custom post type url Rewrite (conflicting with page url)
- WordPress custom taxonomy
- pagination broken – clicking next displays “page not found”
- PHP: How to access db the right way in plugin?
- How to decrease the max file upload size without using php.ini or htaccess?
- populate select options from extra mysql table data
- Writing a link cloaking plugin
- Custom forms with HTML
- Let current user know pending posts counts using wp_query
- How to check post meta isset or not empty during publish/save post?
- Nav Walker that shows only children and siblings of top level parent menu item
- Add posts to custom table in database instead of wp_posts
- How to setup the Email piping in WordPress plugin?
- WordPress – Query specific category and automatically change category each month
- I can’t separate the array by commas
- Hide Approved status for certain users in users list
- is_user_logged_in returns false when I access certain pages
- Advanced Custom Forms PHP formatting for do_shortcode
- Infinite loop when logging out using custom login form
- add custom metabox to media library custom widget
- wp_signon works local, not on https
- Get WordPress username to customize url
- Delete empty title_tags, find a h1 heading and echo it
- Get posts from year from URL
- add_action in wp_head accessible from class
- WP_Query To Display Product Of Brand On Taxonomy Page
- Let user select the number of posts shown per page jquery error
- How to have more than one ID included in the exclude command?
- Search for images that width and height is more than 500
- How do I get object if class is instantiated only like this new classname()
- How to create a php page to collect information from a html page
- Default Image not showing up in Customizer for WP_Customize_Cropped_Image_Control
- Can’t make product images clickable
- wordpress ajax return 0
- I need help implement a Javascript code into the PHP file
- Passing different content to template parts
- Weird slug in archives permalink
- Admin bar nodes
- My customizer’s setting doesn’t set to the default and needed to click the control’s “Default” button before it’ll be set
- Run insert if no entry otherwise run update with ajax
- Hide cart when empty [closed]
- Overwriting a Shortcode
- Post Title Not showing up
- if is_home(), change class of menu-item-225 of wp_nav_menu
- WordPress most commented posts of last X days
- How to check if a value exists in one of two database tables
- What is the wrong with this function to enqueue the scripts and styles to the theme? [closed]
- How to use multiple 404 Error Pages in WordPress
- Parse error: syntax error, unexpected ‘}’ in
- WordPress add parameters with friendly url structure
- Different behaviour between “include_once” and directly echoing out html code?
- Pull latest Youtube Video from json url and make new post
- PHP $_SESSION array – only showing current index