Customising your Social Gallery Pages:
Common reasons to edit your Social Gallery Pages template:
- Your theme is very customised – by default Social Gallery Pages don’t look correct
- You want to add more functionality (perhaps add more share options?)
As requested from V2.1 you can now create your own custom “Social Gallery Page” templates. This is not for amateur web developers/designers and should be approached with the same caution as editing a theme manually via code. No support is given for this or responsibility assumed, any changes you make to your files is to be done entirely at your own risk. Please be careful. That being said v2.1+ has a nice in-built way of stopping you overwriting the default template file:
Step 1. Re-read the above paragraph – are you sure you want to change the template?
Step 2. Open your plugins directory find the directory /SocialGallery/templates/
Step 3. In /SocialGallery/templates/ will be a file named “single-social-gallery-image.php” – copy this to a new file entitled “custom-single-social-gallery-image.php” in the same directory
Step 4. Edit this file as you like, saving only over the “custom-single-social-gallery-image.php”
Step 5. Once finished editing make sure you back up this file!
Common Edit’s for Social Gallery Page Template
90% of all themes will work out of the box with Social Gallery, 8% will take a super simple edit of this file and 2% will need a little more work – at least that’s my guess. The only real problems that make these changes take a little time is when a theme maker doesn’t use standardised WordPress calls, classes or structure. Granted some themes are so off-the-wall that it’s necessary to negate these established systems – but still, every theme should be tweakable.
So assuming you want to make Social Gallery Pages fit better within your current theme – here’s the approach I take: