添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
  • Comparing WPML to Free and Paid Alternatives
  • WPML Showcase
  • How to Translate a WordPress Website and Reach a Global Audience
  • Resources for Bloggers and Affiliates
  • Testimonials
  • Contact Us
  • Features
  • Purchase
  • WPML Pricing
  • WPML Support Policy
  • Refunds
  • Purchase Process
  • Pre-sales Questions
  • Documentation
  • Getting Started Guide
  • WPML Core and Add-on Plugins
  • WPML String Translation
  • WPML Translation Management
  • WooCommerce Multilingual
  • Recommended Themes for Multilingual Sites
  • Recommended Plugins for Multilingual Sites
  • Automatic Translation for WordPress Sites with WPML
  • Translation Services for WordPress Websites
  • Translation Management Systems Integrated with WPML
  • Developers Information
  • Related Projects
  • Privacy Policy and GDPR Compliance
  • Support
  • Ask a support question
  • Hire developers for multilingual sites
  • Certified Reviewers for Automatic Translation
  • Others writing about WPML
  • Home » Errata » Unlimited Elements for Elementor - Translating Links from Mega Menu Widget
    Unlimited Elements for Elementor - Translating Links from Mega Menu Widget

    Overview of the issue

    Currently, it is not possible to translate links within the Mega Menu widget provided by the Unlimited Elements for Elementor plugin.

    Workaround

    Please, make sure of having a full backup of your site before proceeding.

  • Go to WPML > Settings > Custom XML Configuration page.
  • Add the following XML: <wpml-config> <elementor-widgets> <widget name="ucaddon_mega_menu"> <fields-in-item items_of="uc_items"> <field>title</field> <field key_of="link">url</field> <field key_of="link2">url</field> </fields-in-item> </widget> </elementor-widgets> </wpml-config>
  • Then, open your theme’s functions.php file.
  • Add the following code: add_filter( 'wpml_pb_elementor_register_string_name_ucaddon_mega_menu', function( $name, $args ) { $widgetType = $args['element']['widgetType']; return $widgetType . '-' . $args['key'] . '-' . $args['field'] . '-' . $args['nodeId'] . '-' . $args['item']['_id']; }, 10, 2 );
  • Refresh and retranslate your page.
  • If this workaround doesn’t help, please open a chat in our assistance channel.

    Please stay on topic and be respectful to others. If you need help with issues not related to this post, use our Support Forum to start a chat or submit a ticket.

    You can use these tags:
    <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

    To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
    We use these to analyze the statistics of our site. Collected information is completely anonymous. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you. We use these to analyze the statistics of our site. Collected information is completely anonymous. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.