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
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">
.events-list.events-archive .tribe-events-list-event-description,
.events-list.events-archive #tribe-events-bar,
.events-list.events-archive #tribe-events-footer,
.events-list.events-archive a.tribe-events-button,
.events-list.events-archive header,
.events-list.events-archive footer {
display: none !important;
}
.events-list.events-archive .tribe-events-list .type-tribe_events {
@cliffordp
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
cliffordp / ccnomarginshadow.less
Created Feb 21, 2014
Cool Carousel Section - Remove margin and shadow
View ccnomarginshadow.less
.ccnomarginshadow {
.cc-wrapper{
margin:0 auto 0px;
.cc-viewport{
.box-shadow(0 0 0 #fff);
border:none;
left:0px;
}
}
}
@cliffordp
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
q:before,
blockquote:before {
font-family: PageLinesFont;
content: @fa-var-quote-left; //works in DMS v2
//content:"\f10d"; //works in DMS prior to v2
color: @textColorAlt;
}
q:after,
blockquote:after {
@cliffordp
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
display:none;
}
.hentry {
&.post,
&.multi-post {
padding-left: 0px; //override 100px since hiding .metahead
}
.metamedia { //featured images on archive and single post displays
View dms-makestuffinsidefullwidth.less
// from http://www.pagelinestheme.com/make-content-width-section-full-width/
// 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
cliffordp / functions.php
Created May 3, 2014
Replace 'PageLines-' prefix for DMS Editor media uploads (from editor/editor.actions.php)
View functions.php
<?php
//from http://www.pagelinestheme.com/remove-customize-dms-editors-media-uploads-prefix/
//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
cliffordp / functions.php
Created May 3, 2014
Remove display of Karma Counter in DMS 2
View functions.php
<?php
//from http://www.pagelinestheme.com/removing-dms-2-karma-counter/
//remove display of Karma Counter in DMS 2
remove_shortcode( 'pl_karma' );
add_shortcode( 'pl_karma', '__return_false' );
@cliffordp
cliffordp / functions.php
Created May 13, 2014
Display trackbacks and pingbacks in DMS 2
View functions.php
<?php
// from http://www.pagelinestheme.com/dms-trackbacks-pingbacks/ -- https://github.com/pagelines/DMS/issues/741#issuecomment-42981582
// http://codex.wordpress.org/Function_Reference/wp_list_comments
add_filter( 'pl_list_comments', function() { return array( 'type' => 'all', 'avatar_size' => '60' ); } );
@cliffordp
cliffordp / functions.php
Last active Aug 29, 2015
Adding custom SmugMug domain to oEmbed whitelist in WordPress (full regex version)
View functions.php
<?php
// From http://tourkick.com/2014/smugmug-custom-domain-oembed-wordpress/
// 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 http://media.mydomain.com (notice the "backslash-dot" after the subdomain)
wp_oembed_add_provider( '#https?://?media\.mydomain\.com/.*#i', 'http://api.smugmug.com/services/oembed/', true );
// for a custom SmugMug domain like http://mydomain.com:
You can’t perform that action at this time.