Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • #1415739

    **Issue Description:**

    I am encountering an issue with the Add Media button functionality in the Enfold theme on my WordPress website. The Add Media button is not working as expected on specific pages of the website, particularly when the website is in the Arabic language.


    – When I attempt to click the Add Media button on pages where I can input content (such as the text editor fields), nothing happens. The button is not clickable.
    – This issue seems to be specific to the Arabic version of the website. On the English version of the website, the Add Media button functions as intended.

    **Steps Taken:**

    I have done some troubleshooting to identify the cause of the issue:
    – I have tested the website with the default WordPress theme, and the Add Media button works correctly.
    – I have disabled all plugins, and the issue still persists, indicating that the problem is likely related to the theme itself.

    **Possible Cause:**

    The issue seems to be related to a theme conflict or compatibility issue. It’s possible that there is a conflict with the Enfold theme or its settings that affects the functionality of the Add Media button on certain pages, especially when the website is in the Arabic language.

    **Request for Assistance:**

    I am seeking assistance to diagnose and resolve this issue. As the Add Media button is a crucial feature for content creation, I would greatly appreciate guidance on how to fix this problem. If there are any specific settings, code adjustments, or troubleshooting steps I should take, please let me know.

    **The Custom Function:**

    function show_media_button( $editor_settings, $field_object, $form, $entry ) {
    // Get the current language code
    $current_lang = get_locale();

    // Check if the current language is Arabic (locale code ‘ar’)
    if ( $current_lang === ‘ar’ ) {
    // If the language is Arabic, disable media buttons
    $editor_settings[‘media_buttons’] = true;
    } else {
    // For all other languages, enable media buttons
    $editor_settings[‘media_buttons’] = true;

    return $editor_settings;
    add_filter( ‘gform_rich_text_editor_options’, ‘show_media_button’, 10, 4 );

    Thank you for your support.

    This reply has been marked as private.

    Hi Tello,

    Thank you for your patience.

    I went to Enfold theme options, switched the language to Arabic, went to Performance > Self Hosted Videos And Audio Features, selected the “Always load media features” option, and that helped.

    Please review your website.

    Best regards,


    It worked thank you!



    You are welcome!

    For your information, you can take a look at Enfold documentation at

    If you have any other questions or issues, feel free to start a new thread under Enfold sub forum and we will gladly try to help you.

    Best regards,

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Add Media Button isnt working’ is closed to new replies.