YAFLogo

Posted by: vcsharp - Tuesday, 3 October 2017 05:46:32
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. [b]Question[/b] How do I make my new theme appear in mobile themes drop down?

Posted by: tha_watcha - Tuesday, 3 October 2017 05:55:11
You need to create a new XML file for your theme. Look at the yafmobile.xml file.

Posted by: vcsharp - Tuesday, 3 October 2017 08:02:23
[quote=tha_watcha;70680]You need to create a new XML file for your theme. Look at the yafmobile.xml file.[/quote] 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.

Posted by: tha_watcha - Tuesday, 3 October 2017 16:35:11
[quote=vcsharp;70682][quote=tha_watcha;70680]You need to create a new XML file for your theme. Look at the yafmobile.xml file.[/quote] 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. [/quote] Restart the application and your new theme should show up in the list.

Posted by: vcsharp - Tuesday, 3 October 2017 19:50:16
[quote=tha_watcha;70686][quote=vcsharp;70682][quote=tha_watcha;70680]You need to create a new XML file for your theme. Look at the yafmobile.xml file.[/quote] 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. [/quote] Restart the application and your new theme should show up in the list. [/quote] Great. It works now. Thanks for your quick answer.