This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: Disable results CSS

#38605
theapetheape
Participant

For future reference, normally for myself as I’ve forgotten how something was accomplished and my comments don’t help. This is what I did.

I added this code to a custom plugin that I’m using to modify ASP functionality.

// Hook to prevent the plugin stylesheet (CSS) files loading

add_filter( 'asp_load_css', 'illo_asp_stop_load_css', 10, 1 );

function illo_asp_stop_load_css( $stop ) {
	if (is_page('search')) {
		return true;
	}
}

add_action( 'get_footer', 'illo_asp_custom_css' );

function illo_asp_custom_css() {
    if (is_page('search')) {
		wp_enqueue_style( 'illo_asp_custom_css', get_stylesheet_directory_uri() . '/asp/style.css' );
	}
}

I made a copy of the following file and uploaded it to the asp folder in my child theme.

wp-content/uploads/asp_upload/style.instances-{OPTIONAL_QR_STRING}.css

Then I commented out the following CSS.

Line 2560

/* div.asp_r.asp_r_2, div.asp_r.asp_r_2 *, div.asp_m.asp_m_2, div.asp_m.asp_m_2 *, div.asp_s.asp_s_2, div.asp_s.asp_s_2 * {
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    -ms-box-sizing: content-box;
    -o-box-sizing: content-box;
    box-sizing: content-box;
    border: 0;
    border-radius: 0;
    text-transform: none;
    text-shadow: none;
    box-shadow: none;
    text-decoration: none;
    text-align: left;
    letter-spacing:normal
} */

Line 2584

/* div.asp_r.asp_r_2, div.asp_r.asp_r_2 *, div.asp_m.asp_m_2, div.asp_m.asp_m_2 *, div.asp_s.asp_s_2, div.asp_s.asp_s_2 * {
    padding: 0;
    margin:0
} */

Line 3303

/* #ajaxsearchprores2_1.vertical .resdrg, #ajaxsearchprores2_2.vertical .resdrg, div.asp_r.asp_r_2.vertical .resdrg {
    display: flex;
    flex-wrap:wrap
} */

Obviously the stylesheet I made a copy of is created dynamically from the options chosen in List > Theme & Styling. But generally these were the style that were causing me issues with my specific set up.