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
$('.classname').each(function () { | |
$(this).prop('Counter',0).animate({ | |
Counter: $(this).text() | |
}, { | |
duration: 2000, | |
easing: 'swing', | |
step: function (now) { | |
$(this).text(Math.ceil(now)); | |
} | |
}); |
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 | |
function cb_get_embedded_media( $type = array() ){ | |
$content = do_shortcode( apply_filters( 'the_content', get_the_content() ) ); | |
$embed = get_media_embedded_in_content( $content, $type ); | |
if( in_array( 'audio' , $type) ): | |
$output = str_replace( '?visual=true', '?visual=false', $embed[0] ); | |
else: | |
$output = $embed[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
{ "keys": ["ctrl+shift+r"], "command": "reindent", "args": {"single_line":false}} | |
prefernces>key binding |
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
<!-- shapehost sidebar search --> | |
<div class="shapehost-sidebar-search"> | |
<form role="search" method="get" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>"> | |
<input type="search" id="<?php echo $unique_id; ?>" class="search-field" placeholder="<?php echo esc_attr_x( 'Search and type enter …', 'placeholder', 'shape' ); ?>" value="<?php echo get_search_query(); ?>" name="s" > | |
<button type="submit" class="search-submit"><i class="fa fa-search"></i></button> | |
</form> | |
</div> | |
<!-- shapehost sidebar search end--> |
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 | |
add_action( 'wp_enqueue_scripts', 'custom_disable_theme_js' ); | |
function custom_disable_theme_js() { | |
Fusion_Dynamic_JS::deregister_script('avada-comments'); | |
Fusion_Dynamic_JS::deregister_script('avada-general-footer'); | |
Fusion_Dynamic_JS::deregister_script('avada-mobile-image-hover'); | |
Fusion_Dynamic_JS::deregister_script('avada-quantity'); | |
Fusion_Dynamic_JS::deregister_script('avada-scrollspy'); | |
Fusion_Dynamic_JS::deregister_script('avada-select'); |
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 | |
function shape_custom_post_taxonomy() { | |
register_taxonomy( | |
'testimonial_category', //The name of the taxonomy. Name should be in slug form (must not contain capital letters or spaces). | |
'shape-testimonial', //post type name | |
array( | |
'hierarchical' => true, | |
'label' => 'Categories', //Display name | |
'query_var' => true, | |
'show_admin_column' => 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
$(window).scroll(function() { | |
var windowSize = $(window).width(); | |
var kotoDur = $(window).scrollTop(); | |
var menurParHoisi = $(".header-section").scrollTop(); | |
if (kotoDur > menurParHoisi && windowSize > 767) { | |
$('.header-section').addClass('header-position-fixed'); | |
}else{ | |
$('.header-section').removeClass('header-position-fixed'); |
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 | |
function social_change_title_text( $title ){ | |
$screen = get_current_screen(); | |
if ( 'movie' == $screen->post_type ) { | |
$title = 'Enter movie name with release year'; | |
} | |
NewerOlder