It depends on your theme. To find out exactly which file to edit, add the following code to your header.php
file inside /wp-content/themes/nameofyourtheme
:
<!-- <?php global $template; print_r($template); ?> -->
You can then view the page in question’s source and see a comment that tells you the name of the file, which will also be somewhere inside your theme’s folder structure.
Once you open that file, it is possible that it’s calling another file – WordPress themes sometimes use template parts – if this is the case, the PHP code in the area you’re troubleshooting will have a call to get_template_part
and you’ll need to find that separate PHP file. It sounds like this may not be the case though since it differs from page to page.
Related Posts:
- How to get current page ID outside the loop?
- How to give paged links custom title?
- featured image as background image on pages
- Create pages automatically if they don’t exist
- Can I display submenus in groups, using wp_list_pages?
- Order by menu_order and title?
- WP Page and Subdirectory with same name
- Can I display the widget admin in the page admin?
- Internal Links to Pages in PHP?
- How to inject custom url path for page ?
- Restrict acceess of a page in backend
- How to display page title+link of page created by user
- Modify theme to get page excerpts on front page
- get_page_by_title not working when used with a variable
- How to disable Page Attributes dropdown in wp-admin
- How to make certain page templates visible to admin only
- Editing Pages that Have Already Been Published
- The entire content of my WordPress page has disappeared
- What is the proper way to get contents of a page?
- How to redirect a page to subdomain?
- Getting child content
- Clean URL link for page without number
- How can I have two content titles?
- Get the Page Content,without generating HTML
- How can I split long posts into pages?
- Slug is redirecting to 404
- Can I include Javascript/jQuery in a page?
- Adminbar Missing “Edit Page”
- “next page” of parent in infinite loop
- Access the same page from multiple urls (wildcard)
- Any Ideas for Including “More Tag” with get_pages($args)?
- Using in-build Visual Composer param types in custom param types
- Google Analytics tracking code on just one page?
- Layout Builder.
- get_pages() as per custom menu order
- Pass data from one page to anothe file/page in wordpress
- Display child pages in sidebar of parent page in wordpress
- Get the Current Page Slug-Name
- Display child pages in a parent page? [closed]
- Cannot enter “::before” for li tag when editing a WordPress page
- How to get page_id for url rewrite or how to use page slug for calling a page?
- JQuery Plugins in WordPress
- Change a Page’s Header Image
- Dynamic href link to Contact Page
- Restrict the list of parent pages to only those which are created by current user
- how can i remove page title on desktop view
- Use content from one page in another template
- Is there a way to schedule changes to a page?
- Is it possible to change slugs’ default behaviour?
- List child pages within page template
- Option for pages order in backend
- Return subpages of an author if the parent page was published by an other author
- Page menu not showing in admin, new Page button missing in toolbar too
- append one page content into another
- Allow a user to edit their own page and profile only
- WordPress Page doesn’t load the template selected
- on page creation few inline style properties gets removed
- Custom folder for wordpress page templates
- Page not appearing under its Parent
- Separate URL for a specific page
- Pages that don’t look like blog posts?
- Can I use Pages like a Wiki
- Next and Previous Page links based on ‘Order’ attribute
- Create multiple pages with tables from json file
- register_rest_field only for specific page
- Update Pages ONLY from Stage to Live (not products)
- Attaching a file to a page without adding to media library?
- How do you run code on a specific page without missing the init hook?
- Every change made by “Author” role is going to “pending review”
- Groping Pages Per Department Option
- Requiring a Visitor to Enter a Password Each Time They visit a Page
- if is_page() is not working with wp_redirect
- WordPress default theme cannot get full page on entry content div
- Assign Parent Page – Now 404 Error
- Create multiple custom HTML pages
- Add homepage to the list of pages in the Footer Widget
- How to remove the duplicate title tags and duplicate meta descriptions?
- Two different layouts for the same post
- My page title turns into a h2 tag – What to do?
- Add pagination to search.php page
- problem with loading pages
- How to turn post into pages and via versa?
- Content not displaying on page
- Blank white space where header was [closed]
- How do I get my page “About” to show up on my WordPress site?
- Featured Image not displaying in a page
- Display child pages on homepage template
- Set order acs and no paging for archive page
- Pulling posts tagged with similar title name
- Temporary download page or restrict static download page based on how the user got to the page?
- search page different results
- simple category search form returns full text – but I need excerpts
- Naming custom page templates
- How can I use Page editor for two separate templates?
- Sort the data in WordPress using get-page-by-title
- Adding a filter to wp_edit_posts_query() to prevent hierarchical display of pages
- Order pages by date
- wordpress user profile page
- In WP, Google map error initMap is not a function [closed]
- Fresh WordPress installation not able to simply show page content