Why are my icons not showing on my homepage?

Answered


Posted May 25, 2023

I am modifying the Copenhagen theme. I want to add icons to the categories on the homepage but they are not showing up. I have uploaded my images as assets - they are all uploaded correctly as png's.

This is the relevant code:

When I inspect the elements using my browser developer tool I don't see this code there at all, and there are no images showing with the categories. I've tried identing the image on a different line and having it in line and neither work. Any ideas?


0

3

3 comments

Ensure that the asset URLs for your category icons are correctly defined. You mentioned that you've uploaded the images as PNGs. Check that the asset URLs are pointing to the correct files in your theme's asset directory.

0


Problem solved - the issue was that I'd put the images in the #if ../has-multiple-categories bit but not in the #else bit - not really sure what that all means but when I put it in the #else bit it worked :) thanks 5741754567450

0


Check the image paths: Double-check the paths specified in the src attribute of the <img> tag. Ensure that the paths are correct and match the location where you uploaded the images as assets. It's important to use the correct relative or absolute paths to access the images.

0


Sign in to leave a comment.

Didn't find what you're looking for?

New post