Es geht darum das erste Element mit einem speziellen Klassen-Wert (class="hinweis") anzusprechen.
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 | |
// Excerpts auf Seiten | |
add_post_type_support('page', 'excerpt'); | |
?> |
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 | |
//oEmbed-Breite | |
if (!isset($content_width)) $content_width = 550; | |
?> |
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 | |
add_filter( 'xmlrpc_enabled', '__return_false' ); | |
?> |
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 | |
// Anführungszeichen | |
function gerade_anfuehrungszeichen( $translations, $text, $context, $domain ) { | |
if ( 'opening curly single quote' == $context && '‘' == $text ) {$translations = ''';} | |
if ( 'closing curly single quote' == $context && '’' == $text ) {$translations = ''';} | |
if ( 'opening curly double quote' == $context && '“' == $text ) {$translations = '"';} | |
if ( 'closing curly double quote' == $context && '”' == $text ) {$translations = '"';} | |
return $translations; | |
} |
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 | |
function hide_categories_terms($terms, $post_id, $taxonomy) { | |
// Kategorienamen ausblenden (den Slug eintragen und durch Komata trennen) | |
$exclude = array('aktualisieren', 'rechtschreibung'); | |
if (!is_admin()) { | |
foreach($terms as $key => $term){ | |
if($term->taxonomy == "category"){ | |
if(in_array($term->slug, $exclude)) unset($terms[$key]); |
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
RewriteEngine On | |
RewriteCond %{HTTPS} !=on | |
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] |