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.
Related
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.
I am new into the arena of WordPress. I started learning about how to create website using WordPress. I am wondering if a page layout can be fully designed and customized by using a page builder, why i need to use a theme. Isn't theme is used to define how my contents are going to be shown in pages ?
A theme is actually a collection of files that control the way the site is displayed and to some degree how it behaves. While page builders typically allow you control of some aspects of the visual interface, you cannot have a Wordpress site without an active theme.
i want to convert my html website to the wordpress. But can you please talk me that how i can convert and connect the other pages with the main page???
I'm going to start from the point of view you already have Wordpress and are ready to start.
You can't take your existing HTML website and just add it to WP.
What you need to do is to build your own custom theme, that matches your current HTML files, using the already existing WP templates and files.
Best way is to duplicate an existing theme to play/manipulate so that you don't break WP. The last thing you want to do, having no experience, is to mess with and break the default theme and be unable to get it back again without a full re-install.
RE 'connect the other pages with the main page' WP allows you to have static pages and set them as your home page and/or anywhere else you want. With these pages you can also set up different templates within your theme if you need to.
Wordpress have all this help available here:
Wordpress creating static pages and custom templates
Its not really that simple. You should read about WP theming. Here's the start:
https://codex.wordpress.org/Theme_Development
Check codes from other themes to see how to output basics. Theming has a lot of parts, but to ouput custom html you will need these files:
style.css
functions.php
index.php
single.php
With those you should have an basic blog output with core WP functionality.
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]');
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.