Skip to content

Instantly share code, notes, and snippets.

Clifford cliffordp

  • Oklahoma
Block or report user

Report or block cliffordp

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
cliffordp / q10.css
Last active Aug 26, 2015
q10 event list print styling for Twenty Fifteen theme
View q10.css
<style type="text/css" media="print"> .tribe-events-list-event-description, #tribe-events-bar, #tribe-events-footer, a.tribe-events-button, header, footer {
display: none !important;
} .tribe-events-list .type-tribe_events {
cliffordp / single-event-website-link-rel-nofollow.php
Created Aug 26, 2015
q7 --> add rel="nofollow" to a single event's "EVENT WEBSITE" -> "URL:" link
View single-event-website-link-rel-nofollow.php
cliffordp / ccnomarginshadow.less
Created Feb 21, 2014
Cool Carousel Section - Remove margin and shadow
View ccnomarginshadow.less
.ccnomarginshadow {
margin:0 auto 0px;
.box-shadow(0 0 0 #fff);
cliffordp / font-awesome-icons-for-quotes.less
Created Mar 6, 2014
Overriding PageLines DMS styles for blockquotes and Font Awesome icons for blockquotes
View font-awesome-icons-for-quotes.less
// Font Awesome icons before and after quotes
blockquote:before {
font-family: PageLinesFont;
content: @fa-var-quote-left; //works in DMS v2
//content:"\f10d"; //works in DMS prior to v2
color: @textColorAlt;
blockquote:after {
cliffordp / style.less
Created Apr 5, 2014
Override display of DMS 2 non-legacy PostLoop: hide .metahead and center featured images
View style.less
#site .pl-new-loop {
.metahead { //author info
.hentry {
&.multi-post {
padding-left: 0px; //override 100px since hiding .metahead
.metamedia { //featured images on archive and single post displays
View dms-makestuffinsidefullwidth.less
// from
// overriding dms/dms/less/pl-structure.less
body.display-boxed #site .boxed-wrap .pl-area.makestuffinsidefullwidth .pl-area-wrap > .pl-content {
padding-left: 0px;
padding-right: 0px;
body.display-full #site .pl-area.makestuffinsidefullwidth .pl-content {
max-width: none;
cliffordp / functions.php
Created May 3, 2014
Replace 'PageLines-' prefix for DMS Editor media uploads (from editor/editor.actions.php)
View functions.php
//replace 'PageLines-' prefix for DMS Editor media uploads (from editor/editor.actions.php)
add_filter( 'pl_up_image_prefix', 'my_pl_upload_prefix');
function my_pl_upload_prefix(){
return ''; //example result: 'filename.png'
//return 'My Keyword - '; //example result: 'My Keyword - filename.jpg'
//return get_bloginfo('name','raw') . ' - '; //example result: 'Site Name - filename.gif'
cliffordp / functions.php
Created May 3, 2014
Remove display of Karma Counter in DMS 2
View functions.php
//remove display of Karma Counter in DMS 2
remove_shortcode( 'pl_karma' );
add_shortcode( 'pl_karma', '__return_false' );
cliffordp / functions.php
Created May 13, 2014
Display trackbacks and pingbacks in DMS 2
View functions.php
// from --
add_filter( 'pl_list_comments', function() { return array( 'type' => 'all', 'avatar_size' => '60' ); } );
cliffordp / functions.php
Last active Aug 29, 2015
Adding custom SmugMug domain to oEmbed whitelist in WordPress (full regex version)
View functions.php
// From
// This version is based on the SmugMug code from wp-includes/class-oembed.php
// Even if you set both WWW and non-WWW versions as CNAMEs in your DNS settings, an oEmbed attempt to the wrong custom SmugMug domain (e.g. WWW if the custom domain in your SmugMug settings is non-WWW) will not work, which is why (www\.)? is not in the regex
// for a custom SmugMug subdomain like (notice the "backslash-dot" after the subdomain)
wp_oembed_add_provider( '#https?://?media\.mydomain\.com/.*#i', '', true );
// for a custom SmugMug domain like
You can’t perform that action at this time.