The benefits of a plugin, without the disadvantages: the Hack
Definition WordPress Hack: Element coded often inserted into the "function.php" file of your theme. The benefits of a hack are that it is much faster than a plugin, do not overload your blog and usually does not require updating.
10 WordPress Hacks Easy To Put In Work
While the hack is convenient, but nevertheless he asked to put their hands in sensitive and critical files to the proper functioning of your blog, so needless to remind you of the absolute necessity to save before handling ...
Edit The Riddler Gravatar
If a user who comments on your blog is not listed on, Gravatar.com is the default gravatar appears. You can of course change the default gravatar from the settings page, but if you do not like those that are available, you can customize one for your blog.
Upload your own gravatar in your Pictures folder and paste the code in "functions.php". (Change the name of the image file that you see in the code "yourname-gravatar.jpg" by one of your personalized Gravatar)
The Google detect Visitors And Greet
Place the following code at the point where you want the message to appear.
The use shortcodes In Your Widgets
If you want to add shortodes in a widget, you simply add a filter in your functions.php file. You can now use your shortcodes in both pages, articles and widgets on your blog.
Automatically Delete The Links In The Comments
When a user places a link in a comment, WordPress automatically converts clickable link. If you want to disable this feature, add the following code in your "functions.php" file.
Configure the Default HTML Editor In WordPress
You know that the default editor for WordPress is the visual editor, if it does not suit you and you want to make the HTML Editor your default editor, simply add the following code always in your "File functions. Php ".
The Exclude Pages In The WordPress Search
WordPress by default also included your pages in search results, if you want to exclude results and view only your items, add the following code in the "functions.php" file. This code places the pre_get_posts filter and therefore in the case below, it will only display the contents of the Blog excluding pages.
Edit The Mise En Cache Via. Htaccess
If you want to decrease the loading time of your files "images, CSS, PDF, JS", add the following code to your file. "Htaccess" (FTP only). Using this code, the main static files will be cached to speed up load times.
Replace In 1 Times In All Content From Your Articles
How to add or replace text or link in all your posts and this at once. You can do this by adding the following code in your "functions.php" file. In the case below, the text "wordpress" will be bold and "wordpress hack" will be wearing a link to "wordpress.com".
The Eliminate Spam From Your Comments
You can block spammers instead of marking as spam. The following code rejects any comment posted from a browser, which does not have “Referer” in general it, is a bot. The code checks the "HTTP_REFERRE" and if it is not defined or incorrect, execution is stopped with the appropriate message. Paste the following code in your "functions.php" file.
Delete the symbol [...] Extracts From Your Messages
If you want to get rid of this symbol [...], you only need to insert the following piece of code in the "functions.php" of your theme.
Hack all good ;)
0 comments:
Post a Comment