Jump to content

Recommended Posts

I'm using a free Wordpress theme called Arthemia Free & I am having trouble with this error:

Parse error: syntax error, unexpected '<' in /homepages/31/d145901191/htdocs/www/liquidsilver/gsar/wp-content/themes/arthemia/functions.php on line 40

 

functions.php:

<?php if ( function_exists('register_sidebar') )

{

register_sidebar(array('name' => 'Sidebar Top','before_widget' => '','after_widget' => '','before_title' => '<h3>','after_title' => '</h3>'));

register_sidebar(array('name' => 'Sidebar Left','before_widget' => '','after_widget' => '','before_title' => '<h3>','after_title' => '</h3>'));

register_sidebar(array('name' => 'Sidebar Right','before_widget' => '','after_widget' => '','before_title' => '<h3>','after_title' => '</h3>'));

register_sidebar(array('name' => 'Sidebar Bottom','before_widget' => '','after_widget' => '','before_title' => '<h3>','after_title' => '</h3>'));

register_sidebar(array('name' => 'Footer Left','before_widget' => '','after_widget' => '','before_title' => '<h3>','after_title' => '</h3>'));

register_sidebar(array('name' => 'Footer Center','before_widget' => '','after_widget' => '','before_title' => '<h3>','after_title' => '</h3>'));

register_sidebar(array('name' => 'Footer Right','before_widget' => '','after_widget' => '','before_title' => '<h3>','after_title' => '</h3>'));

}

 

 

 

 

remove_filter('get_the_excerpt', 'wp_trim_excerpt');

add_filter('get_the_excerpt', 'custom_trim_excerpt');

 

remove_filter('get_the_excerpt', 'wp_trim_excerpt');

add_filter('get_the_excerpt', 'custom_trim_excerpt');

 

function custom_trim_excerpt($text) { // Fakes an excerpt if needed

global $post;

if ( '' == $text ) {

$text = get_the_content('');

 

$text = strip_shortcodes( $text );

 

$text = apply_filters('the_content', $text);

$text = str_replace(']]>', ']]>', $text);

$text = strip_tags($text);

$excerpt_length = apply_filters('excerpt_length', 90);

$words = explode(' ', $text, $excerpt_length + 1);

if (count($words) > $excerpt_length) {

array_pop($words);

array_push($words, '...');

$text = implode(' ', $words);

}

}

return $text;

}

 

 

?>

 

___________

Any help would be greatly appreciated.

My website is currently down b/c of this.

Link to comment
https://forums.phpfreaks.com/topic/189700-parse-error-syntax-error-unexpected/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.