helpful_themes

This filter allows you to register new themes within Helpful. The important thing is that you still have to provide the CSS for it. Once your theme is selected by Helpful, no more CSS is provided by Helpful and you can use your own.

The stylesheet URL of your theme specified in the filter will be used by Helpful to enqueue the stylesheet.

/**
 * Here you can add your own themes to Helpful.
 *
 * @param array $themes
 * @return array
 */
add_filter('helpful_themes', function (array $themes) {
    $themes[] = [
        'id' => 'custom',
        'label' => __('Custom', 'textdomain'),
        'stylesheet' => 'STYLESHEET_URL',
    ];

    return $themes;
});

Was this post helpful?

Top