Support » How-To and Troubleshooting » Shadowbox on rel in wordpress core – post-template.php?
6 years, 9 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?
6 years, 8 months 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.