Title: <abbr title="Not Safe For Work / Mature content">[NSFW]</abbr> Parse error: syntax error
Last modified: November 18, 2020

---

# [NSFW] Parse error: syntax error

 *  [ajokki](https://wordpress.org/support/users/ajokki/)
 * (@ajokki)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-174/)
 * Hello everyone!
    I’ve setup a theme and get the following error: Parse error:
   syntax error, unexpected end of file in /code/wp-content/themes/xwp-directory/
   header.php on line 67
 * When I check the header.php I can’t seem to find the problem. Hope you can help
   me.
 *     ```
       <!DOCTYPE html>
       <html <?php language_attributes(); ?>>
       <head>
       	<meta charset="utf-8">
       	<meta name="viewport" content="width=device-width, initial-scale=1">
       	<?php 
               $options = get_option( 'threeus_options' );
               $favicon = $options['favicon'] ? $options['favicon'] : get_template_directory_uri() . '/images/assets/favicon.png';
       		$header_code 	 = $options['header_code'];
           ?>
       	<link rel="shortcut icon" href="<?php echo $favicon; ?>" />
       	<?php wp_head(); ?>
       	<?php echo stripslashes($header_code); ?>
       </head>
   
       <body <?php body_class(); ?> itemscope itemtype="http://schema.org/WebPage">
   
       	<div id="wrapper" class="hfeed site">
   
       <header id="header" class="site-header header2" role="banner" itemscope itemtype="http://schema.org/WPHeader">
           <div class="container">
               <div class="mid-header clearfix">
                   <div class="site-brand">
                       <a href="<?php echo site_url(); ?>" class="logo">
                           <?php
                           $options = get_option( 'threeus_options' );
                           $logo_small = $options['logo_small'] ? $options['logo_small'] : get_template_directory_uri() . '/images/assets/logo.png';?>
                           <img src="<?php echo $logo_small; ?>" alt="logo"/>
                       </a>				
                   </div><!-- .site-brand -->
                   <div class="right-header">
                       <?php echo get_search_form(); ?>
                   </div>
               </div><!-- .mid-header -->
               <nav class="main-menu clearfix" role="navigation" itemscope itemtype="http://schema.org/SiteNavigationElement">
                   <span class="mobile-menu"><i class="fa fa-bars"></i></span>
                   <?php
                   wp_nav_menu(
                       array(
                           'theme_location' => 'main_menu',
                           'container'      => false,
                           'menu_id'        => 'menu-main',
                           'menu_class'     => 'menu-main',
                           'fallback_cb'    => '',
                       )
                   );
                   ?>
   
               </nav><!-- .main-menu -->
       		<br>
       		<?php
                   $options = get_option('threeus_options');
                   $aam = stripslashes($options['aam']);
                   if ($aam) {
                       $substr = substr( $aam, 0, 4 );
                       if ($substr == 'http') { ?>
                           <img class="ads" src="<?php echo $aam; ?>">
                       <? } else {
                           echo $aam;
                       }
                   }
               ?>
           </div><!-- .container -->
   
       </header><!-- .site-header -->
       		<main id="main" class="site-main" role="main" itemscope itemprop="mainContentOfPage">
       ```
   
    -  This topic was modified 5 years, 6 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).

Viewing 1 replies (of 1 total)

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [5 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-174/#post-13678809)
 * Because you’re using a commercial theme, please use their official support channel.
   We feel they are best equipped to support their products.
 * [https://xwpthemes.com/forum/](https://xwpthemes.com/forum/)
 * **Commercial products are [not supported in these forums](https://make.wordpress.org/support/trouble/section-1-getting-started/what-is-not-supported).**

Viewing 1 replies (of 1 total)

The topic ‘[NSFW] Parse error: syntax error’ is closed to new replies.

## Tags

 * [parse-error](https://wordpress.org/support/topic-tag/parse-error/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-174/#post-13678809)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
