'Right Sidebar', 'id' => 'right-sidebar', 'description' => 'Widgets in this area will be shown on the right side.', 'before_title' => '

', 'after_title' => '

', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' )); register_sidebar(array( 'name' => 'Bottom Sidebar 1', 'id' => 'bottom-sidebar-1', 'description' => 'Widgets in this area will be shown on the footer.', 'before_title' => '

', 'after_title' => '

', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' )); register_sidebar(array( 'name' => 'Bottom Sidebar 2', 'id' => 'bottom-sidebar-2', 'description' => 'Widgets in this area will be shown on the footer.', 'before_title' => '

', 'after_title' => '

', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' )); register_sidebar(array( 'name' => 'Bottom Sidebar 2', 'id' => 'bottom-sidebar-3', 'description' => 'Widgets in this area will be shown on the footer.', 'before_title' => '

', 'after_title' => '

', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' )); add_action( 'init', 'register_my_menus' ); function wp_bac_breadcrumb() { //Variable (symbol >> encoded) and can be styled separately. //Use >> for different level categories (parent >> child >> grandchild) $delimiter = ' » '; //Use bullets for same level categories ( parent . parent ) $delimiter1 = ''; //text link for the 'Home' page $main = 'Home'; //Display only the first 30 characters of the post title. $maxLength= 30; //variable for archived year $arc_year = get_the_time('Y'); //variable for archived month $arc_month = get_the_time('F'); //variables for archived day number + full $arc_day = get_the_time('d'); $arc_day_full = get_the_time('l'); //variable for the URL for the Year $url_year = get_year_link($arc_year); //variable for the URL for the Month $url_month = get_month_link($arc_year,$arc_month); /*is_front_page(): If the front of the site is displayed, whether it is posts or a Page. This is true when the main blog page is being displayed and the 'Settings > Reading ->Front page displays' is set to "Your latest posts", or when 'Settings > Reading ->Front page displays' is set to "A static page" and the "Front Page" value is the current Page being displayed. In this case no need to add breadcrumb navigation. is_home() is a subset of is_front_page() */ //Check if NOT the front page (whether your latest posts or a static page) is displayed. Then add breadcrumb trail. if (!is_front_page()) { //If Breadcrump exists, wrap it up in a div container for styling. //You need to define the breadcrumb class in CSS file. echo ''; } } add_filter('the_content', 'my_addlightboxrel'); function my_addlightboxrel($content) { global $post; $pattern ="//i"; $replacement = ''; $content = preg_replace($pattern, $replacement, $content); return $content; } add_theme_support('post-thumbnails'); if (function_exists('add_theme_support')) { add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 350, 320, true ); // default thumbnail size add_image_size('my-custom-thumb', 350, 220, true); //custom size add_image_size('my-article-image', 700, 500, true); //custom size } function excerpt_read_more_link($output) { global $post; return $output . 'Weiterlesen...'; } add_filter('the_excerpt', 'excerpt_read_more_link'); function custom_excerpt_length( $length ) { return 20; } add_filter( 'excerpt_length', 'custom_excerpt_length', 999 ); $args = array( 'default-color' => '000000', 'default-image' => get_template_directory_uri() . '/img/bg.jpg', ); add_theme_support( 'custom-background', $args ); function my_theme_add_editor_styles() { add_editor_style( 'editor.css' ); } add_action( 'init', 'my_theme_add_editor_styles' ); add_theme_support( 'automatic-feed-links' );