CSS Tweaks, WordPress Tweaks
Now that flexbox support is increasing, this CSS applied to the containing element would vertically center the contained item: .container { display: flex; align-items: center; } Use the prefixed version if you also need to target Explorer 10, and old (< 4.4)...
.htacces tweaks, SSL serificats, WordPress Tweaks
RewriteCond %{HTTPS} off [OR]RewriteCond %{HTTP_HOST} !^www\.domain\.com$ [NC]RewriteRule ^(.*)$ https://www.domain.com/$1 [L,R=301] Source: Forcing SSL and WWW using .htaccess – Stack Overflow
CSS Tweaks, Hacking WordPress, WordPress Tweaks
When having text that can’t be changed with the jQuery (in that particular place there is to much javaScriptc that new jQuery don’t affect that particular text) then we need to use CSS: First make text indent (move text for the x pixels to the left) so the...
Hacking WordPress, jQuery for the WordPress, WordPress Tweaks
To be able to add jQuery to the WordPress you first need to create js folder in your theme / child-theme directory. After that create example.js file in the js directory. Then in the functions.php add next code: /*add jquery to the WP*/ add_action(...
CSS Tweaks, Hacking WordPress, Optimize WordPress, WordPress Tweaks
Source: Step by Step – How to Combine CSS Stylesheets Into 1 File in WordPress • SpeedRak.com : SpeedRak.com
Hacking WordPress, Optimize WordPress, WordPress Tweaks
Source: How to Move JavaScripts to the Footer in WordPress – a Quick Fix • SpeedRak.com : SpeedRak.com
CSS Tweaks, Optimize WordPress, WordPress Tweaks
If you don’t want to get fonts from the other sites you can host them locally on yours WordPress installation. In order to achieve that you need to follow just this simple steps described below. Find font that you like the most. In most cases the fonts are in...
.htacces tweaks, Optimize WordPress, WordPress Tweaks
To add far future expires header to you WordPress site simply add this code to the .htaccess file <IfModule mod_expires.c> ExpiresActive on ExpiresDefault “access plus 1 month” ExpiresByType image/gif “access plus 1 month” ExpiresByType...
.htacces tweaks, Security, WordPress Tweaks
To be able to add new security layer in WordPress add those lines in the .htaccess file: #Block directory listing Options +FollowSymLinks -Indexes #Block URLS with base64 encoding RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR] #Block scripts...