• Resolved BakekaIncontritalia

    (@bakekaincontritalia)


    I have this sidebar in my site:

    /*Register Dynamic Sidebars*/
    register_sidebar(
    array(
    ‘name’ => ‘Sidebar’,
    ‘id’ => ‘sidebar’,
    ‘description’ => ”,
    ‘before_widget’ => ‘<li id=”%1$s” class=”widget %2$s”>’,
    ‘after_widget’ => ”,
    ‘before_title’ => ‘<h4 class=”widgettitle”>’,
    ‘after_title’ => ‘</h4>’
    )
    );

    add_theme_support(‘automatic-feed-links’);
    add_theme_support(‘post-thumbnails’);

    but plugin theme check write this:
    REQUIRED: Sidebars need to be registered in a custom function hooked to the widgets_init action. See: register_sidebar().

    RECOMMENDED: No reference to the_post_thumbnail() was found in the theme. It is recommended that the theme implement this functionality instead of using custom fields for thumbnails.

    RECOMMENDED: No reference to add_editor_style() was found in the theme. It is recommended that the theme implement editor styling, so as to make the editor content match the resulting post output in the theme, for a better user experience.

    What I must do?

Viewing 2 replies - 1 through 2 (of 2 total)
  • REQUIRED: Sidebars need to be registered in a custom function hooked to the widgets_init action. See: register_sidebar().

    Surround your sidebar call within a function and add widgets_init e.g.

    function bak_widgets_init() {
         //add register_sidebar posted above ... end before add_theme_support
    }
    add_action( 'widgets_init', 'bak_widgets_init' );

    For more info, see https://codex.www.ads-software.com/Function_Reference/register_sidebar

    RECOMMENDED: No reference to the_post_thumbnail() …

    You have add_theme_support('post-thumbnails'); in your functions.php file but it’s not called in any of your theme’s files. As noted, it is only recommended that you add post thumbnails, so you can delete the line add_theme_support('post-thumbnails');. If you want to add post thumbnails in your theme, however, you keep that in your functions.php file and implement post thumbnails in your theme, see https://codex.www.ads-software.com/Post_Thumbnails where you can find examples.

    RECOMMENDED: No reference to add_editor_style() …

    Again, this is a recommended item, so you can either delete the line or add an editor style for your theme. See https://codex.www.ads-software.com/Function_Reference/add_editor_style

    Thread Starter BakekaIncontritalia

    (@bakekaincontritalia)

    Ok, now is ok. Thz a lot! Vincenzo

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Sidebar’ is closed to new replies.