This source code is for the Geneis HTML5 "Return to Top" Tutorial article. In the original article, I included screen prints of the source and links to another site that has now become a paid membership site. This source code below is complete and will provide the Return to Top scrolling for Genesis HTML5 themes.
Reader Interactions
VictorFont.com runs on the Genesis Framework
The Genesis Framework empowers you to quickly and easily build incredible websites with WordPress. Genesis provides the secure and search-engine-optimized foundation that takes WordPress to places you never thought it could go.
Check out the incredible features and the selection of designs. It's that simple—start using Genesis now!
Click here to download The Genesis Guide for Absolute Beginners (PDF - 1.4 MB)
I pasted the code into Dynamic Custom Functions and it would not save. Looked at Cobalt forums and indicated it is not saving is because of “Some malformed PHP in your functions?”
This code used to work just fine on other sites but not when I’m building a new one.
Any ideas?
This has worked on every Genesis site I’ve ever used it on without issue. I suspect that there’s something going on with Dynamic Custom Functions not writing the jQuery properly. You put the jQuery script in the Genesis/Theme Settings/Footer Script area. Then just add the shortcode to the Dynamic Custom Functions.