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

Replicating this gallery

Started by Muut Archive 9 years ago · 8 replies · 402 views
9 years ago

Hi all. I've been struggling with creating a gallery myself, and frankly, i'm not going to be able to make a professional looking one.

Is there a way of replicating this gallery?

Thanks.

9 years ago

Thanks, that's what i was looking for!

Quick question. How do i implement it into my site? What should i be putting in the gallery pages folder?

9 years ago

Oh thanks! I couldn't find the skeleton and assumed there wasn't one. This helps a lot!

9 years ago

There is one, but for some reason it does not show up on Grav's downloads/skeletons-page anymore.

9 years ago

Another question... Is there an easier way of copying the stylesheet for the gallery over to my site other than individually adding all the values into my template.css? I thought i'd done it but, alas, the gallery(which is now showing!) has no style or JS by the looks of it.

9 years ago

You should only have to extend the theme with a child theme and all properties of the Photographer-theme will be included. Then you can override templates, styles, and scripts as you please. More practically, in the child theme add a custom.css to the theme's css-folder and add it to the base-template (mytheme/templates/partials/base.html.twig), like this:

{% do assets.addCss('theme://css/custom.css') %}

Which you want just under the line that says {% do assets.addCss('theme://css/camera.css') %}.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1346 9 years ago
Archive · by Muut Archive, 9 years ago
2 933 9 years ago
Archive · by Muut Archive, 9 years ago
2 4060 9 years ago
Archive · by Muut Archive, 9 years ago
1 2945 9 years ago
Archive · by Muut Archive, 9 years ago
3 1117 9 years ago