Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Remove Parent theme Shortcodes in Child theme Wordpress

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 183
    Comment on it

    Hello Everyone, I am here to discuss about "Remove Parent theme Shortcodes in Child theme Wordpress".

    You can just copied mine code and put into child theme functions.php file

    function remove-parent-theme-shortcode() {
        remove-shortcode( 'map' );
        add-shortcode( 'map', 'child-shortcode-map' );
    }
    
    function child-shortcode-map( $atts ) {
        // write your shortcode that overwrites the parent theme shortcode
    }
    

    To identify registered shortcodes, you can search the parent theme code for add_shortcode() function.

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: