WordPress CMS plugins (from the content management system), or plugins, offer you additional functions, or security, depending on the plugin you use on your wordpress site.
Below we will see a plugin made only for WordPress of iGuRu.gr. Of course, as long as I publish it, you are free to modify it and use it on your own website, and for your own needs.
Below we will see the code and I will try to explain each functionality. You can add or remove pieces depending on your needs. At the end of the post there is also the folder with the php file that you need to upload and activate in the dir that contains your plugins.
WordPress iGuRu Plugin Explanations:
1. hAtom: is a template of microformats.org. Helps in SEO. Using the template below is not visible on the site, but adds hAtom tags to your page.
2. Custom Search: Genesis Themes only. The code below presupposes the creation of a custom search engine on google, and creating a special page (iguru-google-search) that will contain the code of the custom search engine you created.
3. Comments: The following code concerns the comments of the Genesis Framework. If you want to convert it to your own non-Genesis theme, change the parameters of genesis_title_comments and genesis_after_comments to those used by your theme.
4. devicepx: Get rid of devicepx (only if you use Jetpack), it slows down your site.
5. Avatar: use a custom avatar for everyone. Select the image and upload it to dir images named gravatar.png
6. Query Strings: remove all; from the URLs of your script.
7. Admin footer text Add your own text at the bottom of the admin panel.
8. Autoptimize cache: automatically delete the cached files of autoptimize as soon as their size exceeds 512MB.
Let's look at the code
< ?php /* *Plugin Name: Site Plugin for iGuRu.gr * Plugin URI: https://iguru.gr * Description: Site custom code changes for iGuRu.gr * Version: 1.0 * Author: giorgos * Author URI: https ://iguru.gr * Text Domain: iguru-plugin */ //* Add Google Custom Search to Genesis Search add_filter( 'genesis_search_form', 'giorgos_search_form', 10, 4); function giorgos_search_form( $form, $search_text, $button_text) { $onfocus = " onfocus=\"if (this.value == '$search_text') {this.value = '';}\""; $onblur = " onblur=\"if (this.value == '') {this.value = '$search_text';}\""; $form = '
Those of you who want the plugin ready for repairs, you can download it from the following link
Add Parallax scrolling effects to your website without plugins