Support » Fixing WordPress » Shadowbox on rel in wordpress core – post-template.php?
7 years, 2 months ago
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?
7 years, 1 month 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..
You can hook a filter on..
add_filter( 'filtername' , 'yourfilterfunctionname' );
I answered a very similar question just recently, same applies here.