I try to add a custom link with ACF plugin… The modified php file with my ACF fields inside is finished but Im not able to override the original module.
`
function override_parent() {
remove_shortcode( ‘et_pb_fullwidth_portfolio’, ‘et_pb_fullwidth_portfolio’ );
add_shortcode( ‘et_pb_fullwidth_portfolio’, ‘et_pb_fullwidth_portfolio_custom’ );
}
add_action(‘after_setup_theme’,’override_parent’);
// Replacing the existing filterable portfolio with new customised version
function et_pb_fullwidth_portfolio_custom() {
get_template_part( 'custom-modules/FilterablePortfolio' );
$wph = new Custom_ET_Builder_Module_Filterable_Portfolio();
}
add_action( ‘wp’, ‘et_pb_fullwidth_portfolio_custom’, 99 );`
In my child theme i add a file with modified module.
Can anyone help?