This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Redirect HTTP URLs to HTTPS | |
RewriteEngine On | |
RewriteCond %{HTTPS} off | |
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).on('click', '.form-page', function(e){ | |
var clicked = jQuery(this), | |
page_box = clicked.closest('.caldera-form-page'), | |
form = clicked.closest('form.caldera_forms_form'), | |
form_id = form.attr( 'id' ), | |
instance = form.data('instance'), | |
current_page = form.find('.caldera-form-page:visible').data('formpage'), | |
page = page_box.data('formpage') ? page_box.data('formpage') : clicked.data('page') , | |
breadcrumb = jQuery('.breadcrumb[data-form="caldera_form_' + instance + '"]'), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* To strp shortcodes form SEOPress plugin meta description. | |
* | |
* @param string $html Meta description text. | |
* | |
* @return string Meta description text without shortcode tags. | |
*/ | |
function cp_strip_shortcodes( $html ) { | |
return strip_shortcodes( $html ); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
(function($) { | |
$(window).load(function() { | |
$('#top-menu > .menu-item-has-children > a').attr('href', '#'); | |
$('#top-menu > .menu-item-has-children > a').each(function() { | |
$(this).next('.sub-menu').addClass('hide'); | |
}); | |
$('#top-menu > .menu-item-has-children > a').click(function(event) { | |
event.preventDefault(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Remove capability of moderate comments for editor. | |
*/ | |
function cp_remove_aprove_comment_capability_for_editor() { | |
// Get the role object. | |
$editor = get_role( 'editor' ); | |
// Removes capabiity to moderate comments. | |
$editor->remove_cap( 'moderate_comments' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="tooltip_wrap"> | |
<strong class="tooltip"> | |
<a href="https://www.chetanprajapati.com/"> | |
<i class="icon icon_clock"></i> | |
</a> | |
<span class="tooltip-content"> | |
<span class="tooltip-text"> | |
<span class="tooltip-inner"> | |
Monday, 8am - 8pm<br> | |
Tuesday, 8am - 8pm<br> |
NewerOlder