Difference between revisions of "Customize"
Jump to navigation
Jump to search
Line 58: | Line 58: | ||
<pre> | <pre> | ||
GRANT SELECT , INSERT , UPDATE , DELETE ON wordpress.* TO 'user'@'localhost'; | GRANT SELECT , INSERT , UPDATE , DELETE ON wordpress.* TO 'user'@'localhost'; | ||
+ | </pre> | ||
+ | |||
+ | == Customized Search Form == | ||
+ | create a file called searchform.php at your theme folder and enter: | ||
+ | <pre> | ||
+ | <form role="search" method="get" id="searchform" action="<?php echo home_url( '/ ' ); ?>"> | ||
+ | <div><label class="screen-reader-text" for="s">Search for:</label> | ||
+ | <input type="text" value="search = HOWTO" name="s" id="s" onfocus="if (t his.value == 'Search & Hit Enter') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Search & Hit Enter';}" /> | ||
+ | </div> </form> | ||
</pre> | </pre> |
Revision as of 15:57, 22 May 2017
Wordpress Customize
Security Info
- Reduce the Count of installed and used Wordpress Plugins, LESS is MORE!
- Do never use PHP Upload Plugins like "Gallery" cause most of them are scanned by Hackers to Access the File Systems of the Webserver !!!
- Check Folder Rights like Images where Uploads are stored!
- Use a minimum of Plugins to redesign and relocate internal Links! Cause Search Bots don't know how to read!
- A Basic Setup is FAST and CLEAN READABLE by Bots Scripts and ranked up by Speed (I/O)!
Date Remove on Posts
to remove date of posts edit functions.php
function theme_remove_post_dates() { add_filter('the_date', '__return_false'); add_filter('the_time', '__return_false'); add_filter('the_modified_date', '__return_false'); } add_action('loop_start', 'theme_remove_post_dates');
Hardening Wordpress
Force SSL Logins to Login Pages add to wp-config.php
define('FORCE_SSL_ADMIN', true);
Delete trash after 30 days
Add to wp-config.php
define('EMPTY_TRASH_DAYS', 30);
Disable Wordpress Cron
Add to wp-config.php
define('DISABLE_WP_CRON', true);
Reduce Revsions History
Add to wp-config.php
define('WP_POST_REVISIONS', 3);
Auto Save Intervall on Edit
Auto Save every 2 Minutes
define('AUTOSAVE_INTERVAL', 120);
Disable Auto Wordpress Updates
Must be done cause it can destroy your Blog!
define( 'WP_AUTO_UPDATE_CORE', false );
Wordpress MySQL Database User Privileges
enter on MySQL Console as DB-Admin!
GRANT SELECT , INSERT , UPDATE , DELETE ON wordpress.* TO 'user'@'localhost';
Customized Search Form
create a file called searchform.php at your theme folder and enter:
<form role="search" method="get" id="searchform" action="<?php echo home_url( '/ ' ); ?>"> <div><label class="screen-reader-text" for="s">Search for:</label> <input type="text" value="search = HOWTO" name="s" id="s" onfocus="if (t his.value == 'Search & Hit Enter') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Search & Hit Enter';}" /> </div> </form>