Slightly OT: Changing the layout of the default WP gallery
-
My goal is to give my customer the chance to upload images via postie
and automaticly build a gallery based on the attached email images.Now i’m struggeling to customize the default gallery of wordpress.
And the html template for it.I managed to change the size of the images in the functions.php with
function custom_size_gallery($attr) {
// Change size here – medium, large, full
$attr[‘size’] = ‘large’;
return gallery_shortcode($attr);
}But i dont have a clue where to edit the template of the generated html.
In my installation for example the gallery doesnt use 100% width.
Instead it uses this: class=”col-md-10 offset-1″Can someone give me please a hint where or how to do it ?
I would also use a gallery plugin if that is a solution for my problem.
regards
Michael- This topic was modified 2 months, 3 weeks ago by .
- This topic was modified 2 months, 3 weeks ago by .
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.