• I’m trying to find the location of the code “<br style=’clear: both;’ />” in the 2012 theme as relates to galleries.

    I’m using the built-in WP media gallery and it’s adding 2 of these returns making a very large bottom margin.

    I’ve trying lots of work-arounds but I think I like to remove it from the code unless it’s in the core.

    Any help would be really appreciated – thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • as you are using the build-in gallery shortcode, the code for it is in one of the core files, /wp-includes/media.php from line 672:
    function gallery_shortcode($attr) { etc….

    to change or remove that, you might need to create your own gallery shortcode.

    I’m using the built-in WP media gallery and it’s adding 2 of these returns making a very large bottom margin.

    From what I understand, the <br> injected by core will only be 1 for each gallery row. So are you sure there are 2 of those within the gallery markup ?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘WP Gallery "" causing large bottom margins…’ is closed to new replies.