Community Forums › Forums › Archived Forums › General Discussion › Is this hook removed? Replacement? genesis_before_sidebar_widget_area
- This topic has 6 replies, 4 voices, and was last updated 5 years, 2 months ago by
AnitaC.
-
AuthorPosts
-
November 27, 2019 at 6:09 am #495081
jezza101
MemberI was getting an error on the genesis_before_sidebar_widget_area hook and looking into it I notice it has been removed according to:
If so, is there an up to date list of hooks? All the lists I search for still have this.
What can I use instead?
Many thanks
November 27, 2019 at 8:37 am #495083Victor Font
ModeratorThat hook was deprecate in Genesis Version 1.7. The Genesis archives only go back to version 2.1.0, which was released in June 2014. This means that the hook you are relying upon predates 2014. It also means that the hook was used for generating XHTML code. Genesis no longer supports XHTML since the 3.0 release.
Since we don't know what you're trying to accomplish, I don't have any suggestions for you.
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?November 27, 2019 at 9:05 am #495085AnitaC
Keymaster@jezza101 what theme are you using? When 3.0 was released June 19, 2019, the framework was updated to
Removed support for all non-html5 output.
See Changelog here. If you are using a non-html5 theme this means your version of Genesis will no longer be updated. You should consider updating your sites to HTML5 themes to continue receiving updates for the framework.*updated to reflect the correct date above.
Need help with customization or troubleshooting? Reach out to me.
December 3, 2019 at 8:33 pm #495211kennypress
ParticipantHi, I have the same problem and question. Site completely broke when I updated to Genesis 3.x due to deprecated hooks.
- Are there any resources yet to see approved/current v.3 hooks? All of the visual hook guides I find do still show the deprecated hook in question, even newer posts.
In case it's helpful, I was adding a custom sidebar to the header.
remove_action( 'genesis_after_content', 'genesis_get_sidebar' ); add_action( 'genesis_before_content', 'get_page_header_sidebar' ); function get_page_header_sidebar() { genesis_before_sidebar_widget_area(); dynamic_sidebar( 'page-header-widget' ); genesis_after_sidebar_widget_area(); }
- Are the 'before' & 'after' hooks just not needed anymore and should be deleted, or replaced with something appropriate?
December 3, 2019 at 8:53 pm #495212AnitaC
KeymasterWhat theme and version are you using?
Need help with customization or troubleshooting? Reach out to me.
December 4, 2019 at 9:49 pm #495260kennypress
ParticipantHi, don't want to totally hijack this thread. Still mostly want to find out if there are any updated v.3 hooks guides or resources, as with the OP.
But we used custom themes on all of our sites that are based on a stripped-down base child theme that just has some common items we use on all sites. These themes are HTML5 enabled, however. The code we are using produces an aside with the widget code inside.
December 4, 2019 at 10:16 pm #495261AnitaC
Keymaster@kennypress you need to be more specific with what you need. What is the base child theme? Did you start with some version of Genesis? If so, what version did you start with. Link to the site and also an example of the code you were using that no longer works.
Need help with customization or troubleshooting? Reach out to me.
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.