New Landing How can we help? Cardinal Contact Slideout Page / multilingual (using wpml)

Viewing 13 posts - 1 through 13 (of 13 total)
  • Posted in: Cardinal
  • #142602
    yildirim flugreisen
    Member
    Post count: 58

    Hi,

    I have an issue with the Contact Slideout Page.
    What should I do display it with a different languages when switching the language.

    I am using WPML – when selecting the slideout page in the Header Options (for one of the languages), it sets this as the main slideout page for every language.

    Thanks for your support!

    #142651
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Can you check your site, at the moment you have an error that it seems that the file functions.php is not complete. Try to upload the file again.

    -Rui

    #142815
    yildirim flugreisen
    Member
    Post count: 58

    Did a restore from my backup – the site is working.

    #143120
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    I checked and can only see the German version of the contact slideout page.
    Will have to forward this topic to the development team to see what can be done.

    Let’s wait for the reply.
    Thanks

    -Rui

    #143364
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi yildirim.reisen

    Just double checked the code and the theme is definitely set up to allow for multiple pages to be set here, you just need to check in WPML translation options for “$sf_options[‘contact_slideout_page’]” – it won’t work the same way as having a version of each page, you need to specify the page ID for each language in the WPML translation options.

    Hope that helps.

    – Ed

    #145487
    yildirim flugreisen
    Member
    Post count: 58

    Hi Ed,

    sorry for the late reply – i have tried several things but it don’t work.

    I could not found anything like “$sf_options[‘contact_slideout_page’]” in the WPML options.

    To set (automatically) different page ID’s there is an option in WPML – it is checked.

    Do I overlooked something?

    Thank you!

    #145726
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    I’ll get WPML to check this out – they are currently reviewing the theme for any WPML issues.

    Odd that it’s not showing though, it’s set up correctly from what I can see.

    – Ed

    #158386
    yildirim flugreisen
    Member
    Post count: 58

    Hi Ed,

    can you take a look at the slideout on that link:

    https://www.yildirim.reisen/forums/forum/feedback-vorschlaege/

    When I disable the main WMPL-Plugin everything is fine.

    Thanks
    Hüseyin

    #158691
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi there,

    Have you got a child theme active? Try adding this function to the child theme functions.php –

    if ( ! function_exists( 'sf_contact_slideout' ) ) {
            function sf_contact_slideout() {
    
                global $sf_options;
    
                $contact_slideout_page = __( $sf_options['contact_slideout_page'], 'swiftframework' );
    
                $contact_slideout = "";
    
                $contact_slideout .= '<div id="contact-slideout">';
                $contact_slideout .= '<div class="container">';
                if ( $contact_slideout_page ) {
                    $page    = get_post( $contact_slideout_page );
                    $content = apply_filters( 'the_content', $page->post_content );
                    $contact_slideout .= do_shortcode($content);
                } else {
                    $contact_slideout .= __( "Please select a page for the Contact Slideout in Theme Options > Header Options", "swiftframework" );
                }
                $contact_slideout .= '</div>';
                $contact_slideout .= '</div>';
    
                return $contact_slideout;
            }
        }

    For some reason, it looks like WPML is causing the shortcodes not to get processed.

    – Ed

    #158823
    yildirim flugreisen
    Member
    Post count: 58
    This reply has been marked as private.
    #158864
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    That’s an issue with WPML – you’ll need to take that up with their support team.

    – Ed

    #161848
    yildirim flugreisen
    Member
    Post count: 58

    Hi Ed, thank you for the code!

    Just to let you now..

    This is what came from the WPML support:

    Hello and thank you for contacting WPML support!!

    This issue is already fixed but fix will be made available in next future release of WPML v3.2. Can you please wait a little more and upgrade your WPML plugin when we officially release it. You should keep your eyes on our blog for latest updates.
    => http://wpml.org/blog/

    Thank you for your patience.

    #161854
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Ok great, thanks Ed

Viewing 13 posts - 1 through 13 (of 13 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register