We'll create fresh WordPress site with Pagebreak Description installed. You have 20 minutes to test the plugin after that site we'll be deleted.
/** ==================================================
* Filter for CSS URL.
* Default CSS -> /pagebreak-description/css/custom.css
*/
add_filter(
'pagebreak_description_css',
function() {
/* If you put mydesign.css in wp-content/uploads */
$wp_uploads = wp_upload_dir();
$upload_url = $wp_uploads['baseurl'];
if ( is_ssl() ) {
$upload_url = str_replace( 'http:', 'https:', $upload_url );
}
$upload_url = untrailingslashit( $upload_url );
$url = $upload_url . '/mydesign.css';
return $url;
},
10,
1
);