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 / 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 / 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>
@gera3d
gera3d / video_top.txt
Last active May 31, 2016 18:36
Video Top
Old Version
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<a class="fancybox-youtube" href="http://youtu.be/A2BC3s1Pg8U?autoplay=1&amp;autohide=1&amp;rel=0&amp;showinfo=0"><span id="playhover"></span><img class="alignnone size-large wp-image-134" src="/wp-content/uploads/2015/08/Dental-Implant-Proc-Harris-358x200.jpg" alt="Dental-Implant-Proc--Harris" width="358" height="200" /></a>
</div>
</div>
New Version
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
@gera3d
gera3d / gist:df7706940f577b2168f29ed4ab6cfb50
Created June 2, 2016 16:11
Instructions Second Language - Rules
// Add Sidebar with Menu just for this page type / If Instructions Second Language is in place then add that menu if not add Instructions
add_action( 'genesis_before_sidebar_widget_area', 'nuvo_add_custom_menu' );
function nuvo_add_custom_menu () {
echo '<div class="spacer10"></div><div class="widget-wrap col-xs-6 col-md-12">';
if ( is_nav_menu( 'Instructions Second Language' ) ) {
wp_nav_menu( array('menu' => 'Instructions Second Language' ));
} else {
wp_nav_menu( array('menu' => 'Instructions' ));
}
echo '</div>';