Skip to content

Instantly share code, notes, and snippets.

View faisalahammad's full-sized avatar
🎯
Focusing

Faisal Ahammad faisalahammad

🎯
Focusing
View GitHub Profile
@faisalahammad
faisalahammad / .htaccess
Created June 3, 2019 19:22 — forked from ShiponKarmakar/.htaccess
Most Useful .htaccess Code
#stop directory browsing
Options All -Indexes
# SSL Https active Force non-www
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
@faisalahammad
faisalahammad / DNS Prefetch domains
Created October 9, 2019 14:10 — forked from lukecav/DNS Prefetch domains
WP Rocket - Advanced Options Prefetch DNS requests
//maps.googleapis.com
//maps.gstatic.com
//fonts.googleapis.com
//fonts.gstatic.com
//ajax.googleapis.com
//apis.google.com
//google-analytics.com
//www.google-analytics.com
//ssl.google-analytics.com
//youtube.com
@faisalahammad
faisalahammad / github_emoji.md
Last active November 11, 2019 08:54 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@faisalahammad
faisalahammad / terms_shortcode.php
Last active May 3, 2020 20:18
Create a Taxonomy loop (all type of post type or taxonomy supported).
<?php
/** Term Shortcode **/
function my_book_terms( $atts ) {
$args = array( 'hide_empty=0' );
$terms = get_terms( $atts['term'], $args );
if ( ! empty( $terms ) && ! is_wp_error( $terms ) ) {
$count = count( $terms );
$i = 0;
$term_list = '<ul class="my-term-archive">';
@faisalahammad
faisalahammad / admin-ssl-vesta.sh
Created June 22, 2020 15:09 — forked from hasinhayder/admin-ssl-vesta.sh
Install Admin Panel SSL Cert for VestaCP using LetsEncrypt
v-change-sys-hostname somedomain.com
v-add-letsencrypt-domain 'admin' $HOSTNAME '' 'yes'
v-update-host-certificate admin $HOSTNAME
echo "UPDATE_HOSTNAME_SSL='yes'" >> /usr/local/vesta/conf/vesta.conf
<body class="{{ template | handleize }}">
.formFooter {
display: none !important;
}
.supernova {
background: transparent !important;
}
.form-all {
width: 500px;
}
.jotform-form {
<div class="promo_sec">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="promo_box">
<div class="promo_head barley_hide_outline" data-barley="promo_head" data-barley-editor="advanced" contenteditable="false">
<h2>
SIGN UP TO RECEIVE DISCOUNTS
</h2>
<span>

The Blog Module is using AJAX to load older posts. When you click on the older entries button the Blog module is reloading instead of refreshing the entire page. This is the way that AJAX works.

The pagination links have the ?et_blog parameter to avoid pagination clashes with the main query. It has no impact on SEO since the URLs have the "canonical" URL set to the main page.

In some cases, you may want to refresh the page to apply custom styles or in order to see the URL of the next page.

To disable AJAX, place this code to the Divi > Theme Options > Integration > Add code to the < head > of your blog:

<script text= "text/javascript">
jQuery(function($){
function stickyFooter(){
var footer = jQuery("#et-main-area footer");
var position = footer.position();
var height = jQuery(window).height();
height = height - position.top;
height = height - footer.outerHeight();
if (height > 0) {
footer.css({'margin-top' : height+'px'});