There has been an astounding silence to my previous query regarding divergent themes (several themes which are mostly similar, but which have some differences.) so I’m considering another direction.
Is it possible to make certain parts of a theme (say, a whole section) optional? I’m thinking customizer control, In my specific instance, I want to have Google ads shown on some sites, and not on others, but the same concept could be extended to a slider or no slider, jumbotron or no, and so on.
However, I can’t see a way of doing this with customizer. Is there a way to leave the option to the site admin?
Alternatively, I’m thinking:
- Clone the entire project and have two versions (make it hard to maintain)
- Have single_with_ ad.html and single_no_ad.html and rename one php file to single.php (yuk, messy)
- Add PHP code from the WP/Misc in Pinegrow and check for something like the site url before outputting the ad (makes it very specific, works for my situation, but not generally useful)
Any input would be very much appreciated! Thanks
(Incidentally, Forum feedback:I couldn’t get the list to work to create this entry, and am I right in thinking I can only use pre-existing tags?)