Headlines News :
Home » , » CSS code help! Syntax Error?

CSS code help! Syntax Error?

Written By eXploration on Wednesday, March 21, 2012 | 5:50 PM

Question by Ash: CSS code help! Syntax Error?
I've been tweaking the code to my website and i don't know what i just deleted.
This is the message that i get:
Parse error: syntax error, unexpected '<' in /home/astriv/public_html/wp-content/themes/evening-shade/functions.php on line 38

Here's the code:

/**
* Evening Shade 1.2
* Designed by Pixel Theme Studio
* http://www.pixelthemestudio.ca
* studio@pixelthemestudio.ca
* License: Copyright 2009 Pixel Theme Studio
* Not for distribution or resale without permission
*/

/* Widgets ********************************************/
if ( function_exists('register_sidebar') ) {
register_sidebars(4,array(
'before_widget' => '

',
));
}

//Check for widgets in widget-ready areas http://wordpress.org/support/topic/190184?replies=7#post-808787
//Thanks to Chaos Kaizer http://blog.kaizeku.com/
function is_sidebar_active( $ index = 1){
$ sidebars= wp_get_sidebars_widgets();
$ key= (string) 'sidebar-'.$ index;

return (isset($ sidebars[$ key]));
}

?>

//define('HEADER_TEXTCOLOR', '');
define('HEADER_IMAGE', '%s/images/default.jpg'); // %s is theme dir uri
define('HEADER_IMAGE_WIDTH', 940);
define('HEADER_IMAGE_HEIGHT', 230);
//define( 'NO_HEADER_TEXT', true );

function pixel_admin_header_style() {
?>

}
function pixel_header_style() {
?>

}
if ( function_exists('add_custom_image_header') ) {
add_custom_image_header('pixel_header_style', 'pixel_admin_header_style');
}
load_theme_textdomain('ml');
?>

Best answer:

Answer by Leymyeh
1. your code is a disaster clean it up.
2. What are you trying to do?
3. You have an error on line 38... look at line 38.. why do you have

in a php function? You can't just add HTML tags in a php function like that. you need to make it a string and then print it using ECHO or whatever...

Give your answer to this question below!

Sorry There is No related posts.


View the original article here

Share this article :

0 comments:

Speak up your mind

Tell us what you're thinking... !

 
Support : Creating Website | Blogger Template | Mas Template
Proudly powered by Blogger
Copyright © 2011. eXploraTion - All Rights Reserved
Template Design by Sylhet News Published by eCommerce Hosting