Sparkling-Child-Theme für Klimabündnis Hamm.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

65 lines
1.8 KiB

<?php
/**
* Child theme stylesheet einbinden in Abhängigkeit vom Original-Stylesheet
*/
function child_theme_styles() {
// wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'child-theme-css', get_stylesheet_directory_uri() .'/style.css'/* , array('parent-style')*/);
}
add_action( 'wp_enqueue_scripts', 'child_theme_styles' );
/*
function sparkling_archive_pages_title( $title ) {
if ( is_tag() ) {
$template = of_get_option( 'tag_title' );
if ( empty( $template ) ) {
return $title;
} else {
return sprintf( $template, single_tag_title( '', false ) );
}
} elseif ( is_category() ) {
$template = of_get_option( 'category_title' );
if ( empty( $template ) ) {
return $title;
} else {
return sprintf( $template, single_cat_title( '', false ) );
}
} elseif ( is_author() ) {
$template = of_get_option( 'author_title' );
if ( empty( $template ) ) {
return $title;
} else {
return sprintf( $template, get_the_author() );
}
} elseif ( is_year() ) {
$template = of_get_option( 'year_title' );
if ( empty( $template ) ) {
return $title;
} else {
return sprintf( $template, get_the_date( _x( 'Y', 'yearly archives date format', 'sparkling' ) ) );
}
} elseif ( is_month() ) {
$template = of_get_option( 'month_title' );
if ( empty( $template ) ) {
return $title;
} else {
return sprintf( $template, get_the_date( _x( 'F Y', 'monthly archives date format', 'sparkling' ) ) );
}
} elseif ( is_day() ) {
$template = of_get_option( 'day_title' );
if ( empty( $template ) ) {
return $title;
} else {
return sprintf( $template, get_the_date( _x( 'F j, Y', 'daily archives date format', 'sparkling' ) ) );
}
} else {
return $title;
}
}
//add_filter( 'get_the_archive_title', 'sparkling_archive_pages_title' );
*/