Standard wordpress widgets - wordpress

I'm making wordpress template. When I install this template(on stock wordpress), in footer block appears 6 standard widgets(Search, Recent Posts, Recent Comments etc.). I need to make these widgets do not appear by default(after install WP).
I have 3 widgets block, but even if I change the name of footer widgets block, standard widgets still appears by default in footer block . Any ideas? Thanks

In Appearance -> Widgets there should be a list of widgets available on the left and widget blocks on the right.
The "Search, Recent Posts, Recent Comments etc." should be in one of the blocks on the right. You can either delete each widget individually or drag the widget onto the "Available Widget" section.
EDIT:
When creating pages you can set the "Template" to "Full-width Page Template, No Sidebar" which won't allow any widgets to be displayed. Or in the functions.php file remove the twentytwelve_widgets_init() function.

Related

Wordpress - widgets are not showing

i am using neve theme + elementor, and i am trying to add widgets to my footer, but nothing shows. I am going to Appearance>Widgets>then add text and images to all footer columns - 1,2,3,4 respectively and when i hit update, and refresh the site, nothing shows.
I have checked this answer here but i have not used any code in my case(only drag and drop with elementor), so the answer does not apply to me.
i have tried to disable elementor and all other plugins, but same thing, nothing shows.
if i go to appearance>Customize and select widgets this message appears:
Widgets are independent sections of content that can be placed into widgetized areas provided by your theme (commonly called sidebars). Your theme has 5 other widget areas, but this particular page doesn’t display them. You can navigate to other pages on your site while using the Customizer to view and edit the widgets displayed on those pages.
What am i doing wrong? Any help would be greatly appreciated !
L.E SOLUTION : So the solution for this issue (for the beginners of wordpress like me here that could have the same dilemma) is like Daniyal said that before adding widgets to your Header and Footer in the Appearance > Widgets you actually have to design the header/footer in the Appearance > Customize section, by defining through drag and droping which area of the Footer for example Footer 1 is or Footer 2 or so on. Once the areas are defined the widgets added in widgets section will appear in the correct areas defined by the user.
Do you create Footer with elementor?
If you create footer with elementor, so footer widgets not showing and you should drag and drop widget with elementor to footer to show widget
If you don't create footer with elementor, this problem is the Theme

What is the difference between wordpress widgets and block

I have started learning wordpress recently. I have started from version 5 with this new Gutenberg editor which introduced Blocks. I am little confused regarding difference between this new Blocks concept and old Widgets.
Starting with a Blocks: they appear on page creation and can be added to page, there is nice documentation on wordpress webpage: https://developer.wordpress.org/block-editor/tutorials/block-tutorial/ a lot of stuff related to new blocks.
Everything is fine, but Blocks can be added only to page content and not into areas like: sidebar, footer etc.
For changing content of sidebar,footer areas we need to access Appearance->Widgets area where we can add multiple widgets to specific areas. Also for new Gutenberd Page Builder there is section called widgets available but with less number of widgets than under
Apperance->Widgets section.
Im totally confused. Could someone explain what is the difference betweemn Blocks and Widgets?
Why for areas like sidebar/footer we can add only widgets and editing footer is under Widgets menu?
Why only part of widgets are available for Gutenberg Page Editor
What should i do to create reusable code snippet(some html/css/js logic) to be reused on a page? Should i create a widget and somehow include it to widget section for Gutenberg or maybe i should create this new concept of Block? But i will not reuse my block in footer/sidebar section...
Are widgets something which will gonna die soon in wordpress world and will be totally replaced by Blocks? I remember that in previous version we were able to add widgets to page using some kind of shortcodes, so any widget we want? Is it still possible?.
I will appreciate any comments on that.
The Block Editor is so far being used only to generate "content". In the world of WordPress, that normally very generic word has a very specific meaning: whatever is returned by the function the_content(). Usually it's simply all the text and media input on the edit page of a post or page, though that can be modified by filters. This content is entered either in the classic editor's text box or (now) in one or more Gutenberg Blocks.
Widgets, on the other hand, display content outside the main content, in widget areas that your theme has located outside the main content in headers, sidebars, footers, etc.
I suspect you already know much of this. As to your question about code snippets, the simplest way to re-use code is through WordPress shortcodes. Register your shortcodes in functions.php or in a plugin; enable them in your theme; then use them anywhere. There is now a shortcode Block, by the way, for placing recurring content into main content.

Same widgets on each page Wordpress

How can i avoid same widgets on each page.I add widget on sidebar in widget area but it appears on all the pages having sidebar.I want different widgets on different pages sidebars.How can i do this.I am new to wordpress.
This can be done with the Jetpack plugin. Once activated you can choose what widgets display on what pages:
The Widget Visibility module enables you to configure widgets to appear only on certain pages (or be hidden on certain pages) by using the Visibility panel.
Visibility is controlled by five aspects: page type, category, tag, date, and author. For example, if you wanted the Archives widget to only appear on category archives and error pages, choose “Show” from the first dropdown and then add two rules: “Page is 404 Error Page” and “Category is All Category Pages.”
I prefer the Custom Sidebars plugin. It comes with less overhead than Jetpack, but if you need any of the other features Jetpack provides: go for it!
You can use the Display Widgets WordPress plugin. It is a super light weight plugin and will do exactly what you want!

Custom per-page sidebar widgets in Wordpress.. possible?

Let's say I'm doing a site about cars, and in the main content area there are a few paragraphs about a particular car.
In the sidebar, are several standard widgets. But I also want a widget with an 'info panel' about the particular car.
So what's the sanest way of putting in a per-page widget in Wordpress? I guess ideally the info-panel could be entered via the standard page editing in Wordpress. (or is this something a plug-in already covers?)
Widget Logic plugin:
http://wordpress.org/extend/plugins/widget-logic/
Another Option would be to download and install the Graceful Sidebar Widget. This plugin enables you to create a sidebar that with content specific to each page or post. You specify the sidebar content right inside the post edit screen. Hope this helps!
Enjoy!
Mike

Different sidebars for each Wordpress page

I'm making a Wordpress 2.9.2 theme, and I'd like each page to have its own sidebar than can be edited as easily as the page's content. It would be cumbersome to make a different template file for each sidebar. It would also be weird to add a "custom field" containing all the sidebar text, since I wouldn't be able to use the Visual/HTML editor. What I'd like is to have a tag similar to the tag, but instead of delimiting the content to be shown on the front page, it would split the post's content and sidebar. Is this possible? Or is there a better solution?
Make the sidebars widgetized and than use the widget logic plugin, so you can conditionally include widgets on any and all pages.
Doing this lets you utilize the out of the box widgets, which are awesome, and even integrated third party widgets that are just as great.
Also consider this: You widgetize other areas of your site, like your header, which can now use widgets and widget logic. This makes for a more flexible theme.

Resources