bobbingwide / genesis-SB

Genesis-SB - Specially Built for seriously bonkers.com / bigram.co.uk
https://seriouslybonkers.com
GNU General Public License v2.0
0 stars 0 forks source link

Content appearing twice per page #3

Closed bobbingwide closed 7 years ago

bobbingwide commented 7 years ago

I don't know when this started but on every page the content appears twice, the content appears twice.

bobbingwide commented 7 years ago

In the functions.php file I'd commented out a line of code, adding a @TODO.

// Start the engine - @TODO Is this necessary?
//include_once( get_template_directory() . '/lib/init.php' );

It turns out that this line is necessary because...

If lib/init.php is not loaded early then any attempts to alter the standard genesis hooks are ineffective, since they've not yet been defined.

TL:DR

Yes, you need to start the Genesis engine before making modifications. Solution: Uncomment the code, change the @TODO comment.