Community Forums › Forums › Archived Forums › General Discussion › strange content next to footer menü navigation
Tagged: homesite code php need more?
- This topic has 4 replies, 2 voices, and was last updated 10 years, 4 months ago by reto schatzmann.
-
AuthorPosts
-
December 26, 2013 at 6:33 am #81230reto schatzmannMember
Impressum "class="last-menu-item szeile" class="nav">" how can I delete this text
http://schatzmann-treuhand.org/wordpress/
I pay everyone who has a quick solution... thank youDecember 26, 2013 at 6:49 am #81231Genesis DeveloperMemberCan you paste your functions.php file's code at pastebin.com and send the link here? So we can check the code.
December 26, 2013 at 7:43 am #81237reto schatzmannMember<?php
// Start the engine
require_once(TEMPLATEPATH.'/lib/init.php');require_once( 'lib/init.php' );
// Calls the theme's constants & files
augustus_init();// Child theme (do not remove)
define( 'CHILD_THEME_NAME', 'Augustus Child Theme' );
define( 'CHILD_THEME_URL', 'http://www.web-savvy-marketing.com/website-design/' );// Editor Styles
add_editor_style( 'editor-style.css' );// Create additional color style options
add_theme_support( 'genesis-style-selector',
array(
'augustus-red-tan' => 'Red and Tan',
'augustus-black-grey' => 'Black and Grey',
'augustus-light-blue' => 'Light Blue',
'augustus-green' => 'Green',
)
);// Add Viewport meta tag for mobile browsers
add_action( 'genesis_meta', 'wsm_add_viewport_meta_tag' );
function wsm_add_viewport_meta_tag() {
echo '<meta name="viewport" content="width=device-width, initial-scale=1.0"/>';
}// Force Stupid IE to NOT use compatibility mode
add_action('genesis_meta','wsm_keep_ie_modern');
function wsm_keep_ie_modern() {
echo '<meta http-equiv="X-UA-Compatible" content="IE=edge" />'."\n";
}// Add new image sizes
add_image_size('Blog Thumbnail', 145, 165, TRUE);// Reposition the featured image
remove_action( 'genesis_post_content', 'genesis_do_post_image' );
add_action('genesis_before_post_title','genesis_do_post_image',1) ;// Modify the author box title
add_filter('genesis_author_box_title', 'wsm_author_box_title');
function wsm_author_box_title($title) {
$title = sprintf( '<h3>%s</h3>', __('About the Author', 'augustus') );
return $title;
}// Modify the size of the Gravatar in the author box
add_filter( 'genesis_author_box_gravatar_size', 'wsm_author_box_gravatar_size' );
function wsm_author_box_gravatar_size($size) {
return '70';
}/** Customize the post info function */
add_filter( 'genesis_post_info', 'post_info_filter' );
function post_info_filter($post_info) {
if ( is_single() ) { $post_info = '[post_date before="Posted on: " format="m.d.y"] [post_author before="By: "][post_comments]'; }
else { $post_info = '[post_date before="Posted on: " format="m.d.y"] [post_author before="By: "]'; }
return $post_info;
}// Customize the post meta function
add_filter( 'genesis_post_meta', 'post_meta_filter' );
function post_meta_filter($post_meta) {
if ( is_single()) {
$post_meta = '[post_categories sep=", " before="<div class=\'post-categories\'>Categories: " after="</div>"] [post_tags sep=", " before="<div class=\'post-tags\'>Tags: " after="</div>"]';
return $post_meta;
}
}// Add Read More button to blog page and archives
add_filter( 'excerpt_more', 'wsm_add_excerpt_more' );
add_filter( 'get_the_content_more_link', 'wsm_add_excerpt_more' );
add_filter( 'the_content_more_link', 'wsm_add_excerpt_more' );
function wsm_add_excerpt_more( $more ) {
return '<span class="more-link">Read More ></span>';
}/** Edit comments form text **/
add_filter('genesis_comment_form_args','custom_email_note');
function custom_email_note($args) {$args = array(
'fields' => array(
'author' => '<p class="clearit comment-form-author">' .
'<label for="author">' . __( 'Name', 'genesis' ) . '</label> ' .
( $req ? '<span class="required">*</span>' : '' ) .
'<input id="author" name="author" type="text" value="Name" size="30" tabindex="1"' . $aria_req . ' />' .
'</p><!-- #form-section-author .form-section -->','email' => '<p class="clearit comment-form-email">' .
'<label for="email">' . __( 'Email', 'genesis' ) . '</label> ' .
( $req ? '<span class="required">*</span>' : '' ) .
'<input id="email" name="email" type="text" value="Email" size="30" tabindex="2"' . $aria_req . ' />' .
'</p><!-- #form-section-email .form-section -->',
),'comment_field' => '<p class="clearit comment-form-comment">' .
'<textarea id="comment" name="comment" cols="45" value="Message" rows="8" tabindex="4" aria-required="true"></textarea>' .
'</p><!-- #form-section-comment .form-section -->','title_reply' => __( 'Leave a Comment', 'genesis' ), //default='Speak Your Mind'; WordPress deafult: __( 'Leave a Reply' )
'label_submit' => __( 'Submit > ', 'genesis' ), //default='Post Comment'
'comment_notes_before' => '','comment_notes_after' => '',
);
return $args;
}/*
* Add support for gravity form Deafault Field value
*/
add_action('get_header', 'augustus_gform_scripts');
function augustus_gform_scripts() {
wp_enqueue_script( 'inputfileds',CHILD_URL.'/lib/js/clear_form_fields.js', array('jquery'), '1.0', TRUE);
}/*
* Add support for targeting individual browsers via CSS
* See readme file located at /lib/js/css_browser_selector_readm.html
* for a full explanation of available browser css selectors.
*/
add_action('get_header', 'wsm_load_scripts');
function wsm_load_scripts() {
wp_enqueue_script('browserselect', CHILD_URL.'/lib/js/css_browser_selector.js', array('jquery'), '0.4.0', TRUE);
}// Structural Wrap
add_theme_support( 'genesis-structural-wraps', array( 'header', 'nav', 'subnav', 'inner', 'footer-widgets', 'footer' ) );// Changes Default Navigation to Primary & Footer
add_theme_support ( 'genesis-menus' ,
array (
'primary' => 'Primary Navigation Menu' ,
'footer' => 'Footer Navigation Menu',
)
);// Remove Layouts
genesis_unregister_layout( 'content-sidebar-sidebar' );
genesis_unregister_layout( 'sidebar-sidebar-content' );
genesis_unregister_layout( 'sidebar-content-sidebar' );// Setup Sidebars
unregister_sidebar('sidebar-alt');genesis_register_sidebar( array(
'id' => 'rotator',
'name' => __( 'Rotator', 'augustus' ),
'description' => __( 'This is the image rotator section.', 'augustus' ),
) );
genesis_register_sidebar( array(
'id' => 'home-cta',
'name' => __( 'Home CTA', 'augustus' ),
'description' => __( 'This is the Home Page Call To Actions.', 'augustus' ),
) );
genesis_register_sidebar( array(
'id' => 'home-main-content',
'name' => __( 'Home Main Content', 'augustus' ),
'description' => __( 'This is the Home Page Main Content.', 'augustus' ),
) );
genesis_register_sidebar( array(
'id' => 'home-sidebar',
'name' => __( 'Home Sidebar', 'augustus' ),
'description' => __( 'This is the Home Page Sidebar.', 'augustus' ),
) );
genesis_register_sidebar( array(
'id' => 'blog-sidebar',
'name' => __( 'Blog Sidebar', 'augustus' ),
'description' => __( 'This is the Blog Page Sidebar.', 'augustus' ),
) );
genesis_register_sidebar( array(
'id' => 'page-sidebar',
'name' => __( 'Page Sidebar', 'augustus' ),
'description' => __( 'This is the Page Sidebar.', 'augustus' ),
) );// add first and last classes to navigation
add_filter('wp_nav_menu', 'wsm_add_first_and_last');
function wsm_add_first_and_last($output) {
$output = preg_replace('/class="menu-item/', 'class="first-menu-item', $output, 1);
$output = substr_replace($output, 'class="last-menu-item ', strripos($output, 'class="menu-item'), strlen('class="menu-item'));
return $output;
}December 26, 2013 at 7:46 am #81239reto schatzmannMember<?php
do_action( 'genesis_home' );add_action( 'genesis_after_header', 'augustus_home_top');
function augustus_home_top() {
genesis_widget_area( 'rotator', array( 'before' => '<div class="rotator wrap widget-area">' ) );
genesis_widget_area( 'home-cta', array( 'before' => '<div class="home-cta wrap widget-area">' ) );
}// Remove the standard loop
remove_action( 'genesis_loop', 'genesis_do_loop' );// Execute custom child loop
add_action( 'genesis_loop', 'augustus_home_loop_helper' );
function augustus_home_loop_helper() {
genesis_widget_area( 'home-main-content', array( 'before' => '<div class="home-main widget-area">' ) );
}genesis();
December 26, 2013 at 7:46 am #81241reto schatzmannMember<?php
/**
* Augustus Child Init File
*
* This file calls the Child and Genesis init.php files.
*
* @category Augustus
* @package Admin
* @author Web Savvy Marketing
* @copyright Copyright (c) 2012, Web Savvy Marketing
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
* @since 1.0.0
*//**
* This function defines the Genesis Child theme constants
* and calls necessary theme files
*
*/
function augustus_init() {
// Child theme (do not remove)
define( 'CHILD_THEME_NAME', 'Augustus' );
define( 'CHILD_THEME_URL', 'http://www.web-savvy-marketing.com/store/' );
define( 'AUGUSTUS_SETTINGS_FIELD', 'wsm' );
define( 'SOLILOQUY_LICENSE_KEY', 'YinP3ZMcnSl0kc+QbvQnzyXBfKRYyPm8p1DJfsC5nLY=' );// Developer Information (do not remove)
define( 'CHILD_DEVELOPER', 'Web Savvy Marketing' );
define( 'CHILD_DEVELOPER_URL', 'http://www.web-savvy-marketing.com/' );/** Define Directory Location Constants */
if ( ! defined( 'CHILD_DIR' ) )
define( 'CHILD_DIR', get_stylesheet_directory() );/** Define URL Location Constants */
if ( ! defined( 'CHILD_URL' ) )
define( 'CHILD_URL', get_stylesheet_directory_uri() );
define( 'AUGUSTUS_LIB', CHILD_URL . '/lib' );
define( 'AUGUSTUS_IMAGES', CHILD_URL . '/images' );
define( 'AUGUSTUS_ADMIN', AUGUSTUS_LIB . '/admin' );
define( 'AUGUSTUS_ADMIN_IMAGES', AUGUSTUS_LIB . '/images' );
define( 'AUGUSTUS_JS' , CHILD_URL .'/js' );
define( 'AUGUSTUS_CSS' , CHILD_URL .'/css' );// Load admin files when necessary
if ( is_admin() ) {// Plugins
include_once( CHILD_DIR . '/lib/plugins/plugins.php' );// Theme Settings
require_once( CHILD_DIR . '/lib/admin/augustus-theme-settings.php' );}
//Structure
include_once( CHILD_DIR . '/lib/structure/sidebar.php');
include_once( CHILD_DIR . '/lib/structure/footer.php');// Shortcodes
include_once( CHILD_DIR . '/lib/functions/shortcodes.php');// Setup Widgets
include_once( CHILD_DIR . '/lib/widgets/call-to-action.php');
include_once( CHILD_DIR . '/lib/widgets/widget-social.php');
include_once( CHILD_DIR . '/lib/widgets/wsm-featured-page.php');// Remove Edit link
add_filter( 'edit_post_link', '__return_false' );}
add_filter( 'http_request_args', 'wsm_dont_update_theme', 5, 2 );
/**
* Don't Update Theme
* If there is a theme in the repo with the same name,
* this prevents WP from prompting an update.
*
* @author Mark Jaquith
* @link http://markjaquith.wordpress.com/2009/12/14/excluding-your-plugin-or-theme-from-update-checks/
*
* @param array $r Request arguments
* @param string $url Request url
* @return array $r Request arguments
*/
function wsm_dont_update_theme( $r, $url ) {
if ( 0 !== strpos( $url, 'http://api.wordpress.org/themes/update-check' ) )
return $r; // Not a theme update request. Bail immediately.
$themes = unserialize( $r['body']['themes'] );
unset( $themes[ get_option( 'template' ) ] );
unset( $themes[ get_option( 'stylesheet' ) ] );
$r['body']['themes'] = serialize( $themes );
return $r;
} -
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.