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 $unterzeile = get_post_meta($post->ID, 'unterzeile', true); | |
if ($unterzeile) { ?> | |
<div class="unterzeile"> | |
<?php echo $unterzeile; ?> | |
</div> | |
<?php } ?> |
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
// Kurzlink in WP zurückholen | |
if ( function_exists( 'add_filter' ) ) { | |
add_filter( 'get_shortlink', function ( $shortlink ) { | |
return $shortlink; | |
} ); | |
} |
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
function kurzlink() { | |
echo "<link rel='alternate shortlink' href='" . wp_get_shortlink() . "' />"; | |
} | |
add_action('wp_head','kurzlink'); |
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_action( 'after_setup_theme', 'name_des_themes' ); | |
function name_des_themes() { | |
add_theme_support( 'wc-product-gallery-zoom' ); | |
add_theme_support( 'wc-product-gallery-lightbox' ); | |
add_theme_support( 'wc-product-gallery-slider' ); | |
} |
OlderNewer