Skip to content

Instantly share code, notes, and snippets.

Avatar

Puneet Sahalot psahalot

View GitHub Profile
@psahalot
psahalot / generatepress-elementor-locations.php
Last active Mar 20, 2020
Elementor Locations integration for GeneratePress
View generatepress-elementor-locations.php
<?php
/**
* Elementor Pro integration.
*
* @package GeneratePress
* @subpackage Integration
*/
defined( 'ABSPATH' ) || die( "Can't access directly" );
@psahalot
psahalot / modalbox-function.php
Created Sep 13, 2019
Display Modal Box on all Pages except one.
View modalbox-function.php
function beaveraddons_popup_box() {
if (!is_page('your-page-slug')) {
echo do_shortcode('[fl_builder_insert_layout slug="site-wide-popup"]');
}
}
add_action('fl_after_content', 'beaveraddons_popup_box');
@psahalot
psahalot / .htaccess
Created Mar 27, 2019
Adjust Apache service limits for Elementor
View .htaccess
<IfModule mod_substitute.c>
SubstituteMaxLineLength 30m
</IfModule>
LimitRequestBody 9999999
@psahalot
psahalot / layout-css.css
Created Oct 16, 2018
Custom Layout 3 Demo CSS
View layout-css.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 Oct 16, 2018
Custom Layout 3 Demo HTML
View layout-html.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 Oct 16, 2018
Custom Grid Demo 2 CSS
View layout-css.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 Oct 16, 2018
Custom Grid Demo 2 HTML
View layout-html.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 Nov 18, 2018
add search box to off-canvas menu
View off-canvas-search.php
// 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 Aug 17, 2018
Style Parameters for WPfomify's merge tags
View merge-tags.txt
{{city | bold}}
{{name | bold }}
{{name | color:red}}
@psahalot
psahalot / layout-style.css
Created Jun 7, 2018
Content Grid Custom Layout CSS
View layout-style.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;
You can’t perform that action at this time.