editing functions.php results in Parse error:
-
Hi there,
I am running a site with a storefront child theme and whenever I add code to the funtions.php file it results in:Parse error: syntax error…storefront-child/functions.php on line 16
I can fix this but why won’t it work?
The code I was trying to add is below – I am adding this code above the
// END ENQUEUE PARENT ACTION;and have used the plugin ‘Child Theme configurator by Lilaea
any help would be greatly appreciated!
Mark
+++++++++++++++++<?php /** * Adds a top bar to Storefront, before the header. */ function storefront_add_topbar() { ?> <div id="topbar"> <div class="col-full"> <p>Your text here</p> </div> </div> <?php } add_action( 'storefront_before_header', 'storefront_add_topbar' );
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘editing functions.php results in Parse error:’ is closed to new replies.