在模式提示中显示图像

时间:2019-05-20 22:20:18

标签: javascript jquery

我正在使用JQuery显示取消WooCommerce订阅的提示。我想在文字上方添加图片(可能居中),到目前为止,我有以下代码:

$logo = 'https://example.org/wp-content/themes/my-theme/img/logo.png';
    $script_atts = array(
        'ajax_url' => admin_url( 'admin-ajax.php' ),
        'promt_msg' => apply_filters( "wcs_cancel_confirmation_promt_msg", __("$logo \nAre you sure you want to cancel your subscription?\nIf so, please type the reason why you want to cancel it here:","wcs-cancel-confirmation" ) ) ,
        'error_msg' => apply_filters( "wcs_cancel_confirmation_error_msg", __("There has been an error when saving the cancellation reason. Please try again.","wcs-cancel-confirmation" ) )
    );

有效,但是我没有看到图像,而是得到了文本形式的图像URL。如何显示图像?

0 个答案:

没有答案