Skip to content

Instantly share code, notes, and snippets.

View RhythmShahriar's full-sized avatar
🎯
Focusing

Rhythm Shahriar RhythmShahriar

🎯
Focusing
View GitHub Profile
@RhythmShahriar
RhythmShahriar / script.js
Created February 27, 2018 14:32
Make the DIVI Builder Blurb Module click-able
/**
* Make the Blurb Module click-able
* This will find the anchor from title and pass the
* url to full Blurb body
*
* @author Rhythm Shahriar
* @link https://rhythmshahriar.com
*/
$(document).ready(function () {
@RhythmShahriar
RhythmShahriar / style.css
Created January 21, 2018 13:57
Rogue Framework Fixed Navbar
/*** ADMIN BAR FIX ***/
#wpadminbar{
z-index: 999999999999;
}
body.admin-bar #navbar{
margin-top: 32px;
}
/* icon based admin bar 781px */
@RhythmShahriar
RhythmShahriar / canvas.js
Created December 8, 2017 17:44
Canvas Boilerplate
/**
* Canvas Boilerplate
* @version 1.0
* @author Rhythm Shahriar
* @link http://rhythmshahriar.com
*/
/**
* Select canvas node
@RhythmShahriar
RhythmShahriar / .htaccess
Created November 30, 2017 09:26
https (WordPress)
# ----------------------------------------------------------------------
# SSL SETUP
# ----------------------------------------------------------------------
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://mydomain.com/$1 [R,L]
</IfModule>
@RhythmShahriar
RhythmShahriar / Procfile
Created November 7, 2017 00:35
Heroku point the Laravel /public folder
web: vendor/bin/heroku-php-apache2 public/
@RhythmShahriar
RhythmShahriar / .htaccess
Created November 7, 2017 00:33
Permanently redirect all request from root to /public folder (Laravel)
RewriteEngine on
RewriteCond %{REQUEST_URI} !^public
RewriteRule ^(.*)$ public/$1 [L]
/*-------------------- ROGUE/DIVI CSS ADJUSTMENT --------------------*/
/*-------------------------------------------------------------------*/
/*-- bootstrap container size with design */
.container {
max-width: 1200px !important;
width: 100% !important;
}
/*-- divi spacig with bootstrap */
.page .et_pb_section, .single .et_pb_section {
@RhythmShahriar
RhythmShahriar / vanilla.js
Created July 12, 2017 02:59
This is a collection of Vanilla JavaScript equivalents to jQuery methods.
/**
* This is a collection of Vanilla JavaScript
* equivalents to jQuery methods.
*
* @author Rhythm Shahriar <rhy@rhythmshahriar.com>
* @link http://rhythmshahriar.com
*/
/**----------------------------------------------------------------------
* DOM selectors
/**-------------------------------------------------
* @package Code Snippets
* @link http://rhythmshahriar.com/codes/
* @author Rhythm Shahriar <rhy@rhythmshahriar.com>
* @link http://rhythmshahriar.com
* @copyright Copyright © 2017, Rhythm Shahriar
---------------------------------------------------*/
#Remove Query Strings from Static Resources
function _remove_script_version( $src ){
/**-------------------------------------------------
* @package Code Snippets
* @link http://rhythmshahriar.com/codes/
* @author Rhythm Shahriar <rhy@rhythmshahriar.com>
* @link http://rhythmshahriar.com
* @copyright Copyright © 2017, Rhythm Shahriar
---------------------------------------------------*/
if( !is_admin()){
$url = 'http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js';