Skip to content

Instantly share code, notes, and snippets.

@anestan
Last active March 10, 2018 00:02
Show Gist options
  • Save anestan/058aae44567913cc3e04 to your computer and use it in GitHub Desktop.
Save anestan/058aae44567913cc3e04 to your computer and use it in GitHub Desktop.
icelock - Use Polylang Plugins for customizer homepage
// check Polylang exist
if ( function_exists('pll_register_string') ) {
$icelock_title_portfolio_section = get_theme_mod('icelock_title_portfolio_section', '');
pll_register_string('Portfolio Section Title', $icelock_title_portfolio_section);
$icelock_title_team_section = get_theme_mod('icelock_title_team_section', '');
pll_register_string('Team Section Title', $icelock_title_team_section);
$icelock_title_recent_post_section = get_theme_mod('icelock_title_recent_post_section', '');
pll_register_string('Recent Post Section Title', $icelock_title_recent_post_section);
$icelock_title_testimonials_section = get_theme_mod('icelock_title_testimonials_section', '');
pll_register_string('Testimonial Section Title', $icelock_title_testimonials_section);
$icelock_footer_message = get_theme_mod('icelock_footer_message', '');
pll_register_string('Footer Content', $icelock_footer_message);
}
@anestan
Copy link
Author

anestan commented Oct 10, 2015

Add this code at child theme’s functions.php

After that replace particular section in homepage.php with this -> link

and replace particular section in footer.php with this -> link

@anestan
Copy link
Author

anestan commented Oct 10, 2015

Preview in Polylang plugin settings

screen shot 2015-10-10 at 1 09 40 pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment