Skip to content

Instantly share code, notes, and snippets.

<button class="menu-toggle"><?php _e( 'Primary Menu', 'storefront' ); ?></button>
@jamiemarsland
jamiemarsland / gist:eae952d241ea165f242f
Last active August 29, 2015 14:15
Style Storefront Widgets
.widget-area .widget {
color: red;
font-size: 1em;
}
@jamiemarsland
jamiemarsland / gist:5f7fc3bcafdbd6713945
Created September 18, 2015 03:47
Divi full screen css
/* First we have to make the main header transparent */
#main-header {
background-color: transparent;
}
/* Then we turn off the footer */
#main-footer {
display: none;
@jamiemarsland
jamiemarsland / gist:4baca8664088025d5989
Created September 22, 2015 09:45
WooThemes Storefront fullscreen website CSS code
/* This sets the background image of the page. Just replace the page id and the url of the background image */
.page-id-43 {
background-image: url("http://176.32.230.250/storefront.com/wp-content/uploads/2015/09/record-shop.jpg");
background-size: cover;
}
/* This makes the header transparent so that the background image shows through */
.site-header {
.ppb-full-width-row.full-width-content {
padding: 0 !important;
}
@jamiemarsland
jamiemarsland / gist:3a13aca923f760954b075ea74684041d
Last active March 22, 2017 09:32
Fix for Post title not showing over featured image with Pootle Pagebuilder - add the following css to fix the issue
.full-image .ppb-post .ppb-blog-content {
z-index: 11;
}
@jamiemarsland
jamiemarsland / gist:c82f1489ce572d614cf206deb87f854a
Last active March 29, 2017 07:19
Add a read more link to the excerpt in blog posts when using pootle pagebuilder pro
add_filter( 'get_the_excerpt', function( $excerpt ) {
return
substr( $excerpt, 0, 230 ) .
' <a class="more" href="' . get_the_permalink() . '">More</a>';
}, 9999 );
@jamiemarsland
jamiemarsland / gist:33f4fc7a48c1a991633eb97a5632a403
Last active January 16, 2019 09:24
How to add a hover effect to Pootle Pagebuilder content areas
.ppb-hover-card .ppb-block {
position: relative;
}
.ppb-hover-card .ppb-block > * {
position: static;
}
.ppb-hover-card .ppb-block a.fill-parent-link {
display: block;
content: '';
background: rgba(0,0,0,0);
@jamiemarsland
jamiemarsland / gist:c7bcec002f3dc440a3a2628f91b294b3
Created March 30, 2017 13:03
How to add links to colored tiles in Pootle Pagebuilder
<a href="http://example.com" class="fill-parent-link">.</a>
@jamiemarsland
jamiemarsland / gist:07b01dfe1019e521aeda15504471209c
Created June 8, 2017 13:39
WooCommerce tiles fix (for Storefront Pro)
.storefront-pro-active .site ul.products .product-grid-item {
padding-top: 70%;
}