WordPress.org

Ready to get started?Download WordPress

Forums

Shadowbox on rel in wordpress core - post-template.php? (3 posts)

  1. 2bak860
    Member
    Posted 4 years ago #

    Hi,

    I've heard of a way to add a rel="shadowbox" to attachments in a core WordPress file - I think it was post-template.php. It means that all attachments open in a shadowbox.

    I've search high and low for the piece of code - does any one know it?

    thanks,
    Ross

  2. 2bak860
    Member
    Posted 4 years ago #

  3. Mark / t31os
    Moderator
    Posted 4 years ago #

    Not really an ideal solution though, the author has you modify a line that is actually hook'able.. ie. it can be changed with touching the core file directly...

    Whenever you see this..

    apply_filters( 'filtername

    You can hook a filter on..

    add_filter( 'filtername' , 'yourfilterfunctionname' );

    I answered a very similar question just recently, same applies here.
    http://wordpress.org/support/topic/295401?replies=13

Topic Closed

This topic has been closed to new replies.

About this Topic