小编EE.*_*EE.的帖子

将div设为链接

我有一个<div>块,有一些我不想改变的花哨的视觉内容.我想让它成为一个可点击的链接.

我正在寻找类似的东西<a href="…"><div> … </div></a>,但这是有效的XHTML 1.1.

html css anchor xhtml

529
推荐指数
13
解决办法
61万
查看次数

WP-Contact Form 7 - PHP

我不知道你需要多少信息,但WP-ContactForm-7是WordPress的联系表格.默认情况下,它为网站上的所有表单提供一条服务器响应消息.我有多个表单,并希望每个表单都有不同的服务器响应消息.

如何为使用此插件创建的每个不同表单创建不同的服务器响应消息?

以下是插件中的PHP代码片段,似乎与联系人表单显示的消息有关:

function message($status) {
    switch ($status) {
        case 'mail_sent_ok':
            return __('Your message was sent successfully. Thanks.', 'wpcf7');
        case 'mail_sent_ng':
            return __('Failed to send your message. Please try later or contact administrator by other way.', 'wpcf7');
        case 'validation_error':
            return __('Validation errors occurred. Please confirm the fields and submit it again.', 'wpcf7');
        case 'accept_terms':
            return __('Please accept the terms to proceed.', 'wpcf7');
        case 'invalid_email':
            return __('Email address seems invalid.', 'wpcf7');
        case 'invalid_required':
            return __('Please fill the required field.', 'wpcf7');
        case …
Run Code Online (Sandbox Code Playgroud)

php wordpress contact-form-7

4
推荐指数
1
解决办法
5453
查看次数

标签 统计

anchor ×1

contact-form-7 ×1

css ×1

html ×1

php ×1

wordpress ×1

xhtml ×1