I have wordpress and am using Elementor editor. I have added a page that is meant to be a template for each new pages. I added a block with breadcrumbs to this page. I want this page with breadcrumbs on evey new page that i create. Copying this page all the time creates problems, e.g. if I wanted to change something in this block so I must do this on every subpage. I do not know how to do it - all i want its one static page with that breadcrumbs that includes to every new page i create, and when im change something in this page, changes will appear on every page.
Help :( Photo below
https://i.stack.imgur.com/G1EyI.png
Use the "Template" block in Elementor
That is achievable with Elementor Pro using theme builder option.
Create that template as a single page template and then in display options choose to display it on all pages.
Creating a Single Page Template with Elementor Pro
Then you should use standard page editor or custom fields to put content that is then going to be rendered by the template.
Doing that will let you make changes on all pages at once by editing the template.
Related
I want to create a custom page template in WordPress which shows Image Slideshow and then a video below it and finally some text - till now what I am able to do is play with sidebar, footer, header.
I can either remove them or keep them in my custom page templates but what I want to do is play with the page contents.
The Admin user should be able to see these sections in the Page Editor (WYSIWYG) when they choose the Template from the drop-down, so that they can accordingly add the correct content in correct place holders
Something like the attached screen-shot is showing
Is this possible in WordPress
Yes! It's possible to implement this! you can use https://codecanyon.net/item/visual-composer-page-builder-for-wordpress/242431 or https://wordpress.org/plugins/siteorigin-panels/ plugin.
The first plugin allows you to create different page layout and save it. It also allows admin to choose page layout that admin has saved previously.
The second page builder plugin allows you to create template same way and allows admin to clone one page layout to another one.
Hope this will help you!
I would like to let the user choose between different templates, such as full with or content with sidebar for the Shop page, but the problem is that the shop page always uses the archive-product.php template.
Thank you
Make a regular (not shop) page and add this shortcode:
[products orderby="menu_order"]
Other options to customize are available here:
https://docs.woocommerce.com/document/woocommerce-shortcodes/
To make your different templates, just make custom page templates as you would for any page:
https://developer.wordpress.org/themes/template-files-section/page-template-files/page-templates/
...And then select the template from the Page Attributes menu for that page, typically on the right about half way down. Now you can set up different shop pages with different text and layouts, and the savvy client can change between the templates you build.
Also note, when you use the shortcode above for a custom shop page, you can put in-page CSS. Just wrap it in <style</style> tags, though many frown on that practice.
I am making changes to a Wordpress site which uses the Avada Wordpress theme.
The page I want to change uses the 100% width template, as do many other pages.
I need to add markup in a place that doesn't allow me to do so via the page editor.
So it looks like I need to change the template.
I know I should make a child theme, but then should I create a new template (code duplication), or should I check the page inside the template, or is there a better way (some kind of refactoring?).?
I've selected a specific page in wordpress to display posts. I also set a custom page template to be used for this page, but is ignored.
The page is displayed using the default template.
I have no idea how to solve it, suppose it's a wordpress bug or something. Using the latest Wordpress.
Thank you
That's the default behaviour I believe.
Wordpress' template for the posts page will be index.php or home.php.
You have 2 options :
You could copy the page template file and call it home.php and make sure it includes the default loop in the markup.
or
Add in a custom loop on that particular template page (read more on inserting a loop here: http://codex.wordpress.org/Class_Reference/WP_Query)
I'm working on my first WordPress project. It won't be a blog but a CMS to quickly edit content and pages on the site.
I've got the header and footer exactly how I want it by editing them in the Appearance -> Editor menu. Under this menu I see quite a few templates that I could use (screen shot http://i.stack.imgur.com/P7IyY.png), some of which I don't even think I'll need or know where they came from. However when I edit my pages and go to the Page Attributes section there is only an option for 1 template (screenshot http://i.stack.imgur.com/UblzD.png). If I select Default Template as my template for the page, only the header and footer seem to load.
I am pretty new to WordPress. Am I suppose to 'activate' these templates somewhere? I only plan to use a handful of them (index pages, contact pages with a sidebar). What am I missing?
Thank you!
You should take a look at the information posted in the WordPress Codex on template files and the like. This image is particularly helpful in getting an understanding for when certain files are used by the WordPress engine to render pages WordPress Template Files Diagram.
You'll find the rest of the information relating to that diagram on this page.
I experienced this issue when using a child theme. I added a new template file to the child theme but the "templates" dropdown did not show on the page options section of any of my pages. I checked and double-checked the formatting of the template file and that was not the issue.
It turns out that my styles.css document in the child theme was not formatted properly and was missing the "template" attribute that designates the parent theme being extended with the child theme. I update the child theme css document to reference the parent template and voila! The template dropdown showed as expected.