Parse error-please help
-
Please help! I can’t see the actual WP version number of a site I’m working on due to the fact I keep getting this message
‘Parse error: syntax error, unexpected ‘<‘ in /home/fivephus/public_html/wp-content/themes/evolve/functions.php on line 70’I also can’t see the site at all!! This happened when I tried to remove the magnifying glass search from the nav bar by entering some code at the bottom of my functions.php editor window:
? <?php remove_action( ‘wp_head’, ‘feed_links_extra’, 3 ); // Display the links to the extra feeds such as category feeds remove_action( ‘wp_head’, ‘feed_links’, 2 ); // Display the links to the general feeds: Post and Comment Feed remove_action( ‘wp_head’, ‘rsd_link’ ); // Display the link to the Really Simple Discovery service endpoint, EditURI link remove_action( ‘wp_head’, ‘wlwmanifest_link’ ); // Display the link to the Windows Live Writer manifest file. remove_action( ‘wp_head’, ‘index_rel_link’ ); // index link remove_action( ‘wp_head’, ‘parent_post_rel_link’, 10, 0 ); // prev link remove_action( ‘wp_head’, ‘start_post_rel_link’, 10, 0 ); // start link remove_action( ‘wp_head’, ‘adjacent_posts_rel_link’, 10, 0 ); // Display relational links for the posts adjacent to the current post. remove_action( ‘wp_head’, ‘wp_generator’ ); // Display the XHTML generator that is generated on the wp_head hook, WP version ?>
(from https://www.nerdgrind.com
? mginop
Member
Posted 5 years ago #)I then deleted this code but that didn’t fix the problem.
Then I went to the back end of another Evolve site I have that is working and I copied the code from ‘Theme functions.php’ and replaced everything that was in ‘functions.php’ with the material I copied from ‘Theme functions.php’
I’m still getting the parse error message. I hope you can help.
Thanks in advance
Alex
- The topic ‘Parse error-please help’ is closed to new replies.