Hoi,

Nadat ik een wijziging in functions.php in mijn Wordpress-site heb gemaakt, is de site op 'wit' gegaan.
Ergens staat een fout of spatie in de code.
Ik kom er niet meer uit.

Wie kan mij hierbij helpen?

Hier de code:

<?php
//
// Recommended way to include parent theme styles.
// (Please see http://codex.wordpress.org/Child_Themes#How_to_Create_a_Child_Theme)
//
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
function theme_enqueue_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'child-style',
get_stylesheet_directory_uri() . '/style.css',
array('parent-style')
);
}
//
// Your code goes below
//
function storefront_credit() {
?>
<div class="site-info">
&copy; <?php echo get_bloginfo( 'name' ) . ' ' . get_the_date( 'Y' ); ?>
</div><!-- .site-info -->
<?php
}

Wat is er niet goed of teveel?

Ik hoor heel graag.

Groet Paul
Lijn 11 array('parent-style') kan denk ik niet.
Je function storefront_credit() gaat hier niet goed, voor je divs staat geen echo/return, je zet hier 'hard' htmlcode in een php-functie.

Reageren