I would like to create a custom front page in the new Wordpress Gutenberg editor.
In older version of Wordpress I could attach a page to a custom template.
I can't see that option in Gutenberg.
Regards
Frank
The Gutenberg Handbook on wordpress.org says about that:
Planned additions:
Saved and assigned to pages as “page templates”.
Defined in a template.php file or pulled from a custom post type (wp_templates) that is site specific.
As the equivalent of the theme hierarchy.
(https://wordpress.org/gutenberg/handbook/designers-developers/developers/block-api/block-templates/)
So apparently that isn't yet available, but is planned.
Create a new page with wordpress gunteberg editor.
Set it as the front page (on the WordPress settings) and now you can style the whole front page.
You will probably need to install some block plugins to accomplish your needs (sliders, testimonials, carousels, responsive layouts...).
Have a look at getblocklab.com or the ACF block system (in Release Candidate right now available only for premium users) if you want to style your home similar as you would with a php template + css.
Related
I have a black nav bar at the very top of my homepage.
How on earth do I set this to appear on ALL my site pages?
I simply cannot find the option.
It is actually also a Wordpress 'template part' if that helps?!
www.ecoprintcompany.co.uk [site in development, obvs]
many thanks
Is your question related to classic theme development? If so you would call it using get_template_part() from the other templates.
If you're using a block theme with Full Site Editing, you would just insert it into your page template (and other relevant templates) using the block inserter.
I have a Wordpress website with a custom theme which includes Galleries, Testimonies and others.
I'm looking for a plugin that would automatically send an updated email to my subscribers every time something new is added. It should be something very simple to handle. For example the plugin would use a custom template that needs to be created (using the same shortcodes and style-sheet as the website theme). Then it would detect the website sections such as Posts, Galleries, Testimonies, etc and using check-boxes I could select which one I want to include in the newsletter. It would be so convenient for me and the newsletter would be taken care of by Wordpress itself.
Does this kind of plugin exist?
Thank you in advance.
When creating a wordpress theme, you must enable certain theme features in your functions.php file. For example, enabling post thumbnails.
I'd like to know, in plain language, what is happening when we register support for post thumbnails in the functions.php file.
My understanding is this: the core of Wordpress has all the code for dealing with post thumbnails, including the UI for the metabox, how the uploaded image file is handled, etc.
In a theme, when we register support of the post thumbnails theme feature, we are telling the core of wordpress "our theme would like to use this capability of yours. Please let us access the functionality."
Do I have this basically correct?
Actually these are known as theme features, is a set of features defined by theme authors that allows a theme to register support of a certain feature (that is not active by default). Theme support functions should be called in the theme's functions.php file to work.
These are not activated in WordPress by default and these are
Sidebar Widgets
Navigation Menus
Post Formats
Post Thumbnails
Custom Backgrounds
Custom Headers
Automatic Feed Links
Editor Style
To register a theme feature you have to use add theme support function in your functions.php, it can also be called from a plugin if attached to a hook.
I have a client that wants to have a custom form added as a page on his Wordpress site. His site is using the "Genesis" framework and is already using a child theme of "Manhattan". I can create the form as a page template from within the Manhattan directory but if they ever update, the changes will be lost. What should I do?
I suggest you make it a plugin with a shortcode that way you can use it on every page you want. And even posts (which don't use templates)
You also could take a look at form plugins, which are fine if you don't need advanced forms.
As long as you place your template inside the Manhattan directory -- assuming you don't place that directory inside of the Genesis directory -- you won't have a problem with over-writing on update of the Genesis theme. Child themes do not have to be inside the parent theme's directory, indeed, they sd not -- they sd be in the /themes directory. See, http://codex.wordpress.org/Child_Themes
it is a very complex form?
If you add a custom template to the existing theme you may loose the changes when the theme is updated.
If is a simple form, I'd use a plugin like contact form 7, or caldera forms.
If not (or you don't wan't to use a wp.org plugin), you can create your own plugin and register a shortcode, you can write all the form functionality at the plugin and use the shortcode in the WP editor.
This way you won't have any risks of loosing features due to a theme upgrade
I'm somewhat new to Wordpress. I'm primarily a front-end web designer, and I use Wordpress plugins for things like dynamic content, forms and really anything a client requests that I do not know how to write code for. Unfortunately, I share the frustration of many designers/developers who complain about Wordpress' html sanitization. Thus, I write the majority of my html directly onto the page templates rather than using the Wordpress editor. I only use the Wordpress editor for small sections of my pages where I need to insert a plugin shortcode -- for a form or something. This works well until I need to use multiple plugins on one page. For instance, if I need a form plugin at the top of a page and a google map at the bottom, then I have to code all of the html in between those two elements into the Wordpress editor, which I would rather avoid.
My question -- is there a way to use Wordpress plugins in the page template html instead of using the shortcodes in the Wordpress editor? If I had it my way I'd never have to use the Wordpress editor for non-blog content.
Thanks,
Scott
Use wordpress do_shortcode();
e.g. echo do_shortcode('[gallery autoplay=no]');