Ich habe ein kleines Problem. Ich entwickle eine Website mit WordPress und dem Thema "Barletta". Dieses Thema fügt der Fußzeile einen Text hinzu, den ich entfernen möchte. Normalerweise mache ich das, indem ich die footer.php bearbeite, aber mit diesem Thema ist es anders. Ich muss die functions.php Ursache ändern sind diese Codestück gibt es:Wordpress: Entfernen Sie Website-Informationen in functions.php
function barletta_footer_credits() {
?>
<div class="site-info">
<?php if (get_theme_mod('barletta_footer_text') == '') { ?>
© <?php echo date('Y'); ?> <?php bloginfo('name'); ?><?php esc_html_e('. All rights reserved.', 'barletta'); ?>
<?php } else { echo esc_html(get_theme_mod('barletta_footer_text', 'barletta')); } ?>
</div><!-- .site-info -->
<?php
$nofollow="";
if (!is_home()) { $nofollow="rel=\"nofollow\""; }
printf(esc_html__('Theme by %1$s Powered by %2$s', 'barletta') , '<a href="http://moozthemes.com/" target="_blank" '.$nofollow.'>MOOZ Themes</a>', '<a href="http://wordpress.org/" target="_blank">WordPress</a>');
}
add_action('barletta_footer', 'barletta_footer_credits');
Ich bin nicht gut in PHP so hier meine Frage: Wie muss ich diesen Code bearbeiten, dass die Website-info-div sein immer noch angezeigt, aber nicht der gedruckte Text (powered by ...)?