Fatal error in content custum header

  • Unknown's avatar

    Hello,

    When I activate the Dyad template, I got an error called:

    Fatal error: Can’t use function return value in write context in /home/tabitha-louise.nl/public_html/wp-content/themes/dyad-wpcom/template-parts/content-custom-header.php on line 23

    This is row 23

    <?php if( ! empty( get_bloginfo( ‘description’ ) ) ) { ?>

    And this is the whole code:

    <div class=’site-banner-content banner-custom-header’>

    <?php

    /**
    * Media
    */

    ?>

    <div class=’site-banner-media’>
    <?php $header_image = get_header_image(); ?>
    <div class=’site-banner-thumbnail’ <?php if ( $header_image ) { echo ‘style=’background-image: url(‘ . esc_url( $header_image ) . ‘);”; } ?>></div>
    </div>

    <?php

    /**
    * Custom Header text
    */

    ?>
    <?php if( ! empty( get_bloginfo( ‘description’ ) ) ) { ?>
    <div class=’site-banner-header’>

    <h1 class=’entry-title’>
    <?php bloginfo( ‘description’ ); ?>
    </h1>

    </div><!– .site-banner-header –>
    <?php } ?>
    </div><!– .site-banner-content –>

    How can I fix this?

    Regards,

    Tabitha

  • Hello there,

    I’m sorry but it looks like you’ve posted in the wrong forum. That error appears on self-hosted sites using the WordPress.org software. However, this forum is for blogs hosted here on WordPress.com. The two versions are different and have separate forums.

    Please post your question at the WordPress.org forum: https://wordpress.org/support/
    If you don’t have a username at that forum, you’ll need to register before posting.

    Hope the above is all clear. Please let me know if you have any further questions. Cheers!

  • The topic ‘Fatal error in content custum header’ is closed to new replies.