开发者 | th23 |
---|---|
更新时间 | 2020年5月12日 23:18 |
捐献地址: | 去捐款 |
PHP版本: | 5.6.32 及以上 |
WordPress版本: | 5.2 |
版权: | GPLv2 only |
版权网址: | 版权信息 |
/wp-content/plugins/th23-subscribe
directory, or install the plugin through the WordPress plugins screenSubscriptions are stored in the database and are not directly accessible via an interface.
If enabled via the plugin settings page, a log file will be kept with all user and mail actions. This log is kept within the plugins directory on your server (/wp-content/plugins/th23-subscribe
) and named log.csv
(for easier readability use eg Microsoft Excel to open it).
The file contains the following columns:
The plugin provides both description options for the input fields and adds them to the HTML output.
You can simply use CSS eg via your theme to show placeholders instead of the labels by adding the following:
/* widget and overlay: th23 Subscribe - form label/ placeholder */ .th23-subscribe-visitor-form label[for^="th23_subscribe_mail"], .th23-subscribe-visitor-form label[for^="th23_subscribe_name"] { display: none; } .th23-subscribe-visitor-form input::placeholder { opacity: 1; }
This is best achieved with a combination of added CSS and JS to your theme, assuming that jQuery is available (WP default). By using the following example code the fields will "slide down" upon a user focusing on the e-mail field.
CSS:
.th23-subscribe-visitor-form .th23-subscribe-name, .th23-subscribe-visitor-form .th23-subscribe-terms { display: block; visibility: hidden; opacity: 0; max-height: 0; transition: max-height .5s, visibility .3s, opacity .3s; } .th23-subscribe-visitor-form .th23-subscribe-name.show, .th23-subscribe-visitor-form .th23-subscribe-terms.show { visibility: visible; opacity: 1; max-height: 200px; }
JS:
$('input[name^="th23_subscribe_mail"').focus(function(){ $(this).closest('form').find('.th23-subscribe-name, .th23-subscribe-terms').addClass('show'); });
In case you want to see this in action on the authors personal website and travel blog.