• Resolved Anticosti

    (@anticosti)


    Greetings,

    This plugin looks so promising. I am on the edge to switch from qTranslate-x but… I need to fix some issues before.
    I am trying hard to figure out the way to integrate WP Maintenance.
    From scratch, how should I modify my ‘wpm-config.json’ file located at root of my child-theme?

    I tried so different ways and just can’t figure it out… hmmmm…

    • This topic was modified 7 years, 1 month ago by Anticosti. Reason: *ways
Viewing 4 replies - 1 through 4 (of 4 total)
  • So far, there are technical issues that prevent the integration of WP Maintenance with WP Multilang. I will correct them in the next release.
    Here is a quick version of the configuration for this plugin. Maybe he’s not full. You need to see which variables are contained in the’ wp_maintenance_settings’ option to customize precisely for you.

    {
      "options": {
        "wp_maintenance_settings": {
          "titre_maintenance": {},
          "text_maintenance": {},
          "text_bt_maintenance": {},
          "title_newletter": {}
        }
      },
      "admin_pages": [
        "toplevel_page_wp-maintenance"
      ]
    }
    Thread Starter Anticosti

    (@anticosti)

    Has no effect. I’ll wait for your next release… then I’ll check again, more in-depth.
    Thank you again VaLeXaR! Great support !!!
    Regards,

    • This reply was modified 7 years, 1 month ago by Anticosti.

    To apply the new configuration, you must enable / disable any module or switching theme. The plugin looks for the configuration only after the action. Maybe I will change this for an active topic in the future.

    • This reply was modified 7 years, 1 month ago by VaLeXaR.
    Thread Starter Anticosti

    (@anticosti)

    With your guidance, I can now — at least for now — get the “Message” translated.

    In your code above, I just swaped this line:
    "text_maintenance": {},
    for this:
    "wp_maintenance_settings[text_maintenance]": {},

    Although, to be able to monitor what I am doing, with the Language Switches, I had to add this line to my theme’s functions.php file:
    if ( function_exists ( 'wpm_language_switcher' ) ) wpm_language_switcher ();

    Should be good to go now…

    Cheers,

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to integrate WP Maintenance’ is closed to new replies.