- This topic has 30 replies, 2 voices, and was last updated 6 years ago by
Leo.
-
AuthorPosts
-
March 30, 2020 at 12:44 pm #1220000
itg
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 #1220001Leo
StaffCustomer SupportIt’s explained here:
https://docs.generatepress.com/article/disallow-php-execution/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 e
March 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 #1220050Leo
StaffCustomer SupportLet’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-1219962
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 leo
March 30, 2020 at 1:46 pm #1220053Leo
StaffCustomer SupportThis is the content you are currently adding:
https://www.screencast.com/t/yiNuWTwYjLCan you try adding the content I specified here (copy and paste)?
https://generatepress.com/forums/topic/trying-to-not-show-hooks-on-home-page-latest-posts/#post-1219964The 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 #1220063Leo
StaffCustomer SupportYup that looks good 🙂
March 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 how
March 30, 2020 at 2:00 pm #1220075Leo
StaffCustomer SupportYup 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….
-
AuthorPosts
- You must be logged in to reply to this topic.