• Hello,
    First, thanks for this great plugin ! It is easy to use, simple, lite and works very well.
    I have a question : I would like change switcher flag only in front office. I tried to create override files in my template but it doesn’t work.
    So which files can I modify to customise flag image and how can I create an override folder in my template to keep my changes during updates.

    Thanks a lot for your answer.

    Claire

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • add_filter('wpm_flags_dir', function($dir) {
        return is_admin() ? $dir : get_template_directory_uri() . '/assets/images/';
    });

    Hi. You can change the flags URL using this code. As example with the code, flags will be loaded from a template directory.

    Thread Starter kidacom

    (@kidacom)

    Thanks a lot for your answer. It works great !

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom flag languages in front office only’ is closed to new replies.