• Hello all. I’m still working on a few customizations on Brunelleschi, and tonight I’m having a lot of trouble creating a functions.php in the child theme so I can make a few tweaks. Just putting a functions.php in the child theme directory gets some kind of error. The error varies, but the most recent one was

    Parse error: syntax error, unexpected T_STRING in /home/xxxxxx/public_html/wp-content/themes/brunelleschi-child/functions.php on line 17

    (Note that xxxxxx is my username, I just X’ed it out for privacy.)

    Is it possible to have a custom functions.php file or does Brunelleschi not support it? This isn’t critical, really, but I’m just curious to know before I spend too much time chasing errors. Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Can you pls post line 1-30 of your /brunelleschi-child/functions.php ?

    Thread Starter sbbn

    (@sbbn)

    Sure, here it is:

    <?php
    /*----------------------------------------
    #
    # Theme Name: Brunelleschi
    # Theme Author: Kit MacAllister
    #
    ----------------------------------------*/
    
    /*----------------------------------------
    #
    # BRUNELLESCHI SETUP
    #
    ----------------------------------------*/
    
    /* Run Brunelleschi Theme Setup */
    add_action( 'after_setup_theme', 'brunelleschi_setup' );
    
    /* brunelleschi setup */
    if ( ! function_exists( 'brunelleschi_setup' ) ):
    	function brunelleschi_setup() {
    
    		/* Load Theme TextDomain */
    		load_theme_textdomain( 'brunelleschi', TEMPLATEPATH . '/languages' );
    
    		$locale = get_locale();
    		$locale_file = TEMPLATEPATH . "/languages/$locale.php";
    		if ( is_readable( $locale_file ) )
    		require_once( $locale_file );
    
    		/* Add Custom Background */
    		add_custom_background();

    The first 30 lines of your childtheme functions.php are exactly the same as from the Brunelleschi functions.php – you dont need to add them in your own file…

    Your childtheme functions.php only needs to contain your custom changes…

    Unlike style.css, the functions.php of a child theme does not override its counterpart from the parent. Instead, it is loaded in addition to the parent’s functions.php.

    Does it help? ??

    Thread Starter sbbn

    (@sbbn)

    So there’s my problem ?? Thanks for letting me know.

    I’ve changed the functions.php to only have the one bit of code I wanted for now (the header size) and sadly am having the exact same problem I was having before. I’ve got another post on the header problem specifically, so I’ll go reply over there again so I don’t end up creating a duplicate thread. Thanks again.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Is it possible to use a child theme functions.php in Brunelleschi?’ is closed to new replies.