
// Ouside the list
(function( $ ) {
    wp.customize.panel( 'freelancer_resume_section_pro_panel', function( panel ) {
        panel.deferred.embedded.done(function() {
            // Create the button
            var button = $('<a class="button freelancer_resume-pro-btn" href="https://www.webnotick.com/products/premium-wordpress-resume-theme/" target="_blank">Go Pro</a>');

            // Append the button to the panel container (outside of accordion-section-title)
            panel.container.append(button);

            // Ensure the button properly redirects
            button.on('click', function(event) {
                event.preventDefault(); // Prevent default behavior
                window.open($(this).attr('href'), $(this).attr('target')); // Redirect to URL
            });
        });
    });
})( jQuery );

