Close

How to make copy of original theme and have both?

cheerfulcalf
10 years ago
#5764 Quote
Avatar
  • 25
Hello!

How to make a copy of original theme and to have both copy and original at the same time? I want to keep your nice original theme, but I also want to have it modified and let customers selects which one they prefer. So I've made a copy of Lighthouse folder in Themes, renamed it to MyLighthouse and also renamed it in theme.config file.
Now I see both Lighthouse and MyLighthouse in admin General settings and on front-end. However, when I select MyLighthouse - all resources (css, etc.) still goes from "/Themes/Lighthouse/Content/...".
You can see it here http://staging.manoroletai.lt/

So what and where should I change else?

Regards,
Thank you in advance for your quick answer ;-)
Support
10 years ago
#5794 Quote
Avatar
  • Moderator
  • 1044
cheerfulcalf wrote:
Hello!

How to make a copy of original theme and to have both copy and original at the same time? I want to keep your nice original theme, but I also want to have it modified and let customers selects which one they prefer. So I've made a copy of Lighthouse folder in Themes, renamed it to MyLighthouse and also renamed it in theme.config file.
Now I see both Lighthouse and MyLighthouse in admin General settings and on front-end. However, when I select MyLighthouse - all resources (css, etc.) still goes from "/Themes/Lighthouse/Content/...".
You can see it here http://staging.manoroletai.lt/

So what and where should I change else?

Regards,
Thank you in advance for your quick answer ;-)


Hi,

You can create a theme derived from the Nop Lighthouse theme but you should make some changes in order to make it work:

1. In the Themes/MyLighthouse/Views/Shared/Head.cshtml file change the paths to all css and js files so that the ones from the MyLighthouse folder are reference, so just replace the Lighthouse word with the MyLightouse in the paths for the files.
2. In the theme there are locale resources used which you can change to a different values if you intend to have different resource values fro the both themes. For example the "SevenSpikes.Themes.Lighthouse.Common.FollowUs" resource name has a value of "Follow Us" which is displayed in the footer. So if you want to have different values in the different themes you can change the resource name to SevenSpikes.Themes.MyLighthouse.Common.FollowUs in the Themes/Lighthouse/Views/Common/Footer.cshtml file and then add this resources with its value in the administration. But I suppose you will not need to have different resource values in the different themes.
3. I believe you will have the same logo for the two themes.

If you have any further queries or need some additional information, please let us know!

Best Regards!
Lauresta
10 years ago
#5828 Quote
Avatar
  • 2
Thank you.

I've did everything as you told, but now I have problem with mega-menu - there is duplicated unformatted items right below it. You can see it here http://staging.manoroletai.lt/

Thank you for help.
Support
10 years ago
#5838 Quote
Avatar
  • Moderator
  • 1044
Lauresta wrote:
Thank you.

I've did everything as you told, but now I have problem with mega-menu - there is duplicated unformatted items right below it. You can see it here http://staging.manoroletai.lt/

Thank you for help.


Hi Lauresta,

Unfortunately I could not open the link provided because of an error. Can you let us know what the error in the Log is so that we can help you resolve this in order to have a look at the mega menu issue.

Looking forward to your reply!

Best Regards!