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
#map | |
{ | |
filter: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg"><filter id="g"><feColorMatrix type="matrix" values="0.3 0.3 0.3 0 0 0.3 0.3 0.3 0 0 0.3 0.3 0.3 0 0 0 0 0 1 0"/></filter></svg>#g'); | |
-webkit-filter: grayscale(100%); | |
filter: grayscale(100%); | |
filter: progid:DXImageTransform.Microsoft.BasicImage(grayScale=1); | |
} |
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
scrollBehavior (to, from, savedPosition) { | |
if (savedPosition) { | |
return savedPosition | |
} else { | |
return { x: 0, y: 0 } | |
} | |
} | |
or try, |
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
.upload-btn-wrapper input[type=file] { | |
position: absolute; | |
font-size: 14px; | |
top: 0; | |
color: #141414; | |
right: 0; | |
} | |
input[type="file"]::-webkit-file-upload-button { | |
background: transparent; | |
border: 0; |
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
var container = $('.filter-container'); | |
var elements = $('.filter-container > *'); | |
var buttons = $('.filter-buttons a'); | |
// set all elements active | |
elements.addClass('selected elements'); | |
// remove select all filter | |
$('.filter-buttons a.select-all').remove(); | |
buttons.click(function(){ | |
// set all elements inactive by first call |
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
//career post | |
function create_job() { | |
register_post_type( 'job', | |
array( | |
'labels' => array( | |
'name' => __( 'Career' , 'softiconic'), | |
'singular_name' => __( 'Career' , 'softiconic'), | |
'add_new' => __('Add New Career', 'softiconic'), | |
'edit_item' => __('Edit Career', 'softiconic'), | |
'new_item' => __('New Career', 'softiconic'), |
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
CKEDITOR.editorConfig = function (config) { | |
config.allowedContent = true; | |
}; |
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
<?php | |
// Get all the categories | |
$categories = get_terms( 'sccategory' ); | |
// Loop through all the returned terms | |
foreach ( $categories as $category ): | |
// set up a new query for each category, pulling in related posts. | |
$services = new WP_Query( | |
array( |
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
add_action( 'wp_footer', function() { | |
if ( ! defined( 'ELEMENTOR_VERSION' ) ) { | |
return; | |
} | |
?> | |
<script> | |
window.addEventListener('elementor/frontend/init', function() { | |
elementorFrontend.hooks.addFilter( 'frontend/handlers/menu_anchor/scroll_top_distance', function( scrollTop ) { | |
return scrollTop - 180; |
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
function gt_get_post_view() { | |
$count = get_post_meta( get_the_ID(), 'post_views_count', true ); | |
return "$count views"; | |
} | |
function gt_set_post_view() { | |
$key = 'post_views_count'; | |
$post_id = get_the_ID(); | |
$count = (int) get_post_meta( $post_id, $key, true ); | |
$count++; | |
update_post_meta( $post_id, $key, $count ); |