Customizing single.php only if used by the gallery shortcode
-
I am rather satisfied about the gallery shortcodes like [gallery ids="237,238"] etc. What I noticed is (thanks to the wonderful what the file plugin) the images when clicking on them are shown in the single.php template. I would like to make some minor changes in this template but only if the template is called by the gallery. The changes should not affect single.php when it is used for ordinary posts etc. I have been looking if there was something available like single-sometag.php within the template hierarchy but couldn’t find anything that would match my needs. It also could be helped if I could “tell” the gallery shortcode to use one of my custom templates rather than single.php . Thanks for any help
- The topic ‘Customizing single.php only if used by the gallery shortcode’ is closed to new replies.