Title: Unable to hide object from homepage!
Last modified: August 20, 2016

---

# Unable to hide object from homepage!

 *  Resolved [Luis](https://wordpress.org/support/users/xluisramosx/)
 * (@xluisramosx)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/is_home-command-not-working/)
 * Hello guys! I am using a breadcrumb plugin called “Simple Breadcrumbs” and it
   is working properly. But that’s not the issue, because I am trying to display
   it on every page except on my homepage. What I basically did was add the following
   code on my header:
 *     ```
       <?php
       if (is_home()) {
         echo "It works!";
       }
       else {
         echo do_shortcode('[simple_crumbs root="Home" /]');
       }
       ?>
       ```
   
 * Anyway, from as far as I know, it should be working but instead I get the following
   error:
 * `Parse error: syntax error, unexpected '}', expecting ',' or ';' in .../wp-content/
   themes/.../header.php on line 92`
 * So, does anybody have any idea on what is causing this?
 * Any sort of help would be appreciated, thanks!

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [David Gard](https://wordpress.org/support/users/duck_boy/)
 * (@duck_boy)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/is_home-command-not-working/#post-2256082)
 * Is the code you have pasted above what is on line 92 of header.php?
 * If not, could you please paste that (and the few lines before and after) so we
   can take a look.
 * Thanks.
 *  Thread Starter [Luis](https://wordpress.org/support/users/xluisramosx/)
 * (@xluisramosx)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/is_home-command-not-working/#post-2256090)
 * Nope, the code above is all the way down to line 181. This is what is in between
   line 90 and 100.
 *     ```
       $_der->set_options_context(MOD_SOCIAL);
   
       $social_icons = mod_social_get_data();
       ```
   
 * Thank you.
 *  Thread Starter [Luis](https://wordpress.org/support/users/xluisramosx/)
 * (@xluisramosx)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/is_home-command-not-working/#post-2256091)
 * Here’s the entire source:
 *     ```
       <?php
   
       // PROTECTION
   
       if ( ! defined('ABSPATH') ) { die(''); }
   
       global $_der;
   
       define('COLOR_THEME', strtolower($_der->getval('color_theme')));
   
       $color_stylesheet = ( COLOR_THEME != 'default' ) ? 'core/styles/' . COLOR_THEME . '.css,' : null;
   
       ?><!DOCTYPE html>
   
       <html dir="<?php bloginfo('text_direction'); ?>" lang="<?php bloginfo('language'); ?>">
   
       <head>
   
       <meta charset="<?php bloginfo('charset'); ?>" />
   
       <meta name="theme" content="<?php echo COLOR_THEME; ?>" />
   
       <title><?php wp_title('–',true, 'right'); bloginfo('name'); ?></title>
   
       <link rel="profile" href="http://gmpg.org/xfn/11" />
   
       <?php
   
       	der_add_favicon('favicon');
   
       	der_load_stylesheets("style.css, $color_stylesheet core/style.php");
   
       	mod_typography_add_stylesheets();
   
       	der_do_robots();
   
       	wp_head();
   
       	ie_conditionals();
   
       ?>
   
       </head>
   
       <body<?php body_id(); ?>>
   
       <div id="topbar-wrap">
   
       	<div id="topbar">
   
       		<ul class="links">
   
       			<li class="rss-icon"><a href="<?php $_der->val('rss_feed', null, get_bloginfo('rss2_url')) ?>" title="<?php _t('RSS Feed'); ?>" ><img width="25" height="<?php echo MOD_SOCIAL_ICONS_HEIGHT; ?>" src="<?php bloginfo('template_directory'); ?>/core/images/icons/rss.png" /></a></li>
   
       <?php
   
       	$_der->set_options_context(MOD_SOCIAL);
   
       	$social_icons = mod_social_get_data();
   
       	foreach ($social_icons as $item) {
   
       		$target = ( $_der->checked('open_in_new_window') ) ? ' target="_blank"' : null;
   
       		$title = ( ! $_der->checked('hide_link_tooltips') ) ? ' title="' . $item['name'] . '"' : null;
   
       		echo "\t\t\t" . '<li><a href="' . $item['url'] . '"' . $target . $title . '><img width="' . MOD_SOCIAL_ICONS_WIDTH . '" height="' . MOD_SOCIAL_ICONS_HEIGHT . '" src="' . $item['icon'] . '" /></a></li>' . "\n";
   
       	}
   
       	$_der->restore_options_context();
   
       ?>		</ul><!-- .links -->
   
       		<form class="search" action="<?php bloginfo('home'); ?>" method="get">
   
       			<p><input type="text" name="s" title="<?php _t('Search...') ?>" value="<?php echo ( is_search() ) ? attribute_escape( get_search_query() ) : t('Search...'); ?>" /><input type="submit" value="<?php _t('Search'); ?>" /></p>
   
       		</form><!-- .search -->
   
       	</div><!-- topbar -->
   
       </div><!-- topbar-wrap -->
   
       <!-- + -->
   
       <div id="content-bg-overlay"></div>
   
       <div id="content-wrap-full"><div id="content-wrap-bg"><div class="content-wrap">
   
       <div id="header">
   
       	<div class="logo"><a href="<?php bloginfo('home'); ?>"><img src="<?php theme_logo(); ?>" /></a></div>
   
       	<div class="navigation centeredlist">
   
       		<span class="separator"></span>
   
       <?php
   
       	theme_navigation();
   
       ?>
   
       		<span class="separator" style="margin-top: -24px;"></span>
   
       	</div><!-- .navigation -->
   
       	<div id="breadcrumbs">
   
       		<?php
       		if (is_home()) {
       			echo "It works!"
       		}
       		else {
       			echo do_shortcode('[simple_crumbs root="Home" /]'); }
       		?>
   
       	</div>
   
       </div><!-- header -->
   
       <!-- + -->
   
       <?php  der_load_template(); ?>
       ```
   
 *  [Sam Scholfield](https://wordpress.org/support/users/sam-s/)
 * (@sam-s)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/is_home-command-not-working/#post-2256094)
 * put a **;** after `echo "It works!"`
 *  Thread Starter [Luis](https://wordpress.org/support/users/xluisramosx/)
 * (@xluisramosx)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/is_home-command-not-working/#post-2256099)
 * It works now! What a stupid mistake…. :\
 * Anyway, thanks a lot! I appreciate it 🙂

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Unable to hide object from homepage!’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 3 participants
 * Last reply from: [Luis](https://wordpress.org/support/users/xluisramosx/)
 * Last activity: [14 years, 10 months ago](https://wordpress.org/support/topic/is_home-command-not-working/#post-2256099)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
