So with this, you should be able to access the values you want. That flag will work on any of the price tags once this point release is out. So in a future release (not this coming one that is going out soon), we plan on introducing a Dynamic Content tag that will be structured somewhat like this: – Will output this price without tax, regardless of what the global setting is. We didn’t want to get into the opinionated nature of trying to bake in all these hooks where we think they should go, because it might still not give you the exact placement you want on something. Because of this, we are planning on implementing a new Dynamic Content specifically for referencing hooks, which you as the user will be able to place anywhere in your design. That being said, we do understand the desire for some users to implement the traditional hooks into their designs either for backwards compatibility, or just as a preference. Pair that with the addition of new features like our Element Conditions and Dynamic Content, and there’s almost no need for these hooks as you can recreate the same logic needed in a hook from directly within the builder. Utilizing a child theme and the appropriate hooks allowed users to inject markup or functionality where needed, much like your example.įast forward to today with the more modern approach of utilizing a builder and a specified library of Elements to layout pages and templates, the functionality that these hooks provided is less appropriate / necessary due to the very nature of a builder and the fact that these builders give users total control over the markup of their layouts. Back when theming typically meant installing a product with a “fixed” style and markup, hooks provided a much-needed way to access different parts of the markup without having to alter the core files of the theme itself. With regards to hooks like the one referenced in your example, the primary functionality of hooks comes from long ago in WordPress when themes and builders were much less robust than they are today. I’ve been reviewing this post along with internally it prompted some discussions of how to handle the various moving pieces going on here. Howdy, Thanks for writing in and sorry for the confusion here.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |