• Resolved ahordii

    (@ahordii)


    Hello there!

    Thank you for your plugin, it works really nice!
    The only problem I have – I don’t need the buttons to translate in my instapage landings.
    The translation appears on each on the bottom of the page http://prntscr.com/t1cpnd.

    Can I somehow remove it from there? URL exclude will not really help me, because I have a lot of them, and there is no rule in the URL to use some regex or smth.
    Exclude blocks from translation – only stop translation, but the weglot options still appear on the bottom of the page.

    CSS override will not work, because the stylings are not tightened to these type of pages(you can also see this from stylings, or just investigate the page code).

    Any suggestions on how to remove the translations from instapages?
    Thanks in advance!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Contributor Julien MA Jacob

    (@wpr0ck)

    Hello @ahordii,

    If you can identify your instapage pages with a condition in PHP, then you can use this filter to not display the language selector by returning an empty string.

    
    add_filter( 'weglot_button_html', 'custom_weglot_button_html', 10, 2 );
    function custom_weglot_button_html( $button_html, $add_class ) {
    
    	if ( true ) { // Instapage condition 
    		return '';
    	} 
    
    	return $button_html;
    }
    

    I hope this solves your need. Let me know if I have problems with this solution.
    Best regards,

Viewing 1 replies (of 1 total)

The topic ‘Integration with Instapage’ is closed to new replies.