Code Snippets | RainaStudio

Code Snippets

How to Add Pinterest Button to Genesis Framework
Today, I am going to show you how easily you can add Pinterest pin-it button on your website. If you[...]
Bootstrap Breadcrumbs to WordPress
Bootstrap Breadcrumbs HTML https://gist.github.com/anwerashif/87b44a60ddb8270fc31e275acdb8f283 WordPress Breadcrumbs with Bootstrap Class Add this code to functions.php https://gist.github.com/anwerashif/ec4ac740047e2681e616fe2f1c63cbcf Breadcrumb in Single.php Add this[...]
jQuery Modal Image
Download the jQuery Modal Image plugin from GitHub repository and unzip the folder. You get there in the folder two files, one[...]
WordPress Speed Optimization via .htaccess
Here is the .htaccess module https://gist.github.com/anwerashif/334e1e583b2419222e7a900e4fbb9a66
Remove Query Strings WordPress
Add this snippet to functions.php https://gist.github.com/anwerashif/fe25a2d0f37b267670afe14e08f91d9a
Enabling Browser Caching via .htaccess
Add these rules to .htaccess for setting Expires and Cache-control headers: https://gist.github.com/anwerashif/6ff0ef9ee0008937990dbd9f5cfc5bc3
Enabling Gzip Compression Via .htaccess
The easiest way to access .htacces is via FTP but you can also use cPanel or any other admin interface.[...]
Add .php Extension to WordPress Page Permalinks
Here is the code snippets add it to your theme's functions.php. https://gist.github.com/anwerashif/1e3d54990e5bd16bf1cc019c05585ea0
Customize the Genesis Content Limit Read More Text
https://gist.github.com/anwerashif/a9f0e88b91ca261fcf7ac1ed781acfc3
Modify Genesis Next & Previous Page Link Text
https://gist.github.com/anwerashif/c13da6b164be66ccb72df5735cebd070
Remove Post Info From Blog Posts Page
https://gist.github.com/anwerashif/6ac0067fdb75c65878a977fa8a2d53de
Remove Post Meta From Blog Posts Page
https://gist.github.com/anwerashif/4fa89d2089cd28abed3c41dd8ab5cb40
Remove title/logo Metabox from Genesis Theme Options Page
https://gist.github.com/anwerashif/9c3ff979db06617c8b5a936dc6dbc1bb
Remove title/logo Metabox from Genesis Customizer
https://gist.github.com/anwerashif/ee10c6fae5e877b47ad6902f83e18106
Unregister Default Layouts Except sidebar-content and full-width in Genesis
Here is the code snippet to unregister default layouts except sidebar-content and full-width in Genesis. https://gist.github.com/anwerashif/6ff22274c087fc33b982c2f7f54cbf6f Add the code snippet[...]
Add Featured Image to Single Post and Page in Genesis
Place this piece of code in your theme's functions.php to see the action. https://gist.github.com/anwerashif/9f4652160a56bac999eb7a8ac224381e After implementation of this code snippet[...]
Remove Empty Lines and Spaces in Notepad++
https://gist.github.com/anwerashif/eb613d6927a95f09c542107b13aafeec
Register Custom Featured Image Size for Page in Genesis
https://gist.github.com/anwerashif/52ea50c9bcd357f054fbfa4fdf4f55f1
>

Download 
Studioplayer Genesis Child Theme Free!

Rock and solid mobile first design child theme with native option panel.

arrow-circle-o-down