Skip to content

Instantly share code, notes, and snippets.

View psahalot's full-sized avatar

Puneet Sahalot psahalot

View GitHub Profile
@psahalot
psahalot / .htaccess
Created March 27, 2019 16:32
Adjust Apache service limits for Elementor
<IfModule mod_substitute.c>
SubstituteMaxLineLength 30m
</IfModule>
LimitRequestBody 9999999
@psahalot
psahalot / layout-css.css
Created October 16, 2018 18:19
Custom Layout 3 Demo CSS
.pp-content-grid-post {
font-size: 14px;
background: #3F51B5 !important;
height: 500px !important;
}
.pp-content-grid-post-image {
padding: 0;
position: relative;
}
.pp-content-grid-post-image a img {
@psahalot
psahalot / layout-html.html
Last active October 16, 2018 18:20
Custom Layout 3 Demo HTML
[wpbb-if post:featured_image]
<div class="pp-content-grid-post-image">
[wpbb post:featured_image size="large" display="tag" linked="yes"]
<div class="pp-content-grid-post-text">
<h3 class="pp-content-grid-post-title">[wpbb post:link text="title"]</h3>
<div class="pp-content-grid-post-meta">
[wpbb post:date format="F j, Y"]
</div>
</div>
@psahalot
psahalot / layout-css.css
Last active October 16, 2018 18:21
Custom Grid Demo 2 CSS
.pp-content-grid-post {
font-size: 14px;
border: 1px solid #fff !important;
background: #F44336 !important;
}
.pp-content-grid-post-image {
padding: 0;
position: relative;
}
.pp-content-grid-post-image a img {
@psahalot
psahalot / layout-html.html
Last active October 16, 2018 18:21
Custom Grid Demo 2 HTML
[wpbb-if post:featured_image]
<div class="pp-content-grid-post-image">
[wpbb post:featured_image size="large" display="tag" linked="yes"]
<div class="pp-content-grid-post-text">
<h3 class="pp-content-grid-post-title">[wpbb post:link text="title"]</h3>
<div class="pp-content-grid-post-meta">
[wpbb post:date format="F j, Y"]
</div>
</div>
@psahalot
psahalot / off-canvas-search.php
Last active November 18, 2018 22:27
add search box to off-canvas menu
// Advanced Menu - off-canvas before menu items
function wpba_demo_offcanvas_menu_before( $type, $settings, $id ) { ?>
<style>
.wpba-menu-content { margin-top: 50px; padding: 40px; padding-bottom: 10px; }
</style>
<div class="wpba-menu-content">
<div class="wpba-menu-search">
<?php echo get_search_form(); ?>
</div>
<h3>About us</h3>
@psahalot
psahalot / merge-tags.txt
Created August 17, 2018 07:30
Style Parameters for WPfomify's merge tags
{{city | bold}}
{{name | bold }}
{{name | color:red}}
@psahalot
psahalot / layout-style.css
Created June 7, 2018 06:42
Content Grid Custom Layout CSS
.pp-content-grid-post {
font-size: 14px;
}
.pp-content-grid-post-image {
padding: 0;
position: relative;
}
.pp-content-grid-post-image a img {
filter: saturate(1.6) contrast(1.1);
opacity: 1;
@psahalot
psahalot / layout-html.html
Created June 7, 2018 06:42
Content Grid Custom Layout
[wpbb-if post:featured_image]
<div class="pp-content-grid-post-image">
[wpbb post:featured_image size="large" display="tag" linked="yes"]
<div class="pp-content-grid-post-text">
<h3 class="pp-content-grid-post-title">[wpbb post:link text="title"]</h3>
<div class="pp-content-grid-post-meta">
[wpbb post:date format="F j, Y"]
</div>
</div>
@psahalot
psahalot / change-toggle-menu-icon.php
Created May 3, 2018 11:00
Change Menu Icon for PowerPack Advanced Menu Module
/* Change Menu Icon for PowerPack Advanced Menu Module */
function pp_custom_menu_icon() { ?>
// Add your custom HTML or SVG code here
<?php }
add_filter('pp_advanced_menu_icon', 'pp_custom_menu_icon');