Community Forums › Forums › Archived Forums › General Discussion › outreach/functions.php on line 24
- This topic has 5 replies, 2 voices, and was last updated 11 years, 2 months ago by [email protected].
-
AuthorPosts
-
January 18, 2013 at 5:43 pm #12991[email protected]Member
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>'
));January 18, 2013 at 6:38 pm #13003AnitaKeymasterI 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.
Love coffee, chocolate and my Bella!
January 18, 2013 at 6:46 pm #13006[email protected]MemberI didn't make any customizations. When I compare them, they look the same. What would cause the error?
January 18, 2013 at 6:59 pm #13009[email protected]MemberI 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.
January 18, 2013 at 7:01 pm #13010AnitaKeymasterSometimes when we make changes as you did and then tried to fix it - there could just be glitch somewhere.
Love coffee, chocolate and my Bella!
January 18, 2013 at 7:06 pm #13011[email protected]MemberFound 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.
-
AuthorPosts
- The topic ‘outreach/functions.php on line 24’ is closed to new replies.