• Resolved vanBersie

    (@vanbersie)


    Hi there! Great plugin so far but I got one problem:

    I’m using the plugin along with the wpml plugin. My site is bilingual and I want to add subscribers to an english subscriber list if the english flag was clicked or by default and add users to a separate list if the other language was chosen. Is this possible? If yes – how?

    I guess the css-language-filter could do the trick. I could hide the other languages sign up shortcode if the site is shown in english and hide the english if the other language is chosen. Two different list ids. But that would be quick and dirty I guess. So is there a more elegant working solution for that problem already?

    Regards

    https://www.ads-software.com/plugins/sendpress/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author itdoug

    (@itdoug)

    Your way actually sounds pretty cool. We don’t have anyway to automatically switch which list is displayed. If it was a different page then you could use a different short code and/or widget. you could also display both checkboxes so they could decide which list to sign up for. That’s all we have for options at this time anyway. Let us know how it goes. If you come up with something great perhaps we can write it up for other people.

    Thread Starter vanBersie

    (@vanbersie)

    Thx for your answer! Actually I just added a hidden lightbox div which fades in when clicking a link to the anchor in the menu (feature of the flatsome woocommerce theme). Depending on the chosen language the user subscribes to the correct list. This is the code:

    [lightbox id="newsletter-signup-link" width="600px" padding="20px"]
    
    [ux_banner  bg="https://imageurl" height="400px" link="" animation="fadeInLeft" text_align="left" text_pos="left top" text_color="dark" text_width="40%"]
    <h3>Signup for Newsletter</h3>
    ____
    <span class="nl-en">[sp-signup listids='2180']</span>
    <span class="nl-de">[sp-signup listids='2194']
    </span>
    
    [/ux_banner]
    
    [/lightbox]

    CSS:

    .nl-en:lang(de) {
        display: none;
    }
    
    .nl-de:lang(en) {
        display: none;
    }

    Plugin Author itdoug

    (@itdoug)

    That looks really cool! I will share that with the developers.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to get sendpress newsletters to work in wplm multilingual site?’ is closed to new replies.