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

    Hi,
    how can I change the text which shows while page reloading after acceptance the cookie selections?
    (Reloading the page – To reflect your cookie selections we need to reload the page)

    Thanks and Regards

    John

    #1148373

    Hi John,

    You can replace it in wp-content > themes > enfold > includes > helper-privacy.php (line 1509, enfold 4.6.3):

    $reload .=			__( 'To reflect your cookie selections we need to reload the page.', 'avia_framework' );

    just replace the text.

    Best regards,
    Nikko

    #1162519

    Good morning
    Is there a way to do this update safe? I need to – at least – translate those text.
    Thanks
    BR, Jay

    #1162600

    Hi,

    You can translate the string using – https://wordpress.org/plugins/loco-translate/

    To change the text, please add following code to bottom of Functions.php file of your child theme in Appearance > Editor

    add_filter('avf_auto_reload_message','avf_auto_reload_message_new');
    function avf_auto_reload_message_new(){
    	$reload  =	'<div class="av-cookie-auto-reload-container">';
    	$reload .=		'<h2>' . __( 'Reloading the page', 'avia_framework' ) . '</h2>';
    	$reload .=		'<p>';
    	$reload .=			__( 'New reload text goes here', 'avia_framework' );
    	$reload .=		'</p>';
    	$reload .=	'</div>';
    	return $reload;		
    }

    Regards,
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.