Support » Theme: Wortex Lite » Parse Error

  • thisisaxel

    (@thisisaxel)


    Hello there,
    I am having an error using the theme Wortex Lite as follows;

    Parse error: syntax error, unexpected ‘<‘, expecting end of file in /homepages/10/d210980848/htdocs/thisisaxel/wordpress/wp-content/themes/wortex-lite/footer.php on line 26

    All I have done is replace the footer credits code, with my own as follows:

    
    <a href="http://thisisaxels.wordpress.com">
      <img src="http://thisisaxels.com/wordpress/wp-content/uploads/2016/11/Wordpress-color.png" alt="WordPress Blog" style="width:42px;height:42px;border:0;">
    </a>
    
    <a href="http://thisisaxel.blogspot.com">
      <img src="http://thisisaxels.com/wordpress/wp-content/uploads/2016/11/Blogger-color.png" alt="Origanal Blog" style="width:42px;height:42px;border:0;">
    </a>
    
    <a href="http://twitter.com/axelgreavette">
      <img src="http://thisisaxels.com/wordpress/wp-content/uploads/2016/11/Twitter-color.png" alt="Current Twitter" style="width:42px;height:42px;border:0;">
    </a>
    
    <a href="http://codepen.io/itzAxel">
      <img src="http://thisisaxels.com/wordpress/wp-content/uploads/2016/11/Codepen-color.png" alt="Codepen.io" style="width:42px;height:42px;border:0;">
    </a>
    
    <p1> <strong>Copyright 2016 Axel Greavette</strong> <br> Made with love by me <p1>

    If you see any errors in this code, have a fix or something else please reply.

    Thank you,
    [-Axel

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author Mathieu Sarrasin

    (@iceable)

    Hello,

    It is hard to tell for sure without the entire code, but my guess is that it misses a closing php tag before your code (which is pure HTML and therefore comes as “unexpected” for the php interpreter).

    Since your custom code is HTML only, you should add a closing php tag before, as well as an opening php tag after it, so it does not break the rest of the php file, like so:

    ?>
    
    [YOUR HTML CODE]
    
    <?php

    If you still get an error could you please paste the whole code of the modified file so I can better help you find what else can be wrong?

    Thank you, but I have now found another theme that works for me. Though your answer was very helpful, I have now erased that html :-(.

    Thanks anyway…

    Axel

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Parse Error’ is closed to new replies.