• Resolved ternef4339

    (@ternef4339)


    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?

Viewing 1 replies (of 1 total)
  • Thread Starter ternef4339

    (@ternef4339)

    I found the answer by myself. I used the wrong program “WordPad” to created my function.php file

Viewing 1 replies (of 1 total)
  • The topic ‘Automattic’s Widgets plug-in question’ is closed to new replies.