• I’ve been playing around in the wp-includes/media.php code trying to customise how the gallery appears in my posts but I can’t get it quite right.

    I’m trying to get each image to appear like this:

    <center><b>TITLE</b></center>
    <br /><center>IMAGE</center>
    <br />Description

    Can anybody give me the appropriate code to put in media.php to do this. I keep breaking the tables and ending up with many strange results!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Grievy

    (@grievy)

    Anybody able to help at all?

    First thing’s first — never mess around with media.php unless you absolutely know what you’re doing.

    Next, don’t use <center>. Use <strong> instead of <b>.

    CSS is the way to go, but the 2.5 gallery feature injects style rules right into the middle of the page, which might mess up your custom styles for it a bit.

    I suggest trying out my Cleaner Gallery plugin, which will let you adjust these type of things with CSS instead of HTML.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom Gallery Template’ is closed to new replies.