This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'tribe_get_event_website_link', 'beatrice_event_website_rel_nofollow', 10, 2); | |
function beatrice_event_website_rel_nofollow( $html ) { | |
// bail if not an HTML link element | |
if ( false === strripos( $html, '<a ' ) ) { | |
return $html; | |
} | |
// bail if already has 'rel=' in HTML link element |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.ccnomarginshadow { | |
.cc-wrapper{ | |
margin:0 auto 0px; | |
.cc-viewport{ | |
.box-shadow(0 0 0 #fff); | |
border:none; | |
left:0px; | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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' ); } ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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: |
OlderNewer