cancel
Showing results for 
Search instead for 
Did you mean: 

insert an image into a category link widget

insert an image into a category link widget

hi,
i need to use the Category link widget associating it with an image.
That is, the image must be linked to a product category using the widget.
is it possible?
I hope I made myself clear...

2 REPLIES 2

Re: insert an image into a category link widget

To insert an image into a category link widget, you can follow these steps:

  1. Navigate to your widget settings: Go to the widget or theme customization area in your platform or website builder.

  2. Find the category link widget: Look for the specific widget you want to modify.

  3. Upload or link the image: In the settings, there should be an option to either upload an image or link to an external image. Select or upload the image you want to appear next to the category link.

  4. Adjust the size and position: Ensure the image is sized properly to fit the layout and doesn't disrupt the link display.

  5. Save the changes: Once you're happy with how it looks, save your settings and check how it appears on the front end.

Let me know if you need further clarification or run into any issues!

Re: insert an image into a category link widget

Hi @pressbarra02cf ,

 

Content > Widgets > Add Widget > Type: Category Link

 

This widget simply displays a text link to a category.

 

By default, Magento’s Category Link widget does not allow you to add an image to the link. It only outputs a simple <a href="...">Category Name</a>.

 

Overright needed for core files available under below path

vendor/magento/module-catalog/view/frontend/templates/category/widget/link/

 

You can add category image display code with link.

 

Problem Solved? Accept as Solution!

 

Thanks

Ankit Jasani