• Resolved AzRalL

    (@azrall)


    Hey,

    how can I change the “CLOSE” text in the modal window to close it? Here is what I already tried:

    Opened easy-modal-en_US.po in poedit and Translated the line with “Close” to my language, saved the file as easy-modal-de_DE.po and .mo and changed the language in the settings to German. This didnt worked. But when I translate something else it works just not with “Close”.

    Tried changing line 78 in \classes\view\modal.php

    $output .= '<a class="'. esc_attr( apply_filters('emodal_modal_close_class_attr', 'emodal-close', $modal) ) .'">'. apply_filters('emodal_modal_close', __("×", 'easy-modal' ), $modal) .'</a>';

    to

    $output .= '<a class="'. esc_attr( apply_filters('emodal_modal_close_class_attr', 'emodal-close', $modal) ) .'">Somestring</a>';

    This didnt work either. What am I missing? If its not translation ready where can I hardcode it?

    https://www.ads-software.com/plugins/easy-modal/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Did anybody found a solution for this problem?

    I could only succeed on changing the CLOSE directly in the database, but the modal stops working if you do that.

    any news? same problem

    Hi, have this option in plugin.
    Easy Modal menu > Theme > Close

    marcosfsr I have v 2.0.17, but I not found “Easy Modal menu > Theme > Close”

    It’s a PRO version?

    Plugin Author Daniel Iser

    (@danieliser)

    Hey Guys & Gals, if you don’t have the theme editor available it means your user account doesn’t have enough permissions.

    Alternatively Popup Maker is a direct replacement and allows much more flexibility.

    Hope that helps.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Translation of "CLOSE" Button’ is closed to new replies.