Skip to content
Grav 2.0 is officially stable. Read the announcement →
Plugins

Shortcode-Gallery not functioning with Quark

theme

Solved by pamtbaau View solution

Started by AH 5 years ago · 6 replies · 823 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 Mathieu Lecouturier, 6 days ago
3 128 3 days ago
Plugins · by Slebeig, 4 weeks ago
1 296 4 weeks ago
Plugins · by Rene, 2 months ago
2 452 2 months ago
Plugins · by Xavier, 2 months ago
2 368 2 months ago
Plugins · by Luka Prinčič, 7 years ago
3 1594 2 months ago