Here’s my challenge: We have an annual report that is published annually. We do NOT want to spin up a new site and domain each year, but house each previous year’s edition on the same site.
The kicker is this — each year has a unique design but most of the site’s functionality and features remain the same. Is there a way to house each year’s report on the same site with a different stylesheet assigned to each group of annual report pages?
I’ve been able to create new post/pages in multiple languages that load various menus but haven’t had success in loading separate CSS to specific pages.
I’m relatively new at WordPress development and don’t want to use plugins and would like to write DRY code at the template level that conditionally call the proper stylesheet per the year in question and not have to worry about plugin/core compatibility or updates.
- One group of pages/posts for 2017 have stylesheet enqueued (with its own menu); and
- 2016 has a different set of pages/posts with another stylesheet, menu, etc.
Is this possible? If so, what is this called for research purposes. Is there documentation on doing so in the Codex? Is this considered enqueuing, other?
Thanks in advance for any assistance