outreach/functions.php on line 24

Community Forums Forums General Discussion outreach/functions.php on line 24

This topic is: resolved

This topic contains 5 replies, has 2 voices, and was last updated by  jmed63@gmail.com 1 year, 7 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #12991

    jmed63@gmail.com
    Participant
    Post count: 3

    I was testing the footer.

    I changed the following
    // Customizes footer
    add_filter(‘genesis_footer_output’, ‘footer_logo’);
    function footer_logo($output) {
    $url = trailingslashit( get_bloginfo(‘url’) );
    $src = trailingslashit( get_bloginfo(‘stylesheet_directory’) ) . ‘images/footer-logo.png’;
    $alt = esc_attr( get_bloginfo(‘description’) );
    $output = sprintf(‘<div class=”logo”><a href=”%s”><img src=”%s” alt=”%s” /></a></div><!– end .logo –>’, $url, $src, $alt) . $output;
    return $output;

    To

    // Customizes footer
    //add_filter(‘genesis_footer_output’, ‘footer_logo’);
    //function footer_logo($output) {
    //    $url = trailingslashit( get_bloginfo(‘url’) );
    //    $src = trailingslashit( get_bloginfo(‘stylesheet_directory’) ) . ‘images/footer-logo.png’;
    //    $alt = esc_attr( get_bloginfo(‘description’) );
    //    $output = sprintf(‘<div class=”logo”><a href=”%s”><img src=”%s” alt=”%s” /></a></div><!– end .logo –>’, $url, $src, $alt) . $output;
    //    return $output;

    Now I am getting this error: Parse error: syntax error, unexpected ‘}’ in /home/jeffs/public_html/wp-content/themes/outreach/functions.php on line 24

    I removed the “//” I added, but the error remains. I am using the old outreach theme from a couple of years ago. What do I need to do? The rest of the functions.php is below.

    <?php
    // Start the engine
    require_once(TEMPLATEPATH.’/lib/init.php’);

    // Add new image sizes
    add_image_size(‘Slideshow’, 910, 290, TRUE);
    add_image_size(‘Homepage’, 275, 100, TRUE);
    add_image_size(‘Mini’, 65, 65, TRUE);

    // Add widgeted footer section
    add_action(‘genesis_before_footer’, ‘outreach_include_footer_widgets’);
    function outreach_include_footer_widgets() {
    require(CHILD_DIR.’/footer-widgeted.php’);
    }

    // Customizes footer
    add_filter(‘genesis_footer_output’, ‘footer_logo’);
    function footer_logo($output) {
    $url = trailingslashit( get_bloginfo(‘url’) );
    $src = trailingslashit( get_bloginfo(‘stylesheet_directory’) ) . ‘images/footer-logo.png’;
    $alt = esc_attr( get_bloginfo(‘description’) );
    $output = sprintf(‘<div class=”logo”><a href=”%s”><img src=”%s” alt=”%s” /></a></div><!– end .logo –>’, $url, $src, $alt) . $output;
    return $output;
    }

    // Customizes go to top text
    add_filter(‘genesis_footer_backtotop_text’, ‘footer_backtotop_filter’);
    function footer_backtotop_filter($backtotop) {
    $backtotop = ‘[footer_backtotop text="Top of Page"]‘;
    return $backtotop;
    }

    // Register widget areas
    genesis_register_sidebar(array(
    ‘name’=>’Home Top’,
    ‘id’ => ‘home-top’,
    ‘description’ => ‘This is the top section of the homepage.’,
    ‘before_widget’ => ‘<div id=”%1$s” class=”widget %2$s”>’, ‘after_widget’  => ‘</div>’,
    ‘before_title’=>’<h4 class=”widgettitle”>’,’after_title’=>’</h4>’
    ));
    genesis_register_sidebar(array(
    ‘name’=>’Home Middle #1′,
    ‘id’ => ‘home-middle-1′,
    ‘description’ => ‘This is the first column of the middle section of the homepage.’,
    ‘before_widget’ => ‘<div id=”%1$s” class=”widget %2$s”>’, ‘after_widget’  => ‘</div>’,
    ‘before_title’=>’<h4 class=”widgettitle”>’,’after_title’=>’</h4>’
    ));
    genesis_register_sidebar(array(
    ‘name’=>’Home Middle #2′,
    ‘id’ => ‘home-middle-2′,
    ‘description’ => ‘This is the second column of the middle section of the homepage.’,
    ‘before_widget’ => ‘<div id=”%1$s” class=”widget %2$s”>’, ‘after_widget’  => ‘</div>’,
    ‘before_title’=>’<h4 class=”widgettitle”>’,’after_title’=>’</h4>’
    ));
    genesis_register_sidebar(array(
    ‘name’=>’Home Middle #3′,
    ‘id’ => ‘home-middle-3′,
    ‘description’ => ‘This is the third column of the middle section of the homepage.’,
    ‘before_widget’ => ‘<div id=”%1$s” class=”widget %2$s”>’, ‘after_widget’  => ‘</div>’,
    ‘before_title’=>’<h4 class=”widgettitle”>’,’after_title’=>’</h4>’
    ));
    genesis_register_sidebar(array(
    ‘name’=>’Footer #1′,
    ‘id’ => ‘footer-1′,
    ‘description’ => ‘This is the first column of the footer section.’,
    ‘before_title’=>’<h4 class=”widgettitle”>’,’after_title’=>’</h4>’
    ));
    genesis_register_sidebar(array(
    ‘name’=>’Footer #2′,
    ‘id’ => ‘footer-2′,
    ‘description’ => ‘This is the second column of the footer section.’,
    ‘before_title’=>’<h4 class=”widgettitle”>’,’after_title’=>’</h4>’
    ));
    genesis_register_sidebar(array(
    ‘name’=>’Footer #3′,
    ‘id’ => ‘footer-3′,
    ‘description’ => ‘This is the third column of the footer section.’,
    ‘before_title’=>’<h4 class=”widgettitle”>’,’after_title’=>’</h4>’
    ));
    genesis_register_sidebar(array(
    ‘name’=>’Footer #4′,
    ‘id’ => ‘footer-4′,
    ‘description’ => ‘This is the fourth column of the footer section.’,
    ‘before_title’=>’<h4 class=”widgettitle”>’,’after_title’=>’</h4>’
    ));

    #13003

    Anita
    Participant
    Post count: 7544

    I would probably copy the original functions.php back over to your hosting account using http://FTP... that is, if you didn’t make any customizations to it.


    When asking for help, please provide a link or screen shot showing your problem!
    Let me help you customize your theme, responsive header, Buddypress, Agentpress or technical issue!
    Visit me here: Cre8tiveDiva.com | Tweet Me!

    #13006

    jmed63@gmail.com
    Participant
    Post count: 3

    I didn’t make any customizations. When I compare them, they look the same. What would cause the error?

     

    #13009

    jmed63@gmail.com
    Participant
    Post count: 3

    I tried uploading the original functions.php. I could then see the page, but all the setup was gone. The page was back to the page that shows on the initial default setup.

    #13010

    Anita
    Participant
    Post count: 7544

    Sometimes when we make changes as you did and then tried to fix it – there could just be glitch somewhere.


    When asking for help, please provide a link or screen shot showing your problem!
    Let me help you customize your theme, responsive header, Buddypress, Agentpress or technical issue!
    Visit me here: Cre8tiveDiva.com | Tweet Me!

    #13011

    jmed63@gmail.com
    Participant
    Post count: 3

    Found it. I went into the functions.php file with a file editor and discovered that the // wasn’t actually removed even though I updated it via the wordpress editor. It works now.

    anitac,  Thank you for heading me in the right direction.

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘outreach/functions.php on line 24’ is closed to new replies.