Integrate two themes in Wordpress?

Guadalupe.D

Senior Member
Joined
Jun 2, 2023
Messages
846
Reaction score
189
I have a service based website, it's built on Wordpress.
Now i want to add an Amazon Affiliate Store that has products and photos and redirects the visitors to purchase with amazon. Is this possible without having to change the whole website?

Basically I need two themes, one for the website, one for amazon affiliate.
 
you can install the Amazon site on a subdirectory (ie. store.mysite.com)... or you can use one of the many Amazon store builder plugins, but I don't think that all of them work with all themes...
 
Last edited:
I assume that both the main website and the affiliate store section will be based on the same WP system, in which case the only way to use "two themes" would be to extract required css/js and template files of the secondary wordpress theme for the affiliate store and integrate them into the original theme.
 
i want to add an Amazon Affiliate Store that has products and photos and redirects the visitors to purchase with amazon.
I am not answering your original question, but I have an important advice for you regarding Amazon affiliate. If you are planning to start an affiliate store then don't just import 100's of products (images, description, etc.) from Amazon and display them as a store without adding any value.

Last year Google has wiped out such websites from search results. You may get penalty if you build the amazon store this way.

I am sharing this because in Dec last year one of my sites got hit and all the traffic is gone, so be careful.
 
I have a service based website, it's built on Wordpress.
Now i want to add an Amazon Affiliate Store that has products and photos and redirects the visitors to purchase with amazon. Is this possible without having to change the whole website?

Basically I need two themes, one for the website, one for amazon affiliate.
You can switch themes programmatically:

https://stackoverflow.com/questions/30796038/how-to-set-the-theme-programatically-in-wordpress
But this is a hacky solution.

I agree with @tazarbm on this. Have a separate installation for the second theme. I additionally recommend having a nginx reverse proxy for switching the traffic to one of the installations depending on the request uri.
 
yes it can be done But you cant use 2 themes in one website
But you can make a page for affiliate services
 
But you cant use 2 themes in one website
Nope you can use two themes in one website. There's nothing that stops you from doing that. See my reply above. It is hacky, yes, but that does not mean it is impossible.
 
Nope you can use two themes in one website. There's nothing that stops you from doing that. See my reply above. It is hacky, yes, but that does not mean it is impossible.
yes but on sub directory Not on the same domain two themes working at a time
 
yes but on sub directory Not on the same domain two themes working at a time
Nope, it can be on the same domain and even the same page. WP has a couple of filters for that... namely:
Code:
add_filter( 'stylesheet', 'use_mobile_theme' );
add_filter( 'template', 'use_mobile_theme' );
See my example above.
 
Back
Top