In Progresswhat is your sidebar id?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #29907
    plubowicz
    Participant

    Hi,

    What is your sidebar id? I am trying to find the specific sidebar id that would be under register_sidebar call.

    so it would normally look like this

    $defaults = array(
    /* translators: %d: Sidebar number. */
    ‘name’ => sprintf( __( ‘Sidebar %d’ ), $i ),
    ‘id’ => “sidebar-$i”,
    ‘description’ => ”,
    ‘class’ => ”,
    ‘before_widget’ => ‘<li id=”%1$s” class=”widget %2$s”>’,
    ‘after_widget’ => “\n”,
    ‘before_title’ => ‘<h2 class=”widgettitle”>’,
    ‘after_title’ => “</h2>\n”,
    ‘before_sidebar’ => ”,
    ‘after_sidebar’ => ”,

    I am essentially wanting to hide the shop sidebar on some pages.

    Regards,

    Phillip

    #29916
    Alex
    Keymaster

    Hello Phillip,

    The id of the shop sidebar is “shop”.

    Regards,
    Alex

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register