This file contains hidden or 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
//* Add Excerpt support to Pages in Genesis | |
add_post_type_support( 'page', 'excerpt' ); | |
//* Display Page Title and Page Excerpt (as Subtitle) after Header | |
add_action( 'genesis_header', 'susanta_remove_page_title'); | |
function susanta_remove_page_title () { | |
if ( is_singular( 'post' && 'page' ) && has_excerpt() && !is_front_page()) { | |
remove_action( 'genesis_entry_header', 'genesis_do_post_title' ); | |
add_action( 'genesis_after_header', 'susanta_after_header_content' ); |
This file contains hidden or 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
/* Styling for Entry Title and Excerpts */ | |
.post-hero { | |
background-size: cover; | |
background-repeat: no-repeat; | |
padding-top: 4%; | |
padding-bottom: 8%; | |
} | |
.post-hero .page-title { |
This file contains hidden or 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
//* Add Excerpt support to Pages in Genesis | |
add_post_type_support( 'page', 'excerpt' ); | |
//* Display Page Title and Page Excerpt (as Subtitle) after Header | |
add_action( 'genesis_header', 'blog_archive_remove_page_title'); | |
function blog_archive_remove_page_title () { | |
if (is_home() && get_option('page_for_posts')) { | |
add_action( 'genesis_after_header', 'blog_archive_after_header_content' ); |
This file contains hidden or 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
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> | |
<ins class="adsbygoogle" | |
style="display:block; text-align:center;" | |
data-ad-format="fluid" | |
data-ad-layout="in-article" | |
data-ad-client="ca-pub-0123456789101112" | |
data-ad-slot="9876543210"></ins> | |
<script> | |
(adsbygoogle = window.adsbygoogle || []).push({}); | |
</script> |
This file contains hidden or 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
<amp-ad width=300 height=250 | |
type="adsense" | |
data-ad-client="ca-pub-0123456789101112" | |
data-ad-slot="9876543210"> | |
</amp-ad> |
This file contains hidden or 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
# Redirect from AMP to non-AMP path | |
RewriteEngine On | |
RewriteCond %{REQUEST_URI} (.+)/amp(.*)$ | |
RewriteRule ^ %1/ [R=301,L] |
This file contains hidden or 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 PHP 5.4 | |
# Use PHP54 as default | |
AddHandler application/x-httpd-php54 .php | |
<IfModule mod_suphp.c> | |
suPHP_ConfigPath /opt/php54/lib | |
</IfModule> | |
RewriteEngine on | |
RewriteCond %{HTTP_HOST} ^olddomain.com [NC,OR] | |
RewriteCond %{HTTP_HOST} ^www.olddomain.com [NC] | |
RewriteRule ^(.*)$ http://newdomain.com/$1 [L,R=301,NC] |
This file contains hidden or 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
*|RSSITEMS:|* | |
<h2 class="mc-toc-title"><a href="*|RSSITEM:URL|*" target="_blank">*|RSSITEM:TITLE|*</a></h2> | |
<em>By *|RSSITEM:AUTHOR|* on *|RSSITEM:DATE|*</em><br /> | |
*|RSSITEM:CONTENT|*<br /> | |
<br /> | |
<a href="*|RSSITEM:URL|*" target="_blank">Read in browser »</a><br /> | |
<br /> | |
*|END:RSSITEMS|*<br /> | |
<br /> | |
<h3 class="h3">Recent Articles:</h3> |