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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Plugins

Shortcode-Gallery not functioning with Quark

theme

Solved by pamtbaau View solution

Started by AH 5 years ago · 6 replies · 702 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 Rene, 1 week ago
2 42 1 week ago
Plugins · by Xavier, 4 weeks ago
2 53 4 weeks ago
Plugins · by Luka Prinčič, 7 years ago
3 1179 1 month ago
Plugins · by Sebastian van de Meer, 1 month ago
1 47 1 month ago
Plugins · by PIERROT Alain, 2 months ago
3 71 2 months ago