How to change X close in hustle?

Can I change the blue "X" to close out popups? Can I change color and make is say "Continue to site >"?

We tried some jquery/css solutions but no results.

Also wen we try add css:
.i-close::after { content: "Continue to site >";}
code works but add some strange signs.

Thank you

  • Predrag Dubajic

    Hey Paul,

    Hope you're doing well :slight_smile:

    Below is a small code snipped with jquery to replace the text and also some styling that you can change in order to adjust font size and color.
    You can place this code in your child theme functions.php file or as a mu-plugin:

    function change_text_hustle_close() { ?>
    
    	<script type="text/javascript">
    		jQuery( document ).ready(function() {
    		    jQuery('.inc-opt-close-btn').text('Continue to site >');
    		});
    	</script>
    
    	<style type="text/css">
    		body .inc_optin a.inc-opt-close-btn {
    		    width: 200px;
    		    font-size: 15px;
    		    color: #fff;
    		}
    	</style>
    
    <?php }
    add_action( 'wp_footer', 'change_text_hustle_close');

    Let us know if that's what you wanted to do.

    Best regards,
    Predrag