Blog
html – Vertical alignment of elements in a div
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)...
Forcing SSL and WWW using .htaccess – Stack Overflow
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
Change text with the CSS
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 old text...
Add jQuery to the WordPress
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(...
How To Create WordPress Meta Boxes – Smashing Magazine
Creating WordPress meta boxes in is simple once you've created your first one. Here is what you need to know about meta boxes. Read more » Source: How To Create Wordpress Meta Boxes – Smashing Magazine
Step by Step – How to Combine CSS Stylesheets Into 1 File in WordPress • SpeedRak.com : SpeedRak.com
Source: Step by Step - How to Combine CSS Stylesheets Into 1 File in Wordpress • SpeedRak.com : SpeedRak.com
How to Move JavaScripts to the Footer in WordPress – a Quick Fix
Source: How to Move JavaScripts to the Footer in Wordpress - a Quick Fix • SpeedRak.com : SpeedRak.com
How to Add Custom Fonts in WordPress
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 ,ttf...
Add Far Future Expires Headers to Your WordPress Site
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 image/png "access plus 1...
Security layer in you WordPress site
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...