Skip to content

Instantly share code, notes, and snippets.

add_filter('pro_framework_general_capability','test_hide');
function test_hide() {
return 'editor';
}
@proframework
proframework / gist:7553481
Created November 19, 2013 22:10
Add custom Pro Framework site title and tagline
<div class="main-title">
<h1 class="site-title"><a rel="home" title="Your Site Title" href="YOUR WEBSITE URL">Your Site Title</a></h1>
<div class="tagline">Your tagline with a <br /> break in it.</div>
</div>
@proframework
proframework / gist:6911788
Created October 10, 2013 01:47
Remove blue image highlight in firefox
.soliloquy img {
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-o-user-select: none;
user-select: none;
}
@proframework
proframework / gist:6582282
Created September 16, 2013 15:36
Hook inside Pro Framework navigation
function james_add_nav()
{ ?>
<div class="some-div">
Stuff for inside the nav
</div>
<?php }
add_action('proframework_inside_navigation','james_add_nav');
@proframework
proframework / gist:6498441
Created September 9, 2013 16:58
How to center elements
.copyright,
#footer-widgets {
text-align:center;
}
if ( $width == 'false' ) $width = false;
if ( $height == 'false' ) $height = false;
// If the width or height are null, turn off cropping
if ( empty($width) or empty($height) ) $crop_position = false;
$image = matthewruddy_image_resize($resized_image,$width, $height, $crop_position);
echo '<img src="' . $image['url'] . '" width="' . $width . '" height="' . $height . '" alt="" />';
@proframework
proframework / gist:6356459
Last active December 21, 2015 19:48
Turn the portfolio link into a nice button.
a.portfolio-more {
text-align: center;
text-decoration: none;
padding: 4px 5px;
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.2);
-moz-box-shadow: 0 1px 2px rgba(0,0,0,.2);
box-shadow: 0 1px 2px rgba(0,0,0,.2);
color: #222 !important;
border: 1px solid #b7b7b7;
background: #fff;
@proframework
proframework / gist:6105118
Created July 29, 2013 15:24
Wrap an image around text
<img src="IMAGE-SRC" class="alignleft" />The image will float to the left of this text...
<img src="IMAGE-SRC" class="alignright" />The image will float to the right of this text...
<span style="color:#000;font-family:Arial, Helvetica, sans-serif;">This text is black and in Arial</span>. This is default text, <span style="font-style:italic;">but I'm italic..</span>.
@proframework
proframework / gist:5878769
Created June 27, 2013 18:02
Adding styling to widget menu in WordPress
/* removes padding and brings menu items right up against edges of widget.
* make margin 0 to have spacing between widget border and menu
*/
.custom .columns ul ul.menu {
padding: 0;
margin: -15px;
}
/* remove padding and marin from lists */
.columns ul li ul li {