This file contains 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
/*START Yoast to Excerpt*/ | |
add_shortcode( 'crowwwn_ymeta', 'get_yoast_meta' ); | |
function get_yoast_meta() { | |
$yoast_meta = get_post_meta(get_the_ID(), '_yoast_wpseo_metadesc', true); | |
if ($yoast_meta == !NULL) { | |
echo $yoast_meta; | |
} | |
else { | |
$content = get_the_content(); | |
echo wp_trim_words( $content , '27' ); |
This file contains 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
// Removing plugin controls from admin | |
function remove_plugin_controls($actions, $plugin_file, $plugin_data, $context){ | |
if (array_key_exists('edit', $actions)) { | |
unset($actions['edit']); | |
} | |
if (array_key_exists('deactivate', $actions)) { | |
unset($actions['deactivate']); |
This file contains 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
/*START Remove Plugin Update Notifications */ | |
function remove_update_notifications( $value ) { | |
if ( isset( $value ) && is_object( $value ) ) { | |
unset( $value->response[ 'plugin1/plugin1.php' ] ); | |
unset( $value->response[ 'plugin2/plugin2.php' ] ); | |
unset( $value->response[ 'plugin3/plugin3.php' ] ); | |
} | |
return $value; |
This file contains 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 upload_svg_files( $allowed ) { | |
if ( !current_user_can( 'manage_options' ) ) | |
return $allowed; | |
$allowed['svg'] = 'image/svg+xml'; | |
return $allowed; | |
} | |
add_filter( 'upload_mimes', 'upload_svg_files'); |
This file contains 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_filter( 'get_the_excerpt', 'replace_post_excerpt_crowwwn' ); | |
function replace_post_excerpt_crowwwn($output) | |
{ | |
$output=get_post_meta(get_the_ID(), '_yoast_wpseo_metadesc', true); | |
if ($output == !NULL) { | |
return $output; | |
} | |
else { | |
$content = get_the_content(); | |
return wp_trim_words( $content , '27' ); |
This file contains 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
//Set Element ID to "stickycrowwwn" | |
<script> | |
document.addEventListener('DOMContentLoaded', function() { | |
jQuery(function($){ | |
var mywindow = $(window); | |
var mypos = mywindow.scrollTop(); | |
mywindow.scroll(function() { | |
if (mypos > 40) { | |
if(mywindow.scrollTop() > mypos) { |
This file contains 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
/* Quick Use */ | |
/* Section */ | |
selector .elementor-container .elementor-row { | |
flex-wrap: wrap; | |
} | |
/* Column */ | |
selector { | |
width: 100%; | |
} |
This file contains 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
selector .elementor-image img { | |
border-radius: 10px 10px 10px 10px; | |
width: 400px; | |
height: 235px; | |
max-width: 100%; | |
object-fit: cover; | |
overflow: hidden; | |
} |
This file contains 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
/* | |
##Device = Desktops | |
##Screen = 1281px to higher resolution desktops | |
*/ | |
@media (min-width: 1281px) { | |
//CSS | |
OlderNewer