Foundation 6 + Block Grid + WordPress Gallery

If you are using foundation i’m sure you love block grids, but wordpress galleries do their own HTML. No worries, throw this snippet in your functions.php (or wherever it belongs in your theme’s structure) and the markup will change to a blockgrid instead. This works with Foundation 6 … for Foundation 5 you’ll need to change the output to UL and LIs instead of row/column DIVs.

Easy. You are welcome!


3 comments on “Foundation 6 + Block Grid + WordPress Gallery

    • Andrew on

      Branden were you able to adapt this to open in a modal? Here is my attempt however it is not working. Any idea why?



Leave a Reply

Your email address will not be published. Required fields are marked *