开发者 | |
---|---|
更新时间 | 2025年7月19日 00:16 |
PHP版本: | 7.2 及以上 |
WordPress版本: | 6.8.2 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
During plugin activation, the cf-style.tss and cf-script.js files are copied to the “css” and “js” directories located in the “assets” directory of the active theme, respectively. The files do not overwrite existing files - this is done so that you can set individual styles for forms, unique to each theme. When activating a new theme, the plugin will also have to be activated again. The display of buttons and forms is carried out either using a shortcode, or by directly registering the buttons in the header file of the theme itself. Shortcodes:
When the plugin is activated, a page type record is created in the posts table with the "reviews" slug and the shortcode [reviews_page] added to the post body. Also, when activating the plugin, just like in the case of contact forms, the reviews-style.tss and reviews-form.js files are copied to the “css” and “js” directories located in the “assets” directory of the active theme, respectively. Existing files are also not are overwritten, so you can also set your own review styles unique to each theme. When activating a new theme, the plugin will also have to be activated again.
In order to start building their project, the developer simply needs to rename the plugin directory, the main plugin file and the plugin prefix (altss_). Attention! This must be done before activating the plugin. Also, additional tips and recipes for embedding code into the theme, changing functionality, etc. will be published on the page: https://github.com/tmutstudio/alternative-site-settings/blob/master/recipes_and_tips.md