New Landing How can we help? Themeforest Theme Support Dante Overwriting Custom Post Types and Shortcodes in Child Theme

Viewing 3 posts - 1 through 3 (of 3 total)
  • Posted in: Dante
  • #311061
    FoodFuture
    Member

    Hello,

    I am creating a custom child theme based on Dante, and need to edit several of the Swift Framework custom post types (clients-type.php, etc.) and page builder shortcodes (clients.php, etc.). How can I include these updated files in my child theme as to keep them separate from the theme itself?

    Thank you,
    Jessica

    #311132
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    For instance in your example of clients-type.php you can remove our code by removing the action from the hook below
    add_action('init', 'clients_register');

    So in your functions.php of the child theme you should remove that action and add a new one using your custom function that should be a copy of the code inside clients.type.php but with different function names to avoid any conflict.

    remove_action('init', 'clients_register');  
    add_action('init', 'custom_clients_register');  

    Regarding the page builder, I’m not seeing any way to overwrite the code, will check with my head developer.

    -Rui

    #311135
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    just confirmed with the head developer, and with the current structure it’s not possible to overwrite the page builder assets inside a child theme.

    -Rui

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register