Featured image don't enlarge on category page
-
I use Magnific Popup to enlarge featured images on the posts. Everything works fine in main blog page, but if I use category filter which show posts only from chosen category, then popup don’t work. Background effect is appearing, but content (clicked featured image) and “X” button won’t.
I have also a slider which show gallery created in a post as popup if there’s any created) after clicking on featured image. In short: if I have a gallery, then slider appears, if I have no gallery, then popup shows only enlarged featured photo. This slider works fine in every case.
I make a category page almost the same as blog page, but i think that echo’ed content url for popup have a wrong form.
There’s a php file for blog-page:
https://pastebin.com/gEiV1qJSand there’s a php file for category page:
https://pastebin.com/0JmTQ1gFIm wrong in line 35 or entire category page script is bad? Please tell me, what i must paste in the code (and where) to make it works.
Please see, what I mean exactly and click on the left photo on the link below. Then go out of category by clicking All, which show posts from all categories and click on this post again. Popup work only, when user don’t choose the category.
- The topic ‘Featured image don't enlarge on category page’ is closed to new replies.