WordPress.org

Ready to get started?Download WordPress

Forums

Polylang
Translate homepage Arcade theme URGENT (4 posts)

  1. mariajcrgomes
    Member
    Posted 4 months ago #

    Hi,

    Can anyone help me? I'm using the theme Arcade from bavotasan.com, and I didn't had any problem translating everything with Polylang plugin in this theme, except for the homepage.

    How do I translate the Jumbo Headline, the "see more" botton and "from the blog"?

    This is urgent, I'm delaying a lot of things just because of this problem. Someone give me a solution.

    https://wordpress.org/plugins/polylang/

  2. mariajcrgomes
    Member
    Posted 4 months ago #

    This is the answer of the theme author I'm using:

    Both "From the Blog" and "See More" should be translatable through the .PO language file. Since the Jumbo Headline is live text, you will have to use a plugin that offers some sort of tag to use on live text.

    How do translate the live text?

  3. sit441
    Member
    Posted 4 months ago #

    Hi,

    For translating text in php I use this:

    <?php
                            $currentlang = get_bloginfo('language');
                            if($currentlang=="en-US"):
                        ?>
                    		<h2>ENGLISH TXT</h2>
                        <?php else: ?>
                    		<h2>OTHER LANGUAGE</h2>
                        <?php endif; ?>

    Maybe it will help you solve the problem!

  4. mariajcrgomes
    Member
    Posted 4 months ago #

    First of all thank you :) I'm not an expert on this, could you tell me where do I put that?
    Thank you

Reply

You must log in to post.

About this Plugin

About this Topic