Tagged: ismael, page template
-
AuthorPosts
-
May 2, 2017 at 12:40 pm #786305
Hi,
could you please tell me, what ENFOLD file or files I need to duplicate, to make an own page template,
where a custom widget area (!!!) is working, too?Important for me is, that I can use there a “custom widget area” on this duplicate, too.
Thank you.
May 2, 2017 at 2:22 pm #786364Hey Chris,
You can duplicate page.php from the enfold theme, just make sure you add the template name after the opening php tag:
/* Template Name: My Custom Page */
You can use this as a reference to add the widget area on the Customized page: https://codex.wordpress.org/Function_Reference/dynamic_sidebar
Hope this helps.Best regards,
NikkoMay 2, 2017 at 2:44 pm #786386first of all – please make you familiar with using a child theme – there are a lot of advantages.
All changings to that child theme stay even on updating the parent theme was one of those points.A Template is an established term in WordPress.
Templates are the files which control how your WordPress site will be displayed on the Web. These files draw information from your WordPress MySQL database and generate the HTML code which is sent to the web browser.
A Template often is a strict layout and you only could change colors or fonts etc. via css. The layout structure stayes often the same.
Enfold uses advanced layout builder – so you can create page/post wide a different layout – no strict template.
If you have in your mind something like the demos – they only differ in some settings and color-schemes etc. These settings are made with Enfold Options Dialog.
So you can do it via Child-Theme yourself and a bit of code-snippets sometimes.To your other question : there are a lot of possiblities to make your own widget area. And Enfold accomadets your whishes.
It is very simple to register an own widget area. And there was a widget area element on content elements listed.For placing a site-wide widget area – we have to know something more precise input of you
May 2, 2017 at 2:49 pm #786390so here on enfold documentation there is a predefined download child-theme: Link
May 2, 2017 at 2:57 pm #786399??? sorry, Guenni, I don’t understand your posts … my question was about what file I can use as a basic file for a duplication for a page template – whether it is the page.php or loop-page.php.
I don’t use child themes at all, they never worked for me – I have my own system to keep all updated with the original theme, so nothing I need and nothing I will ever change, sorry :-)
May 3, 2017 at 3:17 am #786843Hi,
If you’re not using the advance layout builder, you can create a template based on the page.php file or the loop-page.php file.
Best regards,
IsmaelMay 3, 2017 at 1:21 pm #787111okay, thanks, and what file do I need to duplicate/modify for using the ALB on it, too, please?
May 4, 2017 at 12:15 am #787481Hi,
You can use this file: template-builder.php
Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.