Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product

In this Discussion

How to add a description to theme options?

jeongweejeongwee Vanilla version 2.6 ✭✭
edited July 26 in Development

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 27
Sign In or Register to comment.