Yes, you can. In many ways.
One way is to have custom templates based on tag or category slug. So, you just tag your posts appropriately and then WordPress will automatically select appropriate template.
If the template difference are miniscule, you can use php includes or wordpress includes to keep common content in other files.
Or you could do a custom include based on the value of the tag from the main theme file and provide CSS reference that way.
Or have inline CSS again controlled by php code inside the template.
Related Posts:
- Custom Taxonomy-specific JavaScript
- Adding admin-ajax.php to the frontend. Good or bad idea?
- Can wordpress theme folder name be changed freely and nothing technically happens
- what the best way to include images from the template’s images folder?
- How do I add support to my theme for custom menus?
- How do I white label my self-hosted site created by wordpress?
- How do I add a new string to a .po or .pot file?
- Free/Open-Source Theme Frameworks as an Alternate to Thesis? [closed]
- can require “themefolder/includes/widgets.php” in “themefolder/functions.php” yet widgets.php doesn’t run
- How do i structure my theme folder to avoid one huge list of files
- Loading template files from a subfolder in my theme?
- Multisite: setting theme and options when a new blog is created
- How to use scss in wordpress theme?
- How to get Ajax into a theme – without writing a plugin?
- Is it mandatory to have a link to the theme designer?
- How to attach region identifier to a pretty url?
- WordPress as Backend, Laravel Front End: How to connect Routes?
- Updating custom theme that is built from scratch
- How to get themes from wordpress.com per SVN? [closed]
- Edit raw HTML of the landing page
- single.php change into a modal popup bootstrap wordpress
- Exclude stylesheet from admin
- get_header(‘header2’) not working properly in child themes
- How do you remove Link backs on Theme settings page?
- How do you create a custom WPTouch theme?
- Added a new template file to a theme – get Call to undefined function error
- Theme broken after upgrading to WordPress 4.5, missing stylesheet?
- WordPress Theme for Video Showcase [closed]
- Do not show excerpt in post content
- Do we have rights to edit the source of the templates which are in wordpress.org?
- Widgets menu does not appear under “Appearance” in dashboard
- Calling widget via function in themes files (hard code)
- What’s the order of loading wordpress elements?
- How to add pagination to my code?
- Creating new templates in child themes breaks layout
- How do I tell how popular a theme is?
- Child theme not working after Parent Theme Update
- Combining wordpress themes
- how to use the slide show of Skylark in showcase?
- How to put a Worpdpress theme in spanish (having the po file)?
- How to run WordPress from other location on the same domain
- How to change only one javascript function in wordpress child theme?
- Woocommerce StoreFront Showing Incorrect Subtotal in Customer Total
- Switching to a child theme
- CSS Start Fresh option on; main.css still being loaded [closed]
- When creating a WordPress site how can you create different versions of the site with different themes?
- Depending on third party plugins for theme functionality
- What is the correct way to integrate wordpress with another php application?
- How can you showcase premium themes to clients without having to pre-purchase the theme?
- after_setup_theme is called three times
- Losing all my text and entries on ColorWay Theme
- Functions containing parameter ‘yourtheme’
- WordPress front page empty, however, there is content on website
- How do I remove ‘Active Theme’ section from Customizer?
- Cant remove white space on my wordpress [closed]
- wordpress theme install failing
- Blank line before doctype
- get_the_post_thumbnail() produces different HTML on same arguments
- WordPress Baskerville 2 translation
- .PO file is found but I don’t see translations: how to debug the problem?
- Cannot figure out what element header color is in wordpress theme [closed]
- How to edit the font color of the H1 on a single page?
- How To Show Different Footers For Different Post Types Pages?
- An unexpected error occurred when add theme
- Searching for themes that post full article on home page by default
- Uploading new version of theme fails, folder already exists
- Sort and paginate custom post taxonomies alphabetically
- Posts & page twice display
- How to get ONLY the URL of the image that show_media_header returns?
- How to remove date, author and comment count from Chameleon search results page
- Index page is not working
- Twenty Ten theme – how to put a different header banner on every page
- Custom fields in post later used in loop
- How to create a theme that can be updated by people using the theme on their site
- Customizing 1 theme for multiple blogs in a multisite setup
- Unable to thread comments because of custom comments.php file
- problem with wp theme uploading to server..?
- i want multiple blog, themes and database
- How to hide Submit a deal button on redeal aka rehub theme for non-admins?
- Set custom directory in theme for page templates
- how do you add a gallery to the homepage without using a post or page?
- How do I bring a page template into a new theme with separate styling?
- How to change WordPress theme outside of admin? Can’t access dashboard
- Remove action not working in theme
- Divi Blog Module Plugin and YOAST SEO “Primary Category”
- WordPress sub-domain different theme
- Site assets not loading from a subdomain
- How to get dynamic template-function generated CSS into HEAD?
- Password Protected Page + Showing Different Page If Not Authenticated/Authorized
- Determine Featured Image Size in header
- Plugin to load theme if mobile and specific page
- My site looks different when activating new theme
- Analytics causes website to crash
- How to create an Single-Portfolio page?
- Page structure using The Customizer Api
- How is WordPress child related to Buddypress child theme
- “Parse error: syntax error, unexpected” and the WordPress Theme Editor no longer working!
- Installing themes from an external website [closed]
- Disabling Full Site Editor (FSE)
- get_post_meta() doesn’t allow email