Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
  • KimVinberg
    Post count: 1

    I tried to overwrite a shortcode, but the code above didnt work. i managed to get it working by doing this:

    add_action( ‘init’, ‘remove_my_shortcodes’,20 );
    function remove_my_shortcodes() {
    remove_shortcode( ‘fusion_portfolio’ );
    require ‘inc/fusion-portfolio.php’; // this is my custom portfolio

    And inside my custom portfolio i changed the name: from:
    class FusionSC_Portfolio to class FusionSC_Portfolio_custom

    the 3 places it was used. now its overwriting it

Viewing 1 post (of 1 total)