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
<meta property="og:site_name" content="<perch:setting id="perch_blog_site_name" />" /> | |
<meta property="og:url" content="<perch:blog id="domain" type="hidden" /><perch:blog id="postURL" type="hidden" />" /> | |
<perch:if exists="og_title"><!--* If Meta and Social tab data available (i.e Post saved), show this *--> | |
<meta property="og:title" content="<perch:blog id="og_title" label="Social title" type="text" escape="true" />" /> | |
<meta property="og:description" content="<perch:blog id="og_description" label="Social description" type="textarea" size="s" escape="true" />" /> | |
<perch:else/><!--* else, show the blog post title and excerpt *--> | |
<meta property="og:title" content="<perch:blog id="postTitle" type="text" escape="true" />" /> | |
<meta property="og:description" content="<perch:blog id="excerpt" type="textarea" size="s" escape="true" />" /> | |
</perch:if><!--* *--> | |
<perch:if exists="og_image"> |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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 page number to Yoast meta description and page titles to avoid duplication (when using customised titles/descriptions) | |
if ( ! function_exists( 'cvw_add_page_number' ) ) | |
{ | |
function cvw_add_page_number( $s ) | |
{ | |
global $page; | |
$paged = get_query_var( 'paged' ) ? get_query_var( 'paged' ) : 1; | |
! empty ( $page ) && 1 < $page && $paged = $page; |
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
<div class="arrow_box"> | |
<h1 class="logo">css arrow please!</h1> | |
</div> |
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
<perch:label for="subject">Subject</perch:label> | |
<perch:input type="select" id="subject" options="<perch:content id="subject" type="text" label="Subject" help="Add subjects separated by commas" />" id="subjectoptions" /> | |
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
function after_post_content($content) { | |
if(!is_feed() && !is_home()) { | |
$content.= '<h4>Like this post?</h4>'; | |
$content.= '<p><a href="http://example.com/subscribe">Subscribe to our newsletter</a>!</p>'; | |
} | |
return $content; | |
} | |
add_filter ('the_content', 'after_post_content'); |
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
Perch.UserConfig.redactor = function(){ | |
var get = function(profile, config, field) { | |
if (config.plugins.indexOf('source') === -1) config.plugins.push('source'); | |
if (config.plugins.indexOf('fontcolor') === -1) config.plugins.push('fontcolor'); | |
if (config.plugins.indexOf('alignment') === -1) config.plugins.push('alignment'); | |
return config; | |
}; |
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
Perch.UserConfig.redactor = function(){ | |
var get = function(profile, config, field) { | |
return { buttons: ['bold', 'italic'] } | |
}; | |
var load = function(cb) { | |
cb(); | |
}; |
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
h1 { | |
background: #000000; | |
color: #FFFFFF; | |
font-size: 20px; | |
font-weight: bold; | |
padding: 5px; | |
position: relative; | |
} | |
h1:after { | |
border-color: #000000 transparent transparent; |
OlderNewer