I make the Content Template and insert the Edit Form inside without associate the posts, I installed the Layouts plugins but I don't plan to use it for the post edit form because I don't know how I can embed the header and footer from the GeneratedPress theme.
When I add the edit link in Views, I get a message and not allow me to insert the shortcode into Views (see screenshot). I can add the delete link. Is it must have the layouts?
I follow the steps and add the layout, it solved but I don't understand why it works. To my understanding, Layouts is used to format the whole page design including the menu, header and footer while Content Template is used to format a part of the content. In the steps, I didn't insert the menu element, why the form edit page still keep all the default page elements like menu, logo, header and footer?
What is the difference between layouts and content template, it makes me confused.
When I edit the post using the form, the previous and next Post navigation link show at the bottom of the post like the reading mode. How can I remove it only from edit form?
Give a name to your layout and do not assign it to any content.
As you stated - you should not assign this layout to any content and add the edit form to it, so basically here we are using the layout as an edit form container.
Layouts is used to format the whole page design including the menu, header and footer while Content Template is used to format a part of the content.
=> Generally, if you're using the Layouts plugin you should use a Template Layout to define a design for the main content area of your custom post type. If you're not using the Layouts plugin, you should use a Content Template.
Again, Layout is only affected on your the_content() (body part), Layouts do not control the header, footer etc..etc.. until the theme is integrated with Layouts.
Yes, the navigation links are coming from GeneratePress, as the layout now is embedded into the theme as an edit form container, there is no page id when the form is in edit mode, GeneratePress needs to know how to differentiate the current post is under view mode or edit mode and then define the condition to show or hide the navigation links. GeneratePress suggests me to ask from Toolset.
I tried to deactivate the Layouts and I can select the content template when adding edit link from Views. After I activate the Layouts, I can only select the Layout template, I find both shortcode works
As per the structure only one method you should follow, if you don't want to use Layouts, just deactivate it otherwise content template will be overridden by Layouts. That is why we have two method, either use content template or Layout.
When you click on edit link - do you see any URL param in the address bar - if yes, you need to target that URL param that if that URL param is that then add that custom css to hide the navigation links on that page.