Embed Snippet on Your Site
MemberPress: Code Blocks Pro – Load All Currently Enqueued Styles In the Courses ReadyLaunch Template
By default, if the ReadyLaunch Courses/Lessons template is enabled, the MemberPress Courses add-on won’t enqueue 3rd-party styles.
This code snippet will load the Code Blocks Pro plugin stylesheets files in Courses, Lessons, and Quizzes with the ReadyLaunch template.
The code should be modified by replacing the domain in all three of the stylesheet location URLs. The dummy domain (yourdomain.com) should be replaced with the actual website domain on these lines:
wp_enqueue_style( 'code-block', 'https://yourdomain.com/wp-content/plugins/code-block-pro/src/front/style.css', [], '1.0.0', 'all' );
wp_enqueue_style( 'code-block-font', 'https://yourdomain.com/wp-content/plugins/code-block-pro/build/fonts/Code-Pro-JetBrains-Mono-NL.ttf', [], '1.0.0', 'all' );
wp_enqueue_style( 'code-block-css', 'https://yourdomain.com/wp-content/plugins/code-block-pro/build/style-index.css', [], '1.0.0', 'all' );
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
Comments