cancel
Showing results for 
Search instead for 
Did you mean: 

Difference between Widget and Block

Difference between Widget and Block

Hi Folks,

 

One more here ..

 

What is the Difference between Widget and Block. when should I use Block and when should I use Widget ?

 

Thanks

2 REPLIES 2

Re: Difference between Widget and Block

Kindly refer below links,

https://magento.stackexchange.com/questions/131287/what-is-the-difference-between-block-and-widget-c...

If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial

Re: Difference between Widget and Block

Hi @magento_sage1

 

Well , AKAIK both are almost/ Near to same but still there is slender  difference between both which i have mention below : 

 

Widget -  As a concept, a widget is a unique key (widget type) that maps to some code, and a set of parameters used by that code.

 

Static Blocks -  A static block is actually some text that can contain other elements (like widgets).

 

The difference between them from Magento's point of view is that you can place different widgets in different sections of different pages using the backend UI.

 

The static blocks can only be placed in fewer page types and sections.

 

For More details you can refer this link for the same - https://magento.stackexchange.com/questions/131287/what-is-the-difference-between-block-and-widget-c...

 

 

Hope it helps !

if issue solved,Click Kudos & Accept as Solution