YAFLogo

vcsharp
  • vcsharp
  • 88.4% (Honored)
  • YAF Commander Topic Starter
6 years ago
I want to create another theme for mobile devices, in addition to YAFMobile. So, in theme drop down for mobile two themes would display and I could select one of the two available mobile themes.

I can copy the YAFMobile folder to the new theme folder and change theme.css for my new theme. That part I understand.

Question

How do I make my new theme appear in mobile themes drop down?

Sponsor
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
6 years ago
You need to create a new XML file for your theme. Look at the yafmobile.xml file.
vcsharp
  • vcsharp
  • 88.4% (Honored)
  • YAF Commander Topic Starter
6 years ago

You need to create a new XML file for your theme. Look at the yafmobile.xml file.

Originally Posted by: tha_watcha 

Ok. Thanks.

How will the drop down for mobile themes know that the new theme is a mobile theme? I mean the drop down at Admin > Settings > Board Settings > Mobile Theme.

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
6 years ago

You need to create a new XML file for your theme. Look at the yafmobile.xml file.

Originally Posted by: vcsharp 

Ok. Thanks.

How will the drop down for mobile themes know that the new theme is a mobile theme? I mean the drop down at Admin > Settings > Board Settings > Mobile Theme.

Originally Posted by: tha_watcha 

Restart the application and your new theme should show up in the list.

vcsharp
  • vcsharp
  • 88.4% (Honored)
  • YAF Commander Topic Starter
6 years ago

You need to create a new XML file for your theme. Look at the yafmobile.xml file.

Originally Posted by: tha_watcha 

Ok. Thanks.

How will the drop down for mobile themes know that the new theme is a mobile theme? I mean the drop down at Admin > Settings > Board Settings > Mobile Theme.

Originally Posted by: vcsharp 

Restart the application and your new theme should show up in the list.

Originally Posted by: tha_watcha 

Great. It works now. Thanks for your quick answer.