Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function responsive_parent_styles()
- {
- $theme = wp_get_theme( 'responsive' );
- // Register the parent stylesheet
- wp_register_style( 'responsive-parent', get_template_directory_uri() . '/style.css', array(), $theme['Version'], 'all' );
- // Register the parent rtl stylesheet
- if ( is_rtl() ) {
- wp_register_style( 'responsive-parent-rtl', get_template_directory_uri() . '/rtl.css', array(), $theme['Version'], 'all' );
- }
- // Enqueue the style
- wp_enqueue_style( 'responsive-parent' );
- wp_enqueue_style( 'responsive-parent-rtl' );
- }
- add_action( 'wp_enqueue_scripts', 'responsive_parent_styles' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement