• Hi, I am trying to use shome shortcode in a child theme I have created. but it will not show up. When I change back to the default them it works so clearly it’s the child theme. What have I missed? Cheers

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    Wondering if this also happens with all other plugins deactivated. Have you tried deactivating all but that shortcode plugin?

    what shortcode exactly are you trying, and what theme are you using?

    Thread Starter eckul

    (@eckul)

    Hi guys, I am using wp social stream. I have tried deactivating all the plugins but it doesn’t work unless I change back to the Twenty fourteen theme. The shortcode I am using is [wp_social_stream] and the theme is a custom child theme I have created based on twenty fourteen. I’ll ask for support from the plug in maker also. Any ideas?

    are you adding or removing any filters in functions.php of the child theme?

    Thread Starter eckul

    (@eckul)

    Hi, All I have in my child fucntions.php is below. I should mention that all the css and js for the plugin is loading on the page but it just wont pull in the information with the shortcode. Very weird.

    <?php
    
    add_action( 'wp_enqueue_scripts', 'enqueue_child_theme_styles', PHP_INT_MAX);
    function enqueue_child_theme_styles() {
        wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' );
        wp_enqueue_style( 'child-style', get_stylesheet_uri(), array('parent-style')  );
    }
    
    add_filter( 'template_include', 'var_template_include', 1000 );
    function var_template_include( $t ){
        $GLOBALS['current_theme_template'] = basename($t);
        return $t;
    }
    
    function get_current_template( $echo = false ) {
        if( !isset( $GLOBALS['current_theme_template'] ) )
            return false;
        if( $echo )
            echo $GLOBALS['current_theme_template'];
        else
            return $GLOBALS['current_theme_template'];
    }
    Thread Starter eckul

    (@eckul)

    Acutally, just had a though, this may just be becuase of a Jquery conflict, I’ll check it out and get back to you. Cheers

    Thread Starter eckul

    (@eckul)

    There is a jquery problem, but that is only because the function can’t be found. Damn, back to the drawing board for me.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Shortcode not working on child theme’ is closed to new replies.