Quantcast
Channel: polylang – WordPress.org Forums
Viewing all articles
Browse latest Browse all 11471

Chrystl on "[Plugin: Polylang] Front page links take me to default language"

$
0
0

Try the code below. I hardcoded the "About me" to avoid you to use a localization plugin.

/* COMPANY ADDRESS */
		if( !empty($zerif_address) ):
			echo '<div class="'.$footer_class.' company-details">';
				echo '<div class="icon-top red-text">';
					if( !empty($zerif_address_icon) ) ?>
						<a href="<?php echo get_permalink( pll_get_post(722) ); ?>"><?php
							if ( 'en_US' == get_locale() )
								echo 'About me';
							else
								echo 'About me in Finnish'; ?>
						</a> <?php
				echo '</div>';
				echo $zerif_address;
			echo '</div>';
		endif;

Viewing all articles
Browse latest Browse all 11471

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>