WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Javascript in single.php (6 posts)

  1. Jeanette
    Member
    Posted 5 years ago #

    Hi,

    I'm trying to add a javascript code into single post, but no matter where I put it won't do anything else but this:

    Parse error: syntax error, unexpected '<' in /home/hjemmem/www/wp-content/themes/german-newspaper/single.php on line 61

    I have this code in all my other wp-blogs, and no problem. This one, however is another story. But the coding is different, and I can't seem to get it right.

    Please help?

    http://www.hjemmemamma.com

  2. Jeanette
    Member
    Posted 5 years ago #

    This is the code, by the way:

    <script type="text/javascript" src="http://s.bloggrevyen.no/badge.js"></script>
    <script type="text/javascript">
        bloggrevyenBadge('<?php the_permalink(); ?>');
    </script>
  3. iridiax
    Member
    Posted 5 years ago #

    Like the other files in this oddball theme, the single.php code is all in ONE php tag, making it uneditable unless you know php.

  4. Jeanette
    Member
    Posted 5 years ago #

    But I successfully placed an adsense box in it, somehow... I just don't know how I did it. :)

  5. Jeanette
    Member
    Posted 5 years ago #

    Anybody..?

  6. Jeanette
    Member
    Posted 5 years ago #

    Never mind, a friend of mine solved it for me. :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags