- This topic has 6 replies, 2 voices, and was last updated 2 years, 12 months ago by
Leo.
-
AuthorPosts
-
February 7, 2020 at 9:16 am #1158135
Jay
I’m not entirely sure if this is just a general wordpress question or a GP question, or maybe a little bit of both?
Basically, I had a designer design a landing page for me and a developer turned it into code. So now I have an html file, css file, js file, and some images.
What’s the best way for me to take all of this and turn it into a wordpress page?
I wouldn’t want anything from my existing GP theme (no header, no footer, no sidebar, no css, etc.) on this page.
Thanks in advance!
February 7, 2020 at 10:32 am #1158191Leo
StaffCustomer SupportHi there,
You could try putting the HTML into the normal WordPress editor, CSS would be added using one of these methods:
https://docs.generatepress.com/article/adding-css/And then js usually goes in the
wp_footer
hook in hooks elements:
https://docs.generatepress.com/article/hooks-element-overview/Then you can use disable element to disable the header footer etc:
https://docs.generatepress.com/article/disable-elements-overview/Let me know if this helps ๐
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/February 7, 2020 at 1:00 pm #1158301Jay
Thanks for the reply!
Hmmmm, wouldn’t this still load all of my site’s css and js?
I guess what I’m looking to do is wipe out everything that would normally load on a page so that it’s essentially starting with nothing, and then insert the html/css/js/images for this one specific page.
Does that make sense?
February 7, 2020 at 1:06 pm #1158305Leo
StaffCustomer SupportThe default page should have very little CSS added if all the elements are disabled using the layout element recommended above.
You can also remove the content padding by using the page builder container option:
https://docs.generatepress.com/article/page-builder-container/There is no js added unless you are using the sticky navigation which we can disable for that specific page:
https://docs.generatepress.com/article/option_generate_menu_plus_settings/#sticky_menuThat should give you basically a blank page. Maybe start with that and see if it works for you?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/February 7, 2020 at 1:08 pm #1158306Leo
StaffCustomer SupportMaybe look into a custom page template as well?
https://www.wpbeginner.com/wp-themes/how-to-create-a-custom-page-in-wordpress/Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/February 7, 2020 at 5:24 pm #1158427Jay
Good call, I think a custom template is probably my best option. Thanks!
February 7, 2020 at 6:30 pm #1158452Leo
StaffCustomer SupportNo problem ๐
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.