dikkevandale
Member
Posted 3 years ago #
I have a problem editing the code of the gallery shortcode..
After searching the files I found the gallery_shortcode is being generated in:
wp-includes/media.php
But after changing some code in that file, the changes are not visible in the webpage :/
I can also delete the whole function gallery_shortcode($attr) and it still shows the gallery normally.
It looks like the code is coming from somewhere else. Can anyone check this for me. It really sucks!
dikkevandale
Member
Posted 3 years ago #
henkholland
Member
Posted 3 years ago #
Do you have a gallery plugin doing the "works" instead of wp-includes/media.php ?
dikkevandale
Member
Posted 3 years ago #
No, thats the problem why I can't find it. If I delete the whole media.php it doesn't work anymore (doh). But deleting only the shortcode <br clear:both;> and other gallery shortcode things doesn't seem to affect the output of the gallery :/