- This topic has 13 replies, 2 voices, and was last updated 3 years, 7 months ago by
David.
-
AuthorPosts
-
September 26, 2018 at 7:40 am #686779
Brian
Hi,
I am trying to migrate hooks into elements but I am having limited success. I have added one hook which appears twice but I have also added others which only display once, meaning that the elements must not yet be working, One of them is chapter headings which uses php. I have ticked the execute php box but where I should be seeing 2, I only see one. What am I doing wrong?
GeneratePress 2.1.4GP Premium 1.7.2September 26, 2018 at 7:48 am #686875David
StaffCustomer SupportHi there,
in the Chapter headings, if you replace the PHP with some static text does it then display?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 26, 2018 at 7:59 am #686885Brian
Hi David,
No, It doesn’t seem to.
September 26, 2018 at 8:23 am #686907David
StaffCustomer SupportHmmm… are the Display Rules set?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 26, 2018 at 11:00 am #687055Brian
Yes, It’s set to display on the entire site.
September 26, 2018 at 12:08 pm #687108David
StaffCustomer SupportCan you try removing the script from the legacy hook.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 27, 2018 at 1:31 am #687424Brian
Hi David,
I have gone into the legacy hooks and have disabled the hook for the chapters and nothing is now coming up up.
September 27, 2018 at 3:41 am #687534David
StaffCustomer SupportWould you be ok to share admin login with us?
If so you can send it via the account issues form, please reference this topic URL:
https://generatepress.com/contact/Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 27, 2018 at 8:12 am #687832Brian
Hi David,
I have Just sent them on.
September 27, 2018 at 8:25 am #687848David
StaffCustomer SupportHi there,
i moved the new hook to after_entry_header and reduced the priority to 5 so its now between the title and the audio button. Is that correct?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 27, 2018 at 11:19 am #687993Brian
Hi David,
No, it needs to be before the title, centred but when I put it into that it wouldn’t work. I messed around with it a bit and put into before main content with priority of 5 and it seems to work, but I don’t understand why it wouldn’t work on the previous settings, what was I doing wrong?
September 27, 2018 at 11:33 am #688001David
StaffCustomer SupportGlad you found the solution.
The before_entry_title doesn’t exist on the Page template only the single post.
This visual guide may be of use:https://docs.generatepress.com/article/hooks-visual-guide/
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 28, 2018 at 6:31 am #688532Brian
Thanks for That David, Much Appreciated
September 28, 2018 at 8:23 am #688660David
StaffCustomer SupportYou’re welcome
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.