워드프레스  functions.php 파일에  스크립트 추가하기

add_action('wp_head', 'my_wp_head');
function my_wp_head()
{
?>
    <script src="/wp-content/themes/enfold-child/js/scrolloverflow.min.js"></script>
    <script src="/wp-content/themes/enfold-child/js/jquery.easings.min.js"></script>
    <link rel="stylesheet" href="/wp-content/themes/enfold-child/js/jquery.fullPage.css">
    <script src="/wp-content/themes/enfold-child/js/jquery.fullPage.js"></script>
    <script src="/wp-content/themes/enfold-child/js/jquery.simplr.smoothscroll.min.js"></script>
    <script type="text/javascript">
        (function($) {
            $(document).ready(function() {
                if ($(window).width() < 767) {
                    $('.section').removeClass('el_after_av_fullscreen');
                } else {

                    $("#footer-page").addClass("section");
                    $(".section").addClass("fp-auto-height");

                    $('#main').fullpage({
                        'verticalCentered': true,
                        'navigation': true,
                        'navigationPosition': 'right',
                        'scrollBar': true,
                        'scrollOverflow': true,
                        'scrollOverflowReset': false,
                        'scrollOverflowOptions': null,
                        'easing': 'easeOutQuint',
                        // 'easingcss3': 'ease',
                        'scrollingSpeed': 500,
                        'fitToSection': true,
                        // 'responsiveHeight': true,
                        'responsiveWidth': 767,
                        'afterResize': function(widht, height) {

                        }
                    });
                }
            });

            $(document).ready(function() {
                let shrinkHeader = 50;
                $(window).scroll(function() {
                    let scroll = getCurrentScroll();
                    if (scroll >= shrinkHeader) {
                        $('.container.av-logo-container').addClass('hidden_logo');
                        $('#header_meta').addClass('hidden_meta');
                    } else {
                        $('.container.av-logo-container').removeClass('hidden_logo');
                        $('#header_meta').removeClass('hidden_meta');
                    }
                });

                function getCurrentScroll() {
                    return window.pageYOffset || document.documentElement.scrollTop;
                }
            });

        })(jQuery);
    </script>
<?php
};