Skip to content

Instantly share code, notes, and snippets.

View gera3d's full-sized avatar

Gera Yeremin gera3d

View GitHub Profile
@gera3d
gera3d / gist:fa1ed0914a759088d263
Last active August 29, 2015 14:16
Some Code Samples for the Class
#site_title a {color: green ;} --changes the tile color
#What ever ID you want {display: none;} -- Remove whatever IDs you don't want on your site
Changed the Menu color to white
.sf-menu li a {color: #fff !important;} → http://glutenfreehome.wpengine.com/
Made the space between lines less.
#banner h2 {line-height: 29px !important; } → http://lucelenejaimesperez.weebly.com/
Give the quote more space
#banner {width: 690px;}
@gera3d
gera3d / gist:ce61016451fbb7caff60
Created April 30, 2015 23:31
Get a youtube thumbnail and save it into the media library
<?php
// This needs to get moved to the fuctions area
function nuvo_add_img_title( $attr, $attachment = null ) {
$attr['title'] = trim( strip_tags( $attachment->post_title ) );
return $attr;
}
add_filter( 'wp_get_attachment_image_attributes','nuvo_add_img_title', 10, 2 );
/*
@gera3d
gera3d / Little Sample
Created June 13, 2015 03:27
Little Sample
<?php //Here is what I think you where asking me for on the reverse thing
$hello = "Hello ";
echo strrev( $hello );
$hello_back = strrev( $hello );
//Reverse the string back without using the stock function
$length = strlen($hello_back)-1;
$i = 0;
while ($i < $length+1) {
@gera3d
gera3d / MedicalProcedure
Created January 5, 2016 20:42
Schema For MedicalProcedure
<div itemscope itemtype="https://schema.org/MedicalProcedure"><h2><span itemprop="name">Dental Implant</span> History</h2>
Many people do not realize that dental implants have been utilized in dental restoration procedures for more than 20 years. You may be pleasantly surprised to learn that the vast majority of dental implants that oral and maxillofacial surgeons placed over 20 years ago are still functioning at peak performance!
Modern bone implant technology began in 1952 after an experiment conducted by Swedish professor and orthopedic surgeon Per-Ingvar Brånemark. Titanium was used in a way to understand the flow of blood in the bone, making this titanium a “medical-grade” standard. Brånemark made the innovative discovery of osseointegration, which is the fusion between implant and bone. His work was groundbreaking for oral surgery, dentistry, and the medical community.
<span itemprop="description">With over 40 years of supportive research and studies, dental implants have proved to be the longest la
@gera3d
gera3d / Form Ideas
Created January 15, 2016 21:32
Just some ideas I was playing around with related to fill out the form as you go
/*The field does not have anything in it*/
body .gform_wrapper .gform_body .gform_fields .gfield input.empty:valid{
box-shadow: none;
background-image: none;
border: 1px solid #D3D3D3 !important;
background-color: #fff;
}
/*The field does not a good value*/
@gera3d
gera3d / Double Play Feature
Created April 8, 2016 16:12
Add this to jetpack
/* iPad Landscape and Portrait
--------------------------------------------- */
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) {
/*Misc fix for responsive youtube thumb in mobile mode*/
.responsive-fix {
width: 100%; height: 100%; display: block;
}
}
/* Make some mobile Tweaks
@gera3d
gera3d / gist:057e450baeaac868f5cfd22804b9232f
Created April 14, 2016 21:55
Remove Logo on player in landscape mode
/* Iphone Landscape
--------------------------------------------- */
@media only screen and (min-device-width : 320px) and (max-device-width : 750px) and (orientation : landscape) {
.fancybox-wrap:before {
display: none !important; /*Remove the logo in landscape*/
}
}
/*Hot fix 1.18.2016 fixed the team page to look better on mobile. -Gera*/
@media only screen and (max-width: 800px) {
.gallery-columns-3 .gallery-item {
width: 100%;
}
}
<strong><a href="">Sioux Falls</a></strong>
6401 S Minnesota Ave
Sioux Falls, SD 57108
<strong>Other Locations</strong>
<strong><a href="">Mitchell</a></strong>
<strong><a href="">Yankton</a></strong>
<strong><a href="">Brookings</a></strong>
<?php
/*
* Loop through post objects (assuming this is a multi-select field) ( don't setup postdata )
* Using this method, the $post object is never changed so all functions need a seccond parameter of the post ID in question.
*/?>
<div class="row">
<div class="col-xs-12 related_videos secondary_color">
<h2 class="clearboth">Related Videos</h2>
</div>