Slightly OT: Changing the layout of the default WP gallery

[ad_1]

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 4 hours, 15 minutes ago by bodensee360.
  • This topic was modified 4 hours, 15 minutes ago by bodensee360.

The page I need help with: [log in to see the link]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer