If you’re editing the theme directly it might be because of an update, when a them updates it deletes all the changes you have made on it.
If you want to edit themes you have to create a child theme
Just create a folder next to your actual theme folder (wp-content/themes) with the name you want for your child theme and create the style.css file with the Template option of your stylesheet header pointing to your actual theme (write there the name of your actual theme folder).
To make any changes just copy teh page you want to modify from your theme folder to your child theme folder and edit it there.
That way the changes will remain after the update
Related Posts:
- How to change the default registration email ? (plugin and/or non-plugin)
- TwentyTen: Overloading template.php files vs. get_template_part
- How to add posts list to a page template?
- How to support custom templates on a custom post type?
- new page sidebar-template by default
- Custom templates vs page-slug
- Page attributes missing
- What are the main parts of a WordPress Template?
- templates with page teasers Or Featured Items
- how to insert gravity newsletter subscription form in template
- Opinions and recommendations on the best barebones base theme [closed]
- Adding Page Attributes Metabox and Page Templates to the Posts Edit Page?
- Is there a way to list all used/unused WP templates?
- Print WordPress template filename(s) for debugging
- Change the name of the ‘Default Template’
- Echoing Elementor page content in template, but it doesn’t get styles and some widgets are missing
- How can I modify the default reset (lost) password email text?
- Template files missing after moving site
- Create single.php for specific category by category id
- Grid layout “last” class to every third item
- How do you modify Page Template?
- Using “setup_postdata” with “get_template_part” does not work
- How can I get the content of the home page?
- Why aren’t my posts showing?
- How to display error on specific template?
- How to move style from template file to section?
- Can I apply a WP theme to a specific custom page template?
- What is content.php file that is needed for Jetpack infinite scroll plugin?
- Auto-Generate Longtail-SEO Pages/URLs
- bloginfo(‘template_directory’) img src
- Should template files be copied to the child theme for editing?
- Calling an image within the theme folder from inside a post/page?
- Best Constant to use to check if WordPress is running
- WordPress automatically created files like .theme-name / .plugin-name.php [closed]
- style sheet header on Page Templates
- Why does the Full-width Template in Twenty Twelve pack so many classes into the body class attribute?
- How to use $wpdb (from the template) to update the DB, without being an admin
- Query post for ‘selected category’ in archive.php
- Move default page templates to sub directory
- Remove Items from Template Homepage
- Bizarre issue with custom RSS template
- changing posts layout in ultimate member profile plugin
- Using shortcode in template file
- Display current category and child
- Return get_header and get_footer string instead of echo it
- Different templates for same content, landing page from different URLs (generic, simple)
- Use one template only for custom post type archives?
- Is there a more efficient way to loop through pages?
- Is it possible to register a new template file?
- What template is used for viewing Media Library Files?
- Tell WP to use a specific template file in posts
- Remove portion of header code from home page only
- Use a separate template for the home page only
- Create a blank test.php
- Function Reference Documenting Template Tags for use in Custom Theme Templates?
- How do I remove the word “Blog” from a WordPress Homepage?
- AMP version of front page without plugin
- Give wp link pages it’s own template
- /wp-admin/post.php shows 404 template on submit
- Which template.php for /blog
- List Category Posts plugin – underline links [closed]
- Conditional template tag for buddypress pages
- Need help with my template [closed]
- WordPress Template Reverts to default template after changing
- using add_filter in a template_redirect function?
- How does post loop integrate individual page elements
- Content not showing properly with the first load of the page
- Where do I edit what the user sees on my WordPress site?
- User role templates
- Using a SendGrid transactional template with wp_mail
- How can I delete the word `Category:` from page titles? [duplicate]
- How can I add category variable inside posts?
- Language file doesn’t work (poeedit)
- Archive only for /year/month, not terms
- Why default template does not show?
- Why does the blog page not take the page template selected?
- Custom Taxonomy Theme file not routing correctly
- Why would adding a template file to a child theme cause an error in template-loader.php?
- How can I make is_page_template() workable in child theme?
- How can I add some blocks to template without changing template file?
- Creating a popup
- Redirect Every Instance of The Author Template Pages to Custom Author Pages
- WordPress not picking up custom templates in sub directory
- Category template not displaying all post formats
- Is it possible to call a template file inside wysiwyg editor? And how?
- Retrieving post ID from current page
- Mysterious template change after database import/export
- Is there a way to share a template/markup with the JSON API so that it doesn’t need to be declared both in PHP and in JS?
- Styling own template
- Make Terms Under Custom Taxonomy Use Specific Single.php Template
- changes to templates not showing on server
- Single template will not show sidebar/bottom-nav and footer
- Problem with permalink structure for WordPress custom post_type archive template
- Adding css and js to a blank page created with custom template
- Make default template two columns?
- Read more button not working
- custom post type single page template not working
- pass dynamic value to page to pull in categorised post cards
- templates page not showing on gutenberg editor
- How to load php templates from html page (block theme)