WordPress.org

Ready to get started?Download WordPress

Forums

Polylang
[resolved] colorway-frontpage.php, want two languages (2 posts)

  1. MariaWeb
    Member
    Posted 10 months ago #

    frontpage has a custom php and it displays the same in both icelandic and english. that might comfuse some people so i want to have it diffrent in each but i don't know how.
    help appreciated :)

    website

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

  2. MariaWeb
    Member
    Posted 10 months ago #

    <div class="content-info">
                <h2>
                    <center>
    <?php
    $currentlang = get_bloginfo('language');
    if($currentlang=="is-IS"):
    ?>
    <div><?php echo inkthemes_get_option('inkthemes_mainheading'); ?></div>
    <?php else: ?>
    <div><?php _e('english'); ?></div>
    <?php endif; ?>
                    </center>
                </h2>
            </div>

Reply

You must log in to post.

About this Plugin

About this Topic