WordPress.org

Ready to get started?Download WordPress

Forums

Polylang
Changing language of intro paragraph (7 posts)

  1. StefanusBekker
    Member
    Posted 1 year ago #

    I have a problem changing my intro paragraph that came with the theme I bought.

    Is there any way of adding an option to change the intro page to a different language?

    Is there a polylang shortcode to apply to a certain section of a page?

    Thanks for anybody's comment...

    Oh, and the website's name is http://www.redsimonsays.com. You will see the intro paragraph underneath the slider.

    http://wordpress.org/extend/plugins/polylang/

  2. Chouby
    Member
    Plugin Author

    Posted 1 year ago #

    How do you set the content of this intro paragraph?

  3. alexandermp
    Member
    Posted 1 year ago #

    I have the same problem! What can we do ?

  4. Chouby
    Member
    Plugin Author

    Posted 1 year ago #

    My answer is the same question: How do you set the content of this intro paragraph?

  5. alexandermp
    Member
    Posted 1 year ago #

    I don't understand the question my friend. I m not pro in wordpress. I have a site http://mgschakt.se/ and you can see in the homepage, i have 4 little paragraphs

    1)ασδαδασδα
    2)Κατασκευή κήπων
    3)Χλοοτάπητας
    4)Συντήρηση κήπου

    So i would like to translate this text to Swedish, but i have no idea. :/

  6. alexandermp
    Member
    Posted 1 year ago #

    I found the codes of the 4 paragraphs. what should i change to have a different text for English(en_US) and different for Swedish ?

    <!--begin cols content -->
    <div class="container clearfix">
    <div class="one-half">
    <img src="<?php echo of_get_option('sc_homecontent1img') ?>" class="img-align-left" alt="<?php echo of_get_option('sc_homecontent1title') ?>" />
    <h3><?php echo of_get_option('sc_homecontent1title') ?></h3>
    <p><?php echo of_get_option('sc_homecontent1') ?></p>
    </div>

    <div class="one-half last">
    <img src="<?php echo of_get_option('sc_homecontent2img') ?>" class="img-align-left" alt="<?php echo of_get_option('sc_homecontent2title') ?>" />
    <h3><?php echo of_get_option('sc_homecontent2title') ?></h3>
    <p><?php echo of_get_option('sc_homecontent2') ?></p>
    </div>
    </div>

    <div class="container clearfix">
    <div class="one-half">
    <img src="<?php echo of_get_option('sc_homecontent3img') ?>" class="img-align-left" alt="<?php echo of_get_option('sc_homecontent3title') ?>" />
    <h3><?php echo of_get_option('sc_homecontent3title') ?></h3>
    <p><?php echo of_get_option('sc_homecontent3') ?></p>
    </div>

    <div class="one-half last">
    <img src="<?php echo of_get_option('sc_homecontent4img') ?>" class="img-align-left" alt="<?php echo of_get_option('sc_homecontent4title') ?>" />
    <h3><?php echo of_get_option('sc_homecontent4title') ?></h3>
    <p><?php echo of_get_option('sc_homecontent4') ?></p>
    </div>

    <div class="horizontal-line"> </div>

    </div>

    <!-- end cols content -->

  7. alexandermp
    Member
    Posted 1 year ago #

    Well i actually solve it! i used this code!

    <?php
    $currentlang = get_bloginfo('language');
    if($currentlang=="en-US"):
    ?>
    <div>Content in English</div>
    <?php else: ?>
    <div>Content in Spanish (or other language)</div>
    <?php endif; ?>

    We can close this as solved :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags