Skip to content

Instantly share code, notes, and snippets.

View DigitalEssence's full-sized avatar

Hedley Phillips DigitalEssence

View GitHub Profile
@DigitalEssence
DigitalEssence / gist:06ba41b4be3e5a6b8ae9
Created April 2, 2015 15:53
CSS - Enfold - Align images vertically with text
.avia-image-container-inner {margin-top: 15px!important;}/*align images with text*/
@DigitalEssence
DigitalEssence / gist:93ee7fa4b14b18322a53
Created April 23, 2015 18:52
CSS - Enfold - WooCommerce - Remove product buttons opacity
.avia_cart_buttons{opacity: 1;}
@DigitalEssence
DigitalEssence / gist:c097e0571963828945fe
Created April 26, 2015 17:05
WordPress - WooCommerce - Change empty cart redirect button
<?php
//Change WooCommerce return to cart link
function change_empty_cart_button_url() {
return "/classes/";
}
add_filter( 'woocommerce_return_to_shop_redirect', 'change_empty_cart_button_url' );
?>
@DigitalEssence
DigitalEssence / gist:cbb4144853a506ed0d5c
Created May 3, 2015 17:14
WordPress - Enfold - Change social icon sizes
#top .social_bookmarks li a {font-size: 26px;} /*Social icons size*/
@media only screen and (min-width: 1140px) {
.responsive .container {
width: 1100px;
}}
@media only screen and (max-width: 990px) {
#whatwedoboxes .av_one_fourth .avia-image-container-inner img {
display: table !important;
margin: 0 auto !important;
}
}
@DigitalEssence
DigitalEssence / gist:925c234a8b94d6c365f0
Created November 2, 2015 17:31
WordPress - Enfold - CSS - position header logo
.inner-container .logo {padding-top: 40px; left: -75px;}
@DigitalEssence
DigitalEssence / gist:2381995b833518d43dc1
Created November 2, 2015 20:38
WordPress - Enfold - CSS - Remove bottom border from colour section
.main_color {border-style:none!important;} /* remove bottom border from colour section */
@DigitalEssence
DigitalEssence / regsiter-sidebar-widget
Created September 9, 2013 13:37
php to register a sidebar widget in Genesis
//* Register a new widget area in Genesis
genesis_register_sidebar( array(
'id' => 'widget-name',
'name' => __( 'Text to show in dashboard', 'custom-theme' ),
'description' => __( 'Dexcription to show.', 'custom-theme' ),
) );
@DigitalEssence
DigitalEssence / Edit Genesis Search Box Text
Created November 4, 2013 15:56
Edit Genesis Search Box Text
<?php
//* Do NOT include the opening php tag above
/**
* Customize the default text inside of search box
*/
add_filter( 'genesis_search_text', 'custom_search_box_text' );
function custom_search_box_text( $text ) {
return esc_attr( 'Search our website...' );