WordPress.org

Forums

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

  1. MariaWeb
    Member
    Posted 2 years 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 2 years 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>

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Polylang
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic