• I wanted to change the font of my new WP site and I managed to do it successfully, but it changed the font across the whole site, and I like the original font in the tabs cloud. So as I couldn’t change the font in Widgets I went searching (meddling) and changed something in the Theme Functions code.

    I ALWAYS copy and paste the code into a Notepad doc before I ever touch a thing, but this time, when I messed up and changed it back to what it was – it stayed messed up!

    Now whatever page I go to on my site or within Admin I just have a white screen with this text:

    “Parse error: syntax error, unexpected ‘:’, expecting ‘)’ in /home5/(my username)/public_html/(my site)/wp-content/themes/bloxy-two.0.9.8.1/bloxy-two/functions.php on line 18”

    I’m too embarrassed to ask the theme author because I shouldn’t have been messing with his code to begin with.

    I have even installed the same theme on a different site so I can go and get the original Theme Functions code, but it doesn’t make any difference – well it is the same as the code I copied anyway.

    It’s as if the mistake cannot be erased no matter what I do.

    There’s no way I can uninstall the theme because I cannot access the admin area. The error page is everywhere.

    Should I uninstall the whole site from my hosting account?

    If so, what’s the best way to do that? I’ve never done it before.

    Thanks so much

Viewing 2 replies - 1 through 2 (of 2 total)
  • Maybe download the theme again and copy/paste the original function.php code? Post the function.php code and lets take a look.

    Thread Starter rustybulb

    (@rustybulb)

    Sure, thanks

    But what’s baffling me is even though I’ve restored the code exactly, it’s not reverting back.

    Anyway, here it is:

    <?php
    
    // Widgets
    
    if ( function_exists('register_sidebar') )
    	register_sidebar(array(
    		'name' => 'Right Sidebar ORANGE',
    		'before_widget' => '<li id="%1$s" class="widget %2$s">',
    		'after_widget'  => '</div><div class="sbBoxFoot specialFoot"></div></li>',
    		'before_title'  => '<div class="sbBoxHead specialHead"><h2>',
    		'after_title'   => '</h2></div><div class="sbBox specialBox">',
    	));
    
    if ( function_exists('register_sidebar') )
    	register_sidebar(array(
    		'name' => 'Right Sidebar BLUE',
    		'before_widget' => '<li id="%1$s" class="widget %2$s">',
    		'after_widget'  => '</div><div class="sbBoxFoot"></div></li>',
    		'before_title'  => '<div class="sbBoxHead"><h2>',
    		'after_title'   => '</h2></div><div class="sbBox">',
    	));
    
    if ( function_exists('register_sidebar') )
    	register_sidebar(array(
    		'name' => 'Left Footer',
    		'before_widget' => '<ul><li id="%1$s" class="widget %2$s">',
    		'after_widget' => '</li></ul>',
    		'before_title' => '<h2 class="widgettitle">',
    		'after_title' => '</h2>',
    	));
    
    if ( function_exists('register_sidebar') )
    	register_sidebar(array(
    		'name' => 'Middle Footer',
    		'before_widget' => '<ul><li id="%1$s" class="widget %2$s">',
    		'after_widget' => '</li></ul>',
    		'before_title' => '<h2 class="widgettitle">',
    		'after_title' => '</h2>',
    	));
    
    if ( function_exists('register_sidebar') )
    	register_sidebar(array(
    		'name' => 'Right Footer',
    		'before_widget' => '<ul><li id="%1$s" class="widget %2$s">',
    		'after_widget' => '</li></ul>',
    		'before_title' => '<h2 class="widgettitle">',
    		'after_title' => '</h2>',
    	));
    
    // Comments
    
    wp_list_comments(array('callback' => 'bloxy_comment'));
    
    function bloxy_comment($comment, $args, $depth) {
           $GLOBALS['comment'] = $comment;
    ?>
    <li <?php comment_class(); ?> id="comment-<?php comment_ID( ); ?>">
    
        <div class="comment">
            <div class="commentUser">
            	<div class="gravatarFrame"></div>
            	<div class="gravatar">
                	<?php echo get_avatar( $comment, $size = '50', $default ='' ); ?>
                </div>
                <span class="small">
                	<span class="nick"><?php comment_author_link( ); ?></span><br />
                	<a href="#comment-<?php comment_ID( ); ?>"><?php comment_time('H:i'); ?>, <?php comment_date('d.m.Y'); ?></a><br />
                    <?php edit_comment_link( __( 'Edit' ),'',''); ?><br />
                    <?php echo comment_reply_link(array('reply_text' => 'Reply', 'depth' => $depth, 'max_depth' => $args['depth'])) ?>
                </span>
            </div>
            <div class="commentText">
                <div class="commentArrow"></div>
                <div class="commentTextHead"></div>
                <div class="commentTextContent">
                    <?php comment_text( ); ?>
                </div>
                <div class="commentTextFoot"></div>
            </div>
        </div>
        <div class="clear"></div>
    
    <?php
    } ?>

    I tried to add font family code after the line:
    'name' => 'Right Sidebar BLUE',
    and before:
    'before_widget' => '<li

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘I’ve done something very stupid – Please Help!’ is closed to new replies.