Questions tagged [page-template]
Pages are one of WordPress' built-in Post Types. You'll probably want most of your website Pages to look about the same. Sometimes, though, you may need a specific Page, or a group of Pages, to display or behave differently. This is easily accomplished with Page Templates.
1,213 questions
0
votes
1
answer
44
views
wordpress twenty twenty five portfolio updating one image updates other columns images [closed]
I am creating a blog and I added a portfolio page to my wordpress blog.
But it is mysterious when I add a image to a column, it updates other two columns also. is it possible to overcome this?
Before
...
0
votes
0
answers
34
views
Can I make a template part with content customized to each page template?
I am new to WordPress, and I am currently taking the free course on their website. I have started to create my website structure and style using the Twenty Twenty-Five theme and block editor.
Every ...
0
votes
0
answers
39
views
How to easily create a product selector that filter by category and tags?
We are dealing with an ecommerce with thousands of products, which are organized with multiple categories and multiple tags. Ideally we need to exclude some products categories and tags from the list.
...
0
votes
0
answers
70
views
Loading template part programatically, inline styles missing
<?php
/**
* Data provider for block patterns.
*
* @package Test
*/
namespace RomArt\DataProviders;
/**
* BlockPatternsDataProvider class.
*/
class BlockPatternsDataProvider extends ...
0
votes
1
answer
66
views
add_rewrite_rule - how to match exact whole word only?
I have these blocks of code in my function.php:
add_action('query_vars','add_query_vars');
function add_query_vars($vars) {
array_push($vars, 'verify');
print_r($vars);
return $vars;
}
...
0
votes
1
answer
43
views
get_template_parts() usage
I am trying to add a template sections that I have in a directory my-child-theme/template-parts/hero.php.
In my page template (my-child-theme/templates/front-page.php) I am calling echo ...
0
votes
1
answer
57
views
WordPress function::: get_header();
Can I use the following function twice?
<php get_header(); ?>
<php get_header(); ?>
<div class="news-heading">
<span>Trending</span>
</div>
...
1
vote
0
answers
55
views
Get_Template_Part and Template files in TwentyTwentyFour Block Editor
I am building a project using WordPress 6.6.1. I have opted to create a child them which extends TwentyTwentyFour and therefore relies on the new block editor which is packaged in that parent theme.
...
4
votes
1
answer
2k
views
How to duplicate a template in wordpress site editor?
How can I create a duplicate of a template using the Wordpress Site Editor?
Using the Wordpress Site Editor, I can create new page templates. I want to create a new template that's nearly identical to ...
0
votes
0
answers
57
views
Multiple search forms and respective results page templates?
I have a Woocommerce site and I would like to set up two different search forms, one for products and one for everything else (pages, posts, and a couple CPTs) that would render on it's own respective ...
0
votes
0
answers
47
views
Latest Wordpress Version Changes to Block Editor Template
With the latest version of WordPress I noticed that I'm not able to change the template file based on the custom page templates that I've made when I'm on BLOCK EDITOR mode. I am ONLY able to change ...
1
vote
1
answer
1k
views
How to delete a page template created from the editor?
I was experimenting and tried creating a page template from the page editor by clicking the button below.
I no longer want that template there, as I'm just going to do it the old-fashioned way and ...
1
vote
1
answer
313
views
Wordpress post-template null warnings
I am getting these PHP8.0 Warnings from my WordPress site. The warnings are pointing to core code, not anything custom. When I turn debugging on there are no error messages on the site. I also checked ...
2
votes
1
answer
199
views
Where to put media files when adding custom template to a theme?
Goal
I need to use a legacy html static page for the homepage of a newly installed wp website. I used this answer, the second method, to add a template to my theme and to set the settings > reading ...
0
votes
0
answers
173
views
Change information (phone number) in header of WordPress site using Veda theme
The site is located at www.morrellplumbing.com.au and the header looks like this:
I need to change the phone number, but for the life of me, I cannot find where it is stored in the Wordpress ...