Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #17482

    Hi Kriesi,

    Thanks for Choices 1.6 update!

    I discovered that you implemented avia_wpml_correct_domain_in_url function to config-wpml/config.php from this topic:

    http://www.kriesi.at/support/topic/wpml-ajax-porfolio-item-opening-issue-and-widget-title

    I upgaded to 1.6 and found bug: Unable to save Theme Options from second language and domain names in admin panel are wrong, so

    I had to add IF statement.

    Can you please check that, maybe it’s possible to fix that witout IF statement.

    Original:

    add_filter ('site_url', 'avia_wpml_correct_domain_in_url');
    add_filter ('get_option_siteurl', 'avia_wpml_correct_domain_in_url');
    add_filter ('stylesheet_directory_uri', 'avia_wpml_correct_domain_in_url');
    add_filter ('template_directory_uri', 'avia_wpml_correct_domain_in_url');
    add_filter ('post_thumbnail_html', 'avia_wpml_correct_domain_in_url');
    add_filter ('plugins_url', 'avia_wpml_correct_domain_in_url');
    add_filter ('admin_url', 'avia_wpml_correct_domain_in_url');
    add_filter ('wp_get_attachment_url', 'avia_wpml_correct_domain_in_url');

    Upgraded:

    if (!is_admin()) {
    add_filter ('site_url', 'avia_wpml_correct_domain_in_url');
    add_filter ('get_option_siteurl', 'avia_wpml_correct_domain_in_url');
    add_filter ('stylesheet_directory_uri', 'avia_wpml_correct_domain_in_url');
    add_filter ('template_directory_uri', 'avia_wpml_correct_domain_in_url');
    add_filter ('post_thumbnail_html', 'avia_wpml_correct_domain_in_url');
    add_filter ('plugins_url', 'avia_wpml_correct_domain_in_url');
    add_filter ('admin_url', 'avia_wpml_correct_domain_in_url');
    add_filter ('wp_get_attachment_url', 'avia_wpml_correct_domain_in_url');
    }

    Thanks,

    Aleksandr

    #95618

    Hi Aleksandr,

    So this is only concerning multisite wordpress installations that are using the theme + WPML and the fixes you described in the post you link to?

    Because in a single domain install I am able to save the theme options while in another language with WPML.

    Thanks,

    Nick

    #95619

    Hi Nick,

    You absolutely right. it’s for multi domain installation this theme and WPML.

    Actually the link in first post here to the fix I provided solves some dynamic portfolio issue and it was integrated into 1.6 Choices release by Kriesi. But there appeared small glitch with saving options that could be fixed too as I described..

    In a single domain it’s all ok.

    Thanks,

    Aleksandr

    #95620

    Hi!

    I marked this thread for Kriesi’s attention.

    Regards,

    Peter

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘WPML multi domain’ is closed to new replies.