Jump to content

Edit History

El Patron

El Patron

Howdy,

How to actually display a widget in a CMS page

Edit the CMS template file

Find the CMS page template file:
Usually located at /themes/your-theme/templates/cms/page.tpl.

Insert your widget code ({widget name="store"}) directly in the template where you want it to appear.

{widget name="store"}
Tip: Always make a backup before editing any templates!

Clear your PrestaShop cache after making changes (Back Office: Advanced Parameters > Performance > Clear Cache).

Hope  this helps

 

El Patron

El Patron

Howdy,

PrestaShop only processes Smarty and widget codes inside template files (.tpl). If you add widget codes to standard content fields—like CMS pages, product descriptions, category descriptions, or most HTML blocks—they will just display as text, not as a widget.

Edit the template file

  • Find the right template file for the page you want to modify (e.g. product, category, CMS page, etc.) inside your theme folder (/themes/your-theme/templates/).
  • Add your widget code (for example: {widget name="store"}) directly into the .tpl file, in the spot where you want it to appear.

{widget name="store"}
 

then

Clear the PrestaShop cache after making changes (Advanced Parameters > Performance > Clear Cache).

 

Hope  this helps

 

×
×
  • Create New...