Unable to hide object from homepage!
-
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 92So, 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)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘Unable to hide object from homepage!’ is closed to new replies.