Skip to content

Instantly share code, notes, and snippets.

@anestan
Created October 10, 2015 06:04
Show Gist options
  • Save anestan/724718fb37de576b30e8 to your computer and use it in GitHub Desktop.
Save anestan/724718fb37de576b30e8 to your computer and use it in GitHub Desktop.
icelock - modify homepage with polylang
<!-- PORTFOLIO SECTION -->
<h2>
<?php
if ( function_exists('pll_register_string') ) {
echo pll__(get_theme_mod('icelock_title_portfolio_section'));
} else {
echo get_theme_mod('icelock_title_portfolio_section');
}
?>
</h2>
<!-- TEAM SECTION -->
<h2>
<?php
if ( function_exists('pll_register_string') ) {
echo pll__(get_theme_mod('icelock_title_team_section'));
} else {
echo get_theme_mod('icelock_title_team_section');
}
?>
</h2>
<!-- TEAM SECTION -->
<h2>
<?php
if ( function_exists('pll_register_string') ) {
echo pll__(get_theme_mod('icelock_title_recent_post_section'));
} else {
echo get_theme_mod('icelock_title_recent_post_section');
}
?>
</h2>
<!-- TESTIMONIAL SECTION -->
<h2>
<?php
if ( function_exists('pll_register_string') ) {
echo pll__(get_theme_mod('icelock_title_testimonials_section'));
} else {
echo get_theme_mod('icelock_title_testimonials_section');
}
?>
</h2>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment