Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1428360

    Hallo,
    ich habe hier ein Javascript und würde gern wissen, wie ich es in Enfold integrieren kann. Unter Theme editor? In welcher Datei genau?
    beste Grüße

    #1428366

    Hey ausgesonnen,
    Typically you can add your javascript into your child theme functions.php with this function:

    
    function custom_script() { ?>
      <script>
    
    /* your javascript here */
    
      </script>
      <?php
    }
    add_action( 'wp_footer', 'custom_script', 99 );

    If you are not using a child theme I recommend the WPcode plugin this plugin supports PHP code snippets, JavaScript code snippets, & CSS code snippets.

    Best regards,
    Mike

    #1428391

    thanks, I installed the child theme and it worked well. Can be closed now

    #1428417

    Hi,

    Thanks for the update, we’ll close this thread for now then. Please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘java script einsetzen’ is closed to new replies.