- This topic has 30 replies, 2 voices, and was last updated 6 months ago by Leo.
March 30, 2020 at 12:44 pm #1220000itg
ok i have updated and elements is now showing
but i am getting this error
DISALLOW_FILE_EDIT is defined. You should also disallow PHP execution in GP Hooks.March 30, 2020 at 12:51 pm #1220001LeoStaffCustomer Support
It’s explained here:
You don’t need to worry about it if you aren’t using PHP in hooks – the display rules replace the need to use PHP.
If you have other existing hook content then I would recommend migrating to hooks elements:
https://docs.generatepress.com/article/moving-hooks-page-headers-to-elements/March 30, 2020 at 12:54 pm #1220003itg
ok i have installed new version of gp, and created a new element, now my hooks have disappered, there is no navigation to the hooks argggggg what am i doing wrong here?March 30, 2020 at 12:55 pm #1220006itg
I dont know where the hook is now and its content, why is this so confusing, must just be eMarch 30, 2020 at 12:57 pm #1220012itg
I dont understand how a simple thing like pasting a piece of code is turning into a huge problem that requires watching tutorials and reading pages of instructions. I always used gp for its ease of use. Now with each update its getting more and more technical. Why cant we just keep it all simple?March 30, 2020 at 12:59 pm #1220015itg
ok i found the hooks eventually under legacy hooks and i have created an new elemet, but still not working for me. I am using the same code.March 30, 2020 at 1:06 pm #1220023itg
Ok i watched the video leo on merging or migrating the hook now to an element and i am even more confused than when i started. Sorry not my strong point.March 30, 2020 at 1:39 pm #1220050LeoStaffCustomer Support
Let’s take it one step at the time.
Have you tried the steps here?
https://generatepress.com/forums/topic/trying-to-not-show-hooks-on-home-page-latest-posts/#post-1219964March 30, 2020 at 1:41 pm #1220052itg
yes have followed all your steps without sucess, thank you leoMarch 30, 2020 at 1:46 pm #1220053LeoStaffCustomer Support
This is the content you are currently adding:
Can you try adding the content I specified here (copy and paste)?
The display rules tab replaces the need for PHP conditional statement.
<?php if ( ! is_front_page() && ! is_home() ) : ?>March 30, 2020 at 1:51 pm #1220057itg
i have done what you said and think its has worked, does it look ok to you Leo?March 30, 2020 at 1:56 pm #1220063LeoStaffCustomer SupportMarch 30, 2020 at 1:59 pm #1220072itg
ok thanks leo
one last question is it ok to ignore this
DISALLOW_FILE_EDIT is defined. You should also disallow PHP execution in GP Hooks. Learn howMarch 30, 2020 at 2:00 pm #1220075LeoStaffCustomer Support
Yup you can ignore that no problem.
If you have nothing else in the old GP hooks, then you can disable the module as well:
https://docs.generatepress.com/article/installing-gp-premium/#activate-your-modulesMarch 30, 2020 at 2:03 pm #1220081itg
thanks leo your a real help, take care during these troubled times….
- You must be logged in to reply to this topic.