Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Why is custom mobile theme not showing on dashboard.

Just upgraded to vanilla version 2.2 and custom mobile theme is showing on mobile device.
However, custom mobile theme does not show on dashboard - Appearance - Mobile Themes.
How can I make the custom mobile theme show on dashboard - Appearance - Mobile Themes?

Tagged:

Best Answer

  • peregrineperegrine MVP
    edited November 2015 Answer ✓

    'AuthorUrl' => 'http://www.my-site.com'

    should be

    'AuthorUrl' => 'http://www.my-site.com',

    every field in the array needs a comma after it, except the last one

    if you omit a comma it stops reading the rest of the info.

    ,

    make sure your theme is in the prospermobile folder as well

    themes/prospermobile

    $ThemeInfo['prospermobile'] = array(
    'Name' => 'Prosper Mobile',
    'Description' => "A refined design for mobile browsers",
    'Version' => '1.0.0',
    'Author' => "Prosper",
    'AuthorEmail' => 'info@my-site.com',
    'AuthorUrl' => 'http://www.my-site.com',
    'IsMobile' => true
    );
    

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

Answers

  • You need to add the IsMobile flag to your theme's info array in about.php file to show up in the dashboard.

    'IsMobile' => true
    

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

  • peregrineperegrine MVP
    edited November 2015

    @prosper said: How can I make the custom mobile theme show on dashboard - Appearance - Mobile Themes?

    edit the about.php of your custom mobile theme.

    look in the $ThemeInfo array

    add

       'IsMobile' => true
    

    e.g.

    $ThemeInfo['prospermobile'] = array(
       'Name' => 'Prosper Mobile',
       'Description' => "Proper's mobile theme,
       'Version' => '1.0',
       'Author' => "Prosper",
       'IsMobile' => true
    );
    

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • ProsperProsper ✭✭
    edited November 2015

    @hgtonight and @peregrine
    I have added 'IsMobile' => true but custom theme did not show up on dashboard.
    Is there any other modification I need to make. The custom theme was cloned from default mobile theme on later vanilla version.

  • peregrineperegrine MVP
    edited November 2015

    refresh your browser and it should work

    otherwise. post your about.php

    you know how informative that is
    :):):):):):):):):):):):):):):):):):):):):):):):):):):):):):):):):):):)
    :):):):):):):):):):):):):)later vanilla version :):):):):):):) :):):):):):):):):):):):):):):):):):):):):):):):):):):):):):):):):):):):):):):):):):):):):winky::winky::winky:

    later latest current - only the number counts. since everything is relative.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • I have refresh browser and even used a different browser but custom theme did not show on dashboard.
    By later vanilla version I mean maybe version older than version 2.1.11. but not too old. I am not sure the particular version.
    But About.php says
    <?php if (!defined('APPLICATION')) exit(); /* Copyright 2008, 2009 Mark O'Sullivan This file is part of Garden. Garden is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Garden is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Garden. If not, see <http://www.gnu.org/licenses/>. Contact Mark O'Sullivan at mark [at] lussumo [dot] com */

  • peregrineperegrine MVP
    edited November 2015

    well you posted everything but the themeinfo array, which is what I want to see.

    all you posted was a comment!

    re-read

    http://vanillaforums.org/discussion/comment/235639/#Comment_235639

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • @peregrine , here it is;
    `<?php if (!defined('APPLICATION')) exit();
    /*
    Copyright 2008, 2009 Mark O'Sullivan
    This file is part of Garden.
    Garden is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
    Garden is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
    You should have received a copy of the GNU General Public License along with Garden. If not, see http://www.gnu.org/licenses/.
    Contact Mark O'Sullivan at mark [at] lussumo [dot] com
    */

    /**
    * An associative array of information about this application.
    */
    $ThemeInfo['prospermobile'] = array(
    'Name' => 'Prosper Mobile',
    'Description' => "A refined design for mobile browsers",
    'Version' => '1.0.0',
    'Author' => "Prosper",
    'AuthorEmail' => 'info@my-site.com',
    'AuthorUrl' => 'http://www.my-site.com'
    'IsMobile' => true
    );
    `

  • peregrineperegrine MVP
    edited November 2015 Answer ✓

    'AuthorUrl' => 'http://www.my-site.com'

    should be

    'AuthorUrl' => 'http://www.my-site.com',

    every field in the array needs a comma after it, except the last one

    if you omit a comma it stops reading the rest of the info.

    ,

    make sure your theme is in the prospermobile folder as well

    themes/prospermobile

    $ThemeInfo['prospermobile'] = array(
    'Name' => 'Prosper Mobile',
    'Description' => "A refined design for mobile browsers",
    'Version' => '1.0.0',
    'Author' => "Prosper",
    'AuthorEmail' => 'info@my-site.com',
    'AuthorUrl' => 'http://www.my-site.com',
    'IsMobile' => true
    );
    

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Thank you @peregrine. It worked now. The problem was the comma.

Sign In or Register to comment.