Support » Theme: Customizr » add another php file

  • I would like to add a php file with my own shortcodes that already exists. How and where (which file) must I embed the code for shortcode.php?

Viewing 1 replies (of 1 total)
  • Hi, you can simply copy your shortcodes.php file at the root of your theme files and use the following code in your functions.php file :

    <?php
    locate_template('shortcodes.php', $load = true, $require_once = true);
    ?>

    Hope this will help, cheers

Viewing 1 replies (of 1 total)
  • The topic ‘add another php file’ is closed to new replies.