Skip to content

Instantly share code, notes, and snippets.

View phpbits's full-sized avatar
🎯
Focusing

Jeffrey Carandang phpbits

🎯
Focusing
View GitHub Profile
@phpbits
phpbits / below_header.php
Created November 6, 2015 04:44
Display Hero for Genesis Below the Header Section
<?php
/*
* Override Settings Option for Full Height & Behind Header
*/
add_filter('hero4genesis_class', 'hero_below_header');
function hero_below_header($class){
if( is_page() ){
$key = array_search('hero4genesis-behind', $class);
unset($class[ $key ]);
@phpbits
phpbits / style.css
Created November 6, 2015 05:42
Remove Hero Padding
.hero4genesis-behind-header .hero4genesis-behind{ padding: 0px; }
@phpbits
phpbits / footer.php
Created November 6, 2015 06:55
Move Genesis Hero Section
@phpbits
phpbits / Contract Killer 3.md
Created February 27, 2016 11:58 — forked from malarkey/Contract Killer 3.md
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: October 8th 2015
  • Original post

@phpbits
phpbits / Hosting contract killer
Created February 27, 2016 12:00 — forked from MikeRawlins/Hosting contract killer
This is an additional paragraph for the excellent Contract Killer https://gist.github.com/malarkey/4031110
Hosting
We provide hosting for our own built websites on our preferred hosting provider <hosting provider name>.
Based on their SLA we endeavor to have 99.9% uptime on our servers measured annually.
There may of course be times when the server will not be available, this can be scheduled or unscheduled.
Scheduled downtime is when we know it is going to happen and tell you about it in advance. Scheduled downtime will wherever possible, almost certainly be outside of normal office hours. We’ll do our stuff in the evening or at weekend to minimize impact on your business.
There may be very rare occasions when we need to restart the server during normal office hours and it is not possible to inform you before hand. We don’t make these decisions lightly and if this does happen we apologise.
@phpbits
phpbits / widget.css
Created May 13, 2016 10:51
Manually Adding Custom Styles to WordPress Widgets
.widget_search#search-4{
background-color: #19a87d;
color: #fff;
}
.widget_search#search-4 .widget-title{
color: #fff;
border: 1px solid #fff;
}
@phpbits
phpbits / widgets.css
Created May 13, 2016 10:52
Using a Plugin to Add Custom Styles to WordPress Widget
.widget.newsletter-green{
background-color: #19a87d;
color: #fff;
}
.widget.newsletter-green input{
border: 1px solid #fff;
}
.widget.newsletter-green input[type="submit"], .widget.newsletter-green button{
background-color: #ea6a1b;
color #fff;
@phpbits
phpbits / testimonials_cpt.php
Last active September 30, 2016 07:44
Create Custom Post Type for Testimonials
<?php
//Create CPT for testimonials
add_action( 'init', 'testimonials_CPT', 0 );
function testimonials_CPT() {
$labels = array(
'name' => __( 'Testimonials', 'focuswp' ),
'singular_name' => __( 'Testimonials', 'focuswp' ),
'menu_name' => __( 'Testimonials', 'focuswp' ),
'name_admin_bar' => __( 'Testimonials', 'focuswp' ),
@phpbits
phpbits / focus_display.php
Created September 30, 2016 07:57
Manage Focus WordPress Slider Display for Testimonials
<?php
//remove date meta display
add_action( 'focuswp_before_slide', 'focuswp_before_custom', 40 );
function focuswp_before_custom( $params ){
if( $params['item']->post_type == 'testimonials' ){
remove_action( 'focuswp_content_meta', array( $params['this'], 'slide_meta' ));
}
}
@phpbits
phpbits / testimonials_styles.css
Last active September 30, 2016 08:45
Genesis Testimonials Slider Custom CSS
.testimonial-wrap{
color: #fff;
padding-top: 50px;
padding-bottom: 50px;
margin-bottom: 50px;
background: rgba(118, 184, 82, 0.9); /** Change to your preferred color **/
text-align: center;
}
.testimonial-wrap span.above-title{
display: block;