• Resolved jakehooker

    (@jakehooker)


    Hi.

    I’m new to all this and I screwed up.

    Basically, I was trying to remove the “posted on” line from Posts and I looked at some help pages which told me to go into theme.php and remove some lines. I did that and now I get this:

    Parse error: syntax error, unexpected ‘*’ in /home/jakehooker/domains/jakehookerand.org/prod/wp-content/themes/jakehooker/functions.php on line 491

    Every time I try to leave that page or update or whatever. Quite obviously, I shouldn’t have been screwing around with this.

    This is what I removed:

    function twentyten_posted_on() {
    printf( __( ‘<span class=”%1$s”>Posted on</span> %2$s <span class=”meta-sep”>by</span> %3$s’, ‘twentyten’ ),
    ‘meta-prep meta-prep-author’,
    sprintf( ‘<span class=”entry-date”>%3$s</span>‘,
    get_permalink(),
    esc_attr( get_the_time() ),
    get_the_date()
    ),
    sprintf( ‘<span class=”author vcard”>%3$s</span>’,
    get_author_posts_url( get_the_author_meta( ‘ID’ ) ),
    sprintf( esc_attr__( ‘View all posts by %s’, ‘twentyten’ ), get_the_author() ),
    get_the_author()
    )
    );
    }
    endif;`

    I had someone else customize the theme for me and now I don’t know what will happen if I replace my theme.php with a new download.

    Please somebody help me! I’m totally at a loss and freaked out.

    Thanks in advance,

    Jake

Viewing 2 replies - 1 through 2 (of 2 total)
  • Don’t edit the Twenty Ten theme. Instead create a child theme for your changes. Once your child theme is active, we should be able to help with the customisation.

    Thread Starter jakehooker

    (@jakehooker)

    Thank you so much for your response.

    I actually had a friend help me and he fixed it (his company is hosting the site). He also lectured me for about a half hour on what I did wrong and how I should never, ever, ever do it again. And I owe him beers for life. So…

    BUT, and this is probably against forum protocol, I have another unrelated problem that I don’t know how to fix… it’s probably simple and maybe you can help?

    It’s just I’m trying to update a post and it will only update half the post. Over and over again. No matter what I write it defaults to the same lines. Is this a bug? Or…ever heard of that?

    Thanks for your help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘I broke my blog–Please Help!’ is closed to new replies.