No longer kept up to date.
Please see Sridhar's fork.
<?php | |
// For Genesis 2.0.0 and later: | |
add_filter( 'genesis_superfish_args_url', 'prefix_superfish_args_url' ); | |
/** | |
* Filter in URL for custom Superfish arguments. | |
* | |
* @author Gary Jones | |
* @link http://code.garyjones.co.uk/change-superfish-arguments |
<?php | |
add_filter( 'the_content', 'prefix_insert_post_ads' ); | |
/** | |
* Insert code for ads after second paragraph of single post content. | |
* | |
* @param string $content Post content | |
* | |
* @return string Amended content | |
*/ |
<?php | |
add_filter( 'wp_handle_upload', 'foo_strip_metadata_from_images_on_upload' ); | |
/** | |
* Overwrite the uploaded image with a new version that has no metadata. | |
* | |
* @param array $upload Array containing: | |
* - file: The path to the image file. | |
* - url: The URL to the image. | |
* - type: The MIME type of the image. |
<?php | |
add_shortcode( 'post_terms', 'child_post_terms_shortcode' ); | |
/** | |
* Add linked post taxonomy terms via shortcode. | |
* | |
* Not needed since Genesis 1.4.2 as it exists in Genesis. | |
* @author Ade Walker and Gary Jones | |
* @link http://code.garyjones.co.uk/post-taxonomy-terms-shortcode/ | |
* |
<div role="navigation"> | |
<ul role="menubar" aria-label="Menu Bar"> | |
<li role="presentation" tabindex="0"> | |
<a href="item-1.html" role="menuitem" id="nav-item-1" aria-haspopup="true">Item 1</a> | |
<ul role="menu" aria-expanded="false" aria-hidden="true" aria-labelledby="nav-item-1"> | |
<li role="presentation"><a href="item-1-1.html" role="menuitem">Item 1.1</a></li> | |
<li role="presentation"><a href="item-1-2.html" role="menuitem">Item 1.2</a></li> | |
<li role="presentation"><a href="item-1-3.html" role="menuitem">Item 1.3</a></li> | |
</ul> | |
</li> |
No longer kept up to date.
Please see Sridhar's fork.
<?php | |
$I = new RedirectsTester($scenario); | |
$I->wantTo('check 301 redirects are working'); | |
// First, test /login/ page gets rewritten to https:// | |
$I->seePermanentRedirectToHttpsFor('login/'); | |
$I->seePermanentRedirectToHttpsFor('login/?redirect_to=foo'); |
/* WARNING - Please read the notice below: | |
This file is part of the core Genesis Framework. DO NOT edit this file under any circumstances. Please do all modifications in the form of a child theme. | |
Copy the contents of this file to the child theme. Do not use @import, as the CSS included with Genesis might change in the future. | |
*/ | |
body { | |
direction: rtl; | |
unicode-bidi: embed; |
<?php | |
// Create color style options | |
add_theme_support( 'genesis-style-selector', array( | |
'theme-blue' => __( 'Blue', 'your-child-theme-text-domain' ), | |
'theme-green' => __( 'Green', 'your-child-theme-text-domain' ), | |
'theme-orange' => __( 'Orange', 'your-child-theme-text-domain' ), | |
'theme-red' => __( 'Red', 'your-child-theme-text-domain' ), | |
) ); |