Skip to:
Content

Opened 2 years ago

Closed 2 years ago

#3881 closed defect (bug) (worksforme)

Add a check under the Settings menu to disable responsive CSS

Reported by: modemlooper Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: UX/UI Keywords:
Cc:

Description

Title says it all, responsive CSS breaks down when you star creating a child theme.

Change History (2)

comment:1 modemlooper2 years ago

  • Type changed from enhancement to defect (bug)

Just saw - current_theme_supports( 'bp-default-responsive' )

I guess this is a bug because it's not working and adding the responsive CSS. I tried remove_theme_support but it did nothing

comment:2 boonebgorges2 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to worksforme
  • Status changed from new to closed

remove_theme_support( 'bp-default-responsive' ) works fine, as long as you are sure to call it *after* bp-default registers theme support (after_setup_theme, 10) and *before* the stylesheet is enqueued (wp_enqueue_styles, 10). For instance, the following works:

function bbg_enqueue_styles() {
	remove_theme_support( 'bp-default-responsive' );
}
add_action( 'wp_enqueue_scripts', 'bbg_enqueue_styles', 5 );
Note: See TracTickets for help on using tickets.