View general-animations.css
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 the CSS transition to 0.4s right above the custom CSS block | |
*/ | |
root:hover { transform: scale(1.03); } | |
/* subtle shadow */ | |
root { | |
box-shadow: | |
0px 0.1px 0.9px rgba(0, 0, 0, 0.014), | |
0px 0.3px 2.1px rgba(0, 0, 0, 0.02), |
View css animations - gdn websites.css
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
:root { | |
--transition-n: 0.4s; | |
} | |
.an-hover-scale { | |
transition-duration: var(--transition-n); | |
} | |
.an-hover-scale:hover { | |
transform: scale(1.05,1.05); | |
transition-duration: var(--transition-n); |
View branda-custom-login-AbstractTag-customizations.css
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
html body { | |
display: flex; | |
align-items: stretch; | |
align-content: flex-start; | |
background-position: 200px 50%; | |
background-color: #ffffff; | |
-webkit-background-size: cover; | |
-moz-background-size: cover; | |
-o-background-size: cover; | |
background-size: cover; |
View wpmudev_hustle_media_library_fix.php
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
<?php | |
// wpmudev_hustle_media_library_fix | |
// Add this to the functions.php file or use Advanced Scripts to add it when plugins are loaded | |
function wpmudev_hustle_dequeue_script() { | |
if( isset( $_GET['ct_builder'] ) ){ | |
wp_dequeue_script( 'hui_scripts' ); | |
wp_dequeue_script( 'hustle_front' ); | |
} | |
} | |
add_action( 'wp_print_scripts', 'wpmudev_hustle_dequeue_script', 100 ); |
View php-clean-wp_query-output.php
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
printf( '<pre>%s</pre>', print_r( $wp_query, 1 ) ); |
View wp-search-post-and-pages-only.php
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
<?php | |
// Search only Posts or Pages | |
//Exclude pages from WordPress Search | |
function wpb_search_filter( $query ) { | |
if ( ! is_admin() && $query->is_main_query() && $query->is_search() ) { | |
$query->set( 'post_type', [ 'post', 'page' ] ); | |
} | |
} |
View retrieves-thumbnail-youtube.php
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
<?php | |
/** | |
* Retrieves the thumbnail from a youtube or vimeo video | |
* @param - $src: the url of the "player" | |
* @return - string | |
* | |
**/ | |
function get_video_thumbnail( $src ) { | |
$url_pieces = explode('/', $src); | |
View oxygen-pods-gallery-loop.php
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
<?php | |
// use class .gal-single for additional styling | |
// get pods object | |
$custom_field_name = 'custom_portlofio_gallery'; | |
$mypod = pods( $post->post_type, $post->ID ); | |
if ($mypod->field($custom_field_name)) { | |
foreach( $mypod->field('custom_portlofio_gallery', true) as $picture) { | |
echo '<div><img src="' . $picture['guid'] . '" class="gal-single" width="100%" height="auto" alt="' . $picture['post_title'] . '" /></div>'; | |
} | |
} |
NewerOlder