Giter VIP home page Giter VIP logo

richardevcom / add-polylang-support-for-customizer Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 1.0 65 KB

This plugin adds Polylang support for WordPress Customizer

Home Page: https://wordpress.org/plugins/add-polylang-support-for-customizer

License: GNU General Public License v2.0

JavaScript 10.48% PHP 89.52%
wordpress polylang plugin customizer wordpress-customizer support wordpress-support polylang-support wordpress-polylang-support wordpress-polylang-customizer polylang-customizer

add-polylang-support-for-customizer's Introduction

Not Maintained WordPress Plugin Version WordPress Plugin Downloads PHP compatibility WP compatibility

Add Polylang support for Customizer Download

This plugin adds Polylang support for WordPress Customizer.

banner

Support & collaboration

discord-support-server

Features

  • Language switcher in Customizer.
  • Localized theme_mods and options for both default and custom made Customizer values.
  • Enable/disable forcing “The language is set from content” setting in Language > Settings > URL modifications

Prerequisite

  1. Polylang must be installed and activated.
  2. Languages must be set in Admin > Languages.
  3. If you have a static front page:
    1. Create a front page per each language.
    2. Select the front page in Admin > Settings > Reading per language.
  4. Expect customizer to use setting type = theme_mod (default) as in:

$wp_customize->add_setting( 'setting_id', [ 'type' => 'theme_mod', ] );

Installation

This plugin can be installed directly into your plugins folder "as-is"
or:

  • go to Plugins > Add new and type in Search Add Polylang support for Customizer and click Install and then Activate buttons.
  • if you go to Admin panel > Plugins > Add new > Upload Plugin and select the archive containing this plugin.

It's safe to activate the plugin at this point. Because the plugin just injects some functionality - there will be no plugin menus or settings to play with. License

Licensing

This plugin is licensed under the GPL v2 or later; however, if you opt to use third-party code that is not compatible with v2, then you may need to switch to using code that is GPL v3 compatible.

For reference, here's a discussion that covers the Apache 2.0 License used by Bootstrap.

Credits

Original solution made by @soderlind is available here. Share some love! This is WordPress plugin version of his solution.

add-polylang-support-for-customizer's People

Contributors

richardevcom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

generoi

add-polylang-support-for-customizer's Issues

Can't reproduce known 2x possible issues in plugin

Discussed in #1

Originally posted by richardevcom January 18, 2022
Heyo 👋

So here are some errors/issues that couldn't be reproduced, yet there are some reports about them in Support forum.

  1. Plugin asks to be activated - There have been 2 reports, that occasionally plugins just asks to be activated (doesn't seem to be activated - can't find correct Polylang index file pathing possibly!? Here is the last source of issue.
  2. Fatal error - Call to undefined function Richardevcom\Apsfc\pll_current_language() has appeared also more than 2 times, but never could be reproduced or caught on dev environment. Here is the last source of issue. Possibly issues with namespaces or function filter priority - maybe hooking it earlier will help?

If you can help in any way to test these out, reproduce then and document process, reason or possible solution, that would be awesome 🙏

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.