• Well, it seems I’ve gone and made a mess of my theme. I was attempting to widen the content box and added this code to the bottom of the style sheet which, according to other posts in a forum, should have done the job, or so I interpreted.

    .singular.page .hentry {padding:1em;}
    .singular .entry-header,
    .singular .entry-content,
    .singular footer.entry-meta,
    .singular #comments-title {
    width: 90%;
    }

    .singular .entry-meta .edit-link a {
    bottom: auto;
    left: 0px;
    right: auto;
    top: 30px;
    }

    Instead, I got this.

    Parse error: syntax error, unexpected ‘.’ in /home/asrai123/public_html/wp-content/themes/twentyten/functions.php on line 518

    I can’t get to any content, dashboard, my site. Do I need to go to my host and work in there to fix it? Clearly I need to take a class or something.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    There are no syntax errors within that code http://jigsaw.w3.org/css-validator/validator

    Thread Starter asrai123@yahoo.com

    (@asrai123yahoocom)

    Why am I not seeing my theme or dashboard?

    Thread Starter asrai123@yahoo.com

    (@asrai123yahoocom)

    Here is my site, if that helps. gazebotreevintage.com

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Did you ever edit functions.php?

    Thread Starter asrai123@yahoo.com

    (@asrai123yahoocom)

    I’m actually figuring that out right now. Learning as I go. So, I copied it and am editing in text. Should I then save it and replace what’s in the folder functions.php folder? Could you please explain how to do that?

    Thread Starter asrai123@yahoo.com

    (@asrai123yahoocom)

    Thought I figured it out (found the edit button) but I didn’t work. Maybe I deleted some crucial semi colon or something.

    Thread Starter asrai123@yahoo.com

    (@asrai123yahoocom)

    Well, here is the end of the functions.php code. Does it the end look correct? Am I missing something important? Hope that piece of code isn’t too long.

    }
    endif;

    if ( ! function_exists( ‘twentyten_posted_in’ ) ) :
    /**
    * Prints HTML with meta information for the current post (category, tags and permalink).
    *
    * @since Twenty Ten 1.0
    */
    function twentyten_posted_in() {
    // Retrieves tag list of current post, separated by commas.
    $tag_list = get_the_tag_list( ”, ‘, ‘ );
    if ( $tag_list ) {
    $posted_in = __( ‘This entry was posted in %1$s and tagged %2$s. Bookmark the permalink.’, ‘twentyten’ );
    } elseif ( is_object_in_taxonomy( get_post_type(), ‘category’ ) ) {
    $posted_in = __( ‘This entry was posted in %1$s. Bookmark the permalink.’, ‘twentyten’ );
    } else {
    $posted_in = __( ‘Bookmark the permalink.’, ‘twentyten’ );
    }
    // Prints the string, replacing the placeholders.
    printf(
    $posted_in,
    get_the_category_list( ‘, ‘ ),
    $tag_list,
    get_permalink(),
    the_title_attribute( ‘echo=0’ )
    );
    }

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Try copying the contents of the original Twenty Ten functions.php file and pasting it over your functions.php file.

    Thread Starter asrai123@yahoo.com

    (@asrai123yahoocom)

    Hey, it was missing a semi colon! I had taken off endif; when I tried removing the code that made everything wonky.

    Thank you so much!

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Nice work.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘parse error message when I tried to add code to style.css’ is closed to new replies.