- This topic has 9 replies, 3 voices, and was last updated 3 years, 2 months ago by Elvin.
-
AuthorPosts
-
January 25, 2021 at 2:08 pm #1633332Matthieu
Hello, do you know if it is possible to get a similar rendering of menu animation with generatepress ?
Thanks
January 25, 2021 at 5:50 pm #1633474LeoStaffCustomer SupportHi Matthieu,
Unfortunately something like that would likely require a custom javascript solution.
January 25, 2021 at 5:52 pm #1633477MatthieuAh that’s what I thought. The problem is that I can’t see where to place the js and the html. For the css I guess it’s in the additional css part.
Thanks
January 25, 2021 at 6:11 pm #1633497LeoStaffCustomer SupportJS can usually go into
wp_footer
hook with a hook element:
https://docs.generatepress.com/article/wp_footer/
https://docs.generatepress.com/article/hooks-element-overview/January 25, 2021 at 6:20 pm #1633505MatthieuThank you very much for your answer. However, adding js directly to the hook doesn’t seem to work.
Another question, or should I add the associated HTML and CSS to the jss?
For the Css, in the customizer I guess, for the HTML, I don’t see.
January 25, 2021 at 7:23 pm #1633549LeoStaffCustomer SupportSolutions like this aren’t typically very easy to implement.
Are you sure it works in a WordPress environment?
HTML would need to be hooked with the WordPress menu system somehow.
If the animation is a requirement then you might need to consider hiring a developer to do it for you.
January 26, 2021 at 10:27 am #1634621MatthieuHello, In truth I don’t know if the animation works on WordPress.
I would have liked to make the display of the side panel more dynamic (Without going through a developer), that’s why I am learning about how to integrate the jss, css and html to be able to possibly recover a menu animation on codepen and try to integrate it on my site you see?
January 26, 2021 at 10:50 am #1634649LeoStaffCustomer SupportI’d say it’s definitely possible but I have a feeling that something like this would be pretty difficult if you don’t have any prior experience in something like this.
January 26, 2021 at 1:51 pm #1634845MatthieuThank you for your reply. I don’t want to bother you with this because I know this is not the place to ask this kind of question.
Can you maybe tell me where should I place the items below if I give you for example this?
https://codepen.io/gustavomodena/pen/adZgWK
I am not an expert in development but it is something that fascinates me, I always want to learn more.
Sometimes I manage to fend for myself when it comes to html or css, there with the addition of JS it gets slightly complicated since there is no indication on generatepress to place this element . (example the css goes in customize> additional css and for the HTML there is a container dedicated to that.)
Thank you very much for your time.
January 26, 2021 at 7:39 pm #1635034ElvinStaffCustomer SupportHi there,
Can you maybe tell me where should I place the items below if I give you for example this?
The CSS part is usually placed within a
<style>..</style>
tag, you then hooked it towp_head
.The JS part is usually placed within a
<script>..</script>
tag, you then hook it towp_footer
orwp_head
if its a script for ads or if it’s not for manipulating HTML elements.For the HTML, it really depends on where you want to put it. You can either add it as a custom HTML within the content through Gutenberg editor or you can hook it in with a Hook Element. 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.