Automattic’s Widgets plug-in question
-
I have downloaded and installed the Automattic’s Widgets plug-in. My problem is that I have another Theme on my blog. I am using the “Connections”. I have copied this code to the top of my sidebar.php
<?php if ( !function_exists(‘dynamic_sidebar’)
|| !dynamic_sidebar() ) : ?>and this code to the bottom
<?php endif; ?>
The Connections Theme does not have any functions.php file, so I created one and copied the code bellow to it
<?php
if ( function_exists(‘register_sidebar’) )
register_sidebar();
?>I got this warning when I uploaded my files to the wp-content/theme folder:
Warning: Unexpected character in input: ‘\’ (ASCII=92) state=1 in /www/blogg/wp-content/themes/connections/functions.php on line 2
Parse error: syntax error, unexpected T_STRING in www/blogg/wp-content/themes/connections/functions.php on line 2
Can someone tell me what I do wrong?
- The topic ‘Automattic’s Widgets plug-in question’ is closed to new replies.