Forums

Edit [gallery] Template Code (6 posts)

  1. ghowner
    Member
    Posted 3 years ago #

    Where can I edit the xhtml for this? That is, the gallery output.

  2. Evita
    Member
    Posted 3 years ago #

    At the moment, the only way I know is in wp-includes/media.php.

  3. Justin Tadlock
    Member
    Posted 3 years ago #

    You can change the XHTML output straight from within your post:
    http://codex.wordpress.org/Using_the_gallery_shortcode

  4. Evita
    Member
    Posted 3 years ago #

    Thanks greenshady, do you know if there is any code (for functions.php) to delete the whole css-style in media.php?

  5. ghowner
    Member
    Posted 3 years ago #

    Thanks greenshady. What I was attempting was to change how it outputs in a way of adding a new display functionality, but not just editing the column amount or minor changes.

    Thanks Evita and greenshady, I'll try it out today.

  6. Justin Tadlock
    Member
    Posted 3 years ago #

    I've actually done this with my Cleaner Gallery plugin if you need an example of how it's done.

    There's also the WordPress shortcode API that'll let you remove shortcodes and replace them with your own (what I done with the above plugin):
    http://codex.wordpress.org/Shortcode_API

Topic Closed

This topic has been closed to new replies.

About this Topic