• Resolved cgllc

    (@mfulham)


    Hello,

    I understand that CodeSnippets plugin adds code to the functions.php file. Is there a way to add some snippets to functions.php, some snippets to header.php, and some to footer.php?

Viewing 1 replies (of 1 total)
  • Plugin Author Shea Bunge

    (@bungeshea)

    Hi @mfulham,

    Code Snippets doesn’t actually add code to functions.php, it just runs the code as if it was in functions.php.

    You can simulate adding code to a different file using the appropriate action hooks, like wp_head and wp_footer.

Viewing 1 replies (of 1 total)
  • The topic ‘adding to header.php or footer.php’ is closed to new replies.