How to use a parent theme’s custom post types and shortcodes
-
Hello WordPress Community,
I installed a child theme and it is working properly for CSS. However, I am not able to re-use the custom post types or shortcodes that are included in the parent theme Travern-Pro. My child theme’s functions.php is below:
<?php function childtheme_enqueue_styles() { wp_enqueue_style('parent-theme', get_template_directory_uri() .'/style.css'); wp_enqueue_style('child-theme', get_stylesheet_directory_uri() .'/style.css', array('parent-theme')); } add_action( 'wp_enqueue_scripts', 'childtheme_enqueue_styles', 999 ); ?>
Any help or advice is greatly appreciated.
Thank you
The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to use a parent theme’s custom post types and shortcodes’ is closed to new replies.