Skip to content

Instantly share code, notes, and snippets.

@robertbiswas
robertbiswas / gist:f5e61dae932a408f0aacef21bc00bc27
Last active July 13, 2023 18:45
Elementor Kit overflow X scroll issue fix CSS
html {
height: 100%;
overflow: hidden;
}
body {
margin: 0;
width: 100vw;
height: 100%;
overflow-y: auto;
@robertbiswas
robertbiswas / scritp.js
Created September 27, 2022 08:08
Masonry Grid with Lazyload issue solved
$(document).ready(function () {
var $grid = $('.msnry-grid').masonry();
$grid.find('[loading="lazy"]').on('load', function() {
$('.msnry-grid').masonry('layout');
console.log("image loaded.");
})
});
{% set all_tags = blog_tags('default', 250) %}
<ul>
{% for item in all_tags %}
<li><a href="{{ blog_tag_url(group.id, item.slug) }}">{{ item }} ({{item.live_posts}})</a></li>
{% endfor %}
</ul>
{% if paginator.total_pages != 1 %}
<div class="row text-center text-caps">
<div class="col-md-8 col-md-offset-2">
<nav class="pagination" role="pagination">
<span class="page-number">Page {{ paginator.page }} of {{ paginator.total_pages }}</span>
{% if site.paginate_path != 'page:num'%}
{% assign paginate_url = site.paginate_path | remove:'/page:num' %}
{% if paginator.previous_page %}
{% if paginator.previous_page == 1 %}
/**
* Add Font Group
*/
add_filter( 'elementor/fonts/groups', function( $font_groups ) {
$font_groups['rb_custom_fonts'] = __( 'RB Custom Fonts' );
return $font_groups;
} );
/**
* Add Group Fonts
<script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2.js"></script>
<script>
hbspt.forms.create({
region: "na1",
portalId: "XXXXXX",
formId: "XXXXX-XXXXXX-XXXXX-CCCC",
onFormSubmit: function($form){
setTimeout(function () {
var firstName = $form.find('input[name="firstname"').val();
var lastName = $form.find('input[name="lastname"').val();
[
"fa fa-address-book", "fa fa-address-book-o", "fa fa-address-card", "fa fa-address-card-o", "fa fa-adjust", "fa fa-adn", "fa fa-align-center", "fa fa-align-justify", "fa fa-align-left", "fa fa-align-right", "fa fa-amazon", "fa fa-ambulance", "fa fa-american-sign-language-interpreting", "fa fa-anchor", "fa fa-android", "fa fa-angellist", "fa fa-angle-double-down", "fa fa-angle-double-left", "fa fa-angle-double-right", "fa fa-angle-double-up", "fa fa-angle-down", "fa fa-angle-left", "fa fa-angle-right", "fa fa-angle-up", "fa fa-apple", "fa fa-archive", "fa fa-area-chart", "fa fa-arrow-circle-down", "fa fa-arrow-circle-left", "fa fa-arrow-circle-o-down", "fa fa-arrow-circle-o-left", "fa fa-arrow-circle-o-right", "fa fa-arrow-circle-o-up", "fa fa-arrow-circle-right", "fa fa-arrow-circle-up", "fa fa-arrow-down", "fa fa-arrow-left", "fa fa-arrow-right", "fa fa-arrow-up", "fa fa-arrows", "fa fa-arrows-alt", "fa fa-arrows-h", "fa fa-arrows-v", "fa fa-asl-interpreting", "fa fa-assistive-listening-systems", "fa fa-as
@robertbiswas
robertbiswas / scope-list.txt
Created August 23, 2018 23:52
Sublime Text 3 Snippet: Scope List
font
license
source.actionscript.2
source.applescript
source.asp
source.c
source.c++
source.camlp4.ocaml
source.clojure
source.cmake
@robertbiswas
robertbiswas / rb-new-plugins.sublime-snippet
Last active August 23, 2018 22:50
Snippet for Sublime Text 3 : Standard Plugin Information
<snippet>
<content><![CDATA[
/*
Plugin Name: ${1:plugin-name}
Plugin URI: http://plugins.robertbiswas.com/${3:text-domain}
Description: ${4:Description}
Version: 1.0
Author: Robert Biswas
Author URI: http://robertbiswas.com
License: GPL2
@robertbiswas
robertbiswas / Non Mobile first Media Queries
Last active May 8, 2018 21:15
Non Mobile First Media Queries
/* Mixed up with Bootstrap 4 */
// Large Devices, Wide Screens
@media only screen and (max-width : 1200px){
}
// Medium Devices, Ipad portait
@media only screen and (max-width : 992px){