• Resolved albertsweb

    (@albertsweb)


    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

    • This topic was modified 3 years, 6 months ago by albertsweb.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator t-p

    (@t-p)

    Since you use a commercial theme and need support, please go to their official support channel. In order to be good stewards of the WordPress community, and encourage innovation and progress, we feel it’s important to direct people to those official locations: https://flythemes.net/wordpress-themes/travel-wordpress-theme/

    Forum volunteers are also not given access to commercial products, so they would not know why your commercial theme or plugin is not working properly. This is one other reason why volunteers forward you to the commercial product’s vendors. The vendors are responsible for supporting their commercial product. Commercial products are not supported in these forums.

    Thread Starter albertsweb

    (@albertsweb)

    Thank you

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.