Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #282737

    Hello,

    I love how easy you have made it to add or change schema.org markup through the helper-markup.php file. I have made some changes/additions to this file that along with some changes/additions to shortcodes work great for what I need.

    What code should I add in the child theme’s function.php so I can add the helper-markup.php file to the child theme to assure that changes will not be lost after theme updates? I have already added the required code to include child theme support for shortcode changes (thanks to Peter’s child theme files) so I just need a similar code to include child theme support for the helper-markup.php file.

    Thank you,
    George

    #282744

    Hey George!

    Have you tried duplicating the file with the same structure (includes/helper-markup.php) on your child theme folder?

    Cheers!
    Josue

    #282762

    Hi Josue,

    Thank you for the reply! Yes I have, but besides that don’t I also need some kind of function code in the child theme’s functions.php file to call the helper-markup.php file from the child’s folder instead of the main enfold folder? Something similar to the code that Peter uses to call the shortcodes within the (shortcodes/) child theme folder?

    Thank you,
    George

    #282775

    I added this line of code require_once( ‘includes/helper-markup.php’ ); in the child theme’s function.php file and it seems to work as needed. Is it this though the correct way to do it or is there a most proper way?

    Thank you,
    George

    #282776

    Yes, that is perfectly fine George.

    Best regards,
    Josue

    #282777

    Great! Thank you very much Josue!

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘helper-markup.php on child theme level’ is closed to new replies.