Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Shortcode-Gallery not functioning with Quark

theme

Solved by pamtbaau View solution

Started by AH 5 years ago · 6 replies · 944 views
5 years ago

Normally the shortcode gallery works out of the box (for example with the Bootstrap4 theme). Now I wanted to use it with Quark, but the images are not displayed correctly, but the fallback.jpg is displayed. Has anyone had the same experience or can anyone help me?

5 years ago

Sounds like you're providing wrong images path. More info needed.

5 years ago

Links to private pages removed

last edited 10/07/21 by AH
5 years ago

This still doesn't say much. How does your content look like in both cases? A couple of images would be enough as an example

5 years ago Solution

@idna, Your test site is throwing an error in the console at line 124 of the page: Uncaught SyntaxError: Unexpected token ','

Your code is missing values:

TXT
$("#443266197").justifiedGallery({
    rowHeight: ,                                 <-- line 124
    margins: ,
    lastRow: "justify",
    captions: true,
    border: ,
});

Your working site:

TXT
$("#1980437672").justifiedGallery({
    rowHeight: 250,
    margins: 5,
    lastRow: "justify",
    captions: true,
    border: 0,
});
👍 1
5 years ago

Thank you! That helped me!

5 years ago

I inserted the missing values in the plugins settings and the images were displayed correctly.
Thanks again

Suggested topics

Topic Participants Replies Views Activity
Plugins · by renedebaaij, 2 days ago
0 53 2 days ago
Plugins · by complanar, 3 weeks ago
6 397 2 weeks ago
Plugins · by BenLaKnet, 2 weeks ago
1 218 2 weeks ago
Plugins · by complanar, 1 month ago
2 490 1 month ago
Plugins · by Vladimir Novak, 2 months ago
3 768 2 months ago