Lupen-Zeichen im Sende-Button
Lupen-Icon im Sende-Button. Einmal als Symbol und das andere Mal als Font-Icon
<?php | |
// Als erstes sorgst du dafür dass nicht eine zusammenfassende CSS generiert wird | |
add_filter( 'jetpack_implode_frontend_css', '__return_false' ); | |
// Von den folgenden Angaben die entfernen, die du wirklich benötigst | |
function jeherve_remove_all_jp_css() { | |
wp_deregister_style( 'AtD_style' ); // Rechtschreibprüfung: After the Deadline | |
wp_deregister_style( 'jetpack_likes' ); // Gefällt mir | |
wp_deregister_style( 'jetpack_related-posts' ); // Ähnliche Beiträge |
<h1>Nich-responsive Einbindung</h1> | |
<div title="Kampf gegen ein Nazgûl im Westen von Gondor. Aufgenommen in Herr der Ringe Online."> | |
<iframe width="530" height="298" src="https://www.youtube.com/embed/KdI7EQsmlJs" frameborder="0" allowfullscreen></iframe> | |
</div> | |
<h1>Responsive Einbindung</h1> | |
<div class="video-block" title="Kampf gegen ein Nazgûl im Westen von Gondor. Aufgenommen in Herr der Ringe Online."> | |
<iframe width="530" height="298" src="https://www.youtube.com/embed/KdI7EQsmlJs" frameborder="0" allowfullscreen></iframe> | |
</div> |
RewriteEngine On | |
RewriteCond %{HTTPS} !=on | |
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] |
<?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]); |
<?php | |
// Private Taxonomie | |
function interne_hinweise() { | |
$labels = array( | |
'name' => _x( 'Interne Hinweise', 'Taxonomy General Name', 'text_domain' ), | |
'singular_name' => _x( 'Interner Hinweis', 'Taxonomy Singular Name', 'text_domain' ), | |
'menu_name' => __( 'Hinweise', 'text_domain' ), | |
'all_items' => __( 'Alle Hinweise', 'text_domain' ), | |
'parent_item' => __( 'Übergeordneter Hinweis', 'text_domain' ), |
<?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; | |
} |
<?php | |
global $wp_query; $postid = $wp_query->post->ID; | |
if (get_post_meta($postid, 'Zusatztitel', true)) { | |
echo get_post_meta($postid, 'Zusatztitel', true); | |
} else { | |
echo "Ersatztext"; | |
} | |
wp_reset_query(); | |
?> |
<?php | |
if (is_category()) { | |
$cat = get_query_var('cat'); | |
$yourcat = get_category ($cat); | |
echo 'the slug is '. $yourcat->slug; | |
} | |
?> |