HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

How to add a description to theme options?

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 Admin

    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'
                ]
            ]
        ]
    ];
    
  • jeongweejeongwee ✭✭
    edited July 2018

    Thank you =)@R_J

Sign In or Register to comment.