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 | |
// front-page.php | |
// set full width layout | |
add_filter ( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' ); | |
// add section right after header without inner div box for full width | |
add_action( 'genesis_after_header', 'aj_home_double_opt_in' ); |
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 | |
/* | |
Plugin Name: calc | |
Plugin URI: | |
Description: Calculates loans/how much can be borrowed | |
Version: 1.0 | |
Author: Mikey | |
Author URI: | |
*/ |
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
// insert into functions.php | |
add_action( 'genesis_before','remove_homepage_content' ); | |
function remove_homepage_content() { | |
if (is_front_page() ) { | |
remove_action( 'genesis_loop', 'genesis_do_loop' ); | |
} | |
} |
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
// insert into functions.php | |
//* Add new image sizes | |
add_image_size('grid-thumbnail', 100, 100, TRUE); |
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 | |
// front-page.php | |
// set full width layout | |
add_filter ( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' ); | |
// add section right after header without inner div box for full width | |
add_action( 'genesis_after_header', 'aj_feature_box' ); |
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
// insert into functions.php | |
// please activate featured image in Genesis settings | |
// show thumbnail in blog post | |
add_action( 'genesis_entry_header', 'single_post_featured_image', 15 ); | |
function single_post_featured_image() { | |
if ( ! is_singular( 'post' ) ) return; |
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
$wp_query = new WP_Query( 'posts_per_page=3' ); | |
$first = ' first'; | |
if ( $wp_query->have_posts() ) : | |
while ( $wp_query->have_posts() ) : | |
$wp_query->the_post(); | |
printf( "<article class=\"one-third{$first}\">%s</article>", get_the_title() ); | |
if ($first != '') $first = ''; |
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
<a href="" class="filter_remove">Alle</a> | |
<a href="" class="filter_table">Funktion X</a> | |
<a href="" class="filter_table">Funktion Y</a> | |
<a href="" class="filter_table">Nichts</a> | |
[table id=1 /] | |
<script> | |
jQuery(document).ready(function($) { | |
$('a.filter_table').click(function(e) { |
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
//* Remove Credits & more | |
remove_action('genesis_footer', 'genesis_do_footer'); |
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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
#RewriteBase / | |
# force to use www.domain.de | |
RewriteCond %{HTTP_HOST} !^www\. | |
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] | |
</IfModule> |
OlderNewer