• Resolved Augusto Gentile

    (@agugentile)


    Hi everyone,

    I’m currently working with the Tutor LMS plugin and I’m trying to target certain pages to hide the sidebar switcher. The challenge I’m facing is that these pages don’t have specific IDs.

    Can anyone guide me on how to obtain the IDs, taxonomy, or templates for these pages and then hide them?

    When I inspect the page, I see this class:

    courses-template-default single single-courses postid-93 logged-in admin-bar custom-background theme-Divi et-tb-has-template et-tb-has-footer tutor-lms tutor-frontend woocommerce-js et_button_no_icon et_pb_button_helper_class et_fullwidth_nav et_fixed_nav et_show_nav et_primary_nav_dropdown_animation_fade et_secondary_nav_dropdown_animation_fade et_header_style_left et_cover_background et_pb_gutter osx et_pb_gutters3 et_right_sidebar et_divi_theme et-db customize-support sticky-menu chrome woocommerce-multi-currency-ARS

    Now, I want to achieve the following:

    !is_page(array(166, 193, 164, 46, 78, 159)) || !is_singular('single-courses')

    Can someone help me figure out how to achieve this?

    Thanks in advance!

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘WP Conditional To Hide Sidebar’ is closed to new replies.