WordPress.org

Ready to get started?Download WordPress

Forums

Wired code in file media.php (2 posts)

  1. s0what
    Member
    Posted 4 years ago #

    Hi!

    Every time I upgrade to latest version I have to remove following code from wp-includes/media.php
    <br style="clear: both" /> at line 775

    If I don't remove it, I got a large gap after first image line in gallery.
    Is this a WP or my Theme bug?
    How can I fix this with plugin, so I don't have to edit include files on each upgrade?

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    It's your theme, I think. Whilst I'm not too keen on the way in which the native gallery is added to posts/pages, it can be dealt with via your theme's functions.php file and your own stylesheet.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.