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

After February 6, this site will no longer have Facebook, Twitter, or OpenID sign-in options. Read our announcement about social media SSO support in 2.8 for more info.

Make sure you have a current, valid email address set in your profile and set a password so you can login without it. If you get locked out after that time, you can choose "Forgot Password" to fix it as long as a valid email is on your account.

How to add a description to theme options?

jeongweejeongwee Vanilla version 2.6 ✭✭
edited July 2018 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 2018
Sign In or Register to comment.