WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] functions.php. Wrong ascii characters!!!!!!!!!!! (13 posts)

  1. jmadz1
    Member
    Posted 3 years ago #

    My code in functions.php:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Instead of showing a "»" between breadcrumbs, it is doing something else. Check it out http://www.pullupbarsx.com. Just above the leftbar, beneath navbar. Anyone know how to solve this problem, or at least what's wrong with it?

    Many thanks.

  2. jmadz1
    Member
    Posted 3 years ago #

  3. esmi
    Forum Moderator
    Posted 3 years ago #

    Try getting rid of all of the styled quotes in your code.

  4. jmadz1
    Member
    Posted 3 years ago #

    Sorry, which are the styled quotes? Yes, I am a noob at website developing.

  5. esmi
    Forum Moderator
    Posted 3 years ago #

    Every single and double-quote is a styled - rather than a plain - quote. Stick to using a text editor when writing/amending code.

  6. jmadz1
    Member
    Posted 3 years ago #

    Ahhh ok thankyou, I'll give it a go.

  7. jmadz1
    Member
    Posted 3 years ago #

    I'm afraid it didn't work. Any other ideas?

  8. esmi
    Forum Moderator
    Posted 3 years ago #

    Can we see the amended code in the pastebin?

  9. jmadz1
    Member
    Posted 3 years ago #

    This is the amended code: http://pastebin.com/SkEPitz6

    When I change all single and double quotes to non-styled quotes, I get this error message:

    Parse error: syntax error, unexpected $end in /home/jmadz/public_html/wp-content/themes/coffeebreak-10/functions.php on line 27

    Line 27 is the end php bit "?>".
    I've check and there is no white space around it.

  10. jmadz1
    Member
    Posted 3 years ago #

    Ignore lines 1,2,3 and 4 on the amended pastebin. Those are my sidebars.

  11. jmadz1
    Member
    Posted 3 years ago #

    Ok here's some more information. When I upload this code:
    http://pastebin.com/mvaanLCG

    WordPress then changes my functions.php file so it has this code instead:
    http://pastebin.com/kgbeFcHX

    Maybe that has something to do with it. So then I have to paste in the original uploaded code, into my functions.php file which is already uploaded in wordpress. And when I do that I get those wrong ascii symbols I was firt talking about.
    If I leave the code as it is, I get lots of question mark ascii symbols instead. Either way, it's wrong.

  12. esmi
    Forum Moderator
    Posted 3 years ago #

    I'm not quite sure that this function is supposed to do but try http://pastebin.com/NAQzHBDt

  13. jmadz1
    Member
    Posted 3 years ago #

    Thanks for your help esmi. I eventually found a code that worked properly. You were a lot of help though. This question is now SOLVED.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags