Users running a non-download version of Vanilla (pulled from github), on branch release/2019.016 or master from the last 2 weeks should upgrade to release/2019.017 or latest master for security reasons. Downloaded official open sources releases are not affected.

How to add a description to theme options?

jeongweejeongwee Vanilla version 2.6 ✭✭

I know i can use "Text" to add title and description, but it must include a textbox or textarea.

Like the picture , if i leave the "Type" empty, it will add a textarea automaticly.

How can i add a description without adding a textarea or textbox to theme options? Nothing but only a description area.

Comments

  • R_JR_J Cheerleader & Troubleshooter Munich Moderator

    Simply add a Description to the options! ;)

    $ThemeInfo['jeongwee'] = [
        ...
        'Options' => [
            'Description' => 'If you like this theme, please consider giving me all your money',
            'Styles' => [
                'day'   => '%s_light',
                'night'   => '%s_dark'
            ],
            'Text' => [
                'FunnyQuote' => [
                    'Description' => 'Some text which will be displayed somewhere',
                    'Type' => 'textbox'
                ]
            ]
        ]
    ];
    


    jeongwee
  • jeongweejeongwee Vanilla version 2.6 ✭✭
    edited July 2018

    Thank you =)@R_J

Sign In or Register to comment.