[Resolved] Add static pages

Home Forums Support [Resolved] Add static pages

Home Forums Support Add static pages

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #465160
    Mario

    Hi,

    I have a static page that I would use in my WordPress home page.

    This static page is a folder that contains:

    3 .css files
    2 .js files
    and 1 .html file (that include html, head and body tag).

    Is there a way to add this static page in my site without interfering with existing CSS and JS?

    I use Generatepress Theme and GP Premium.

    Thanks.

    #465205
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    So this static page would be outside of WordPress? Just plain HTML?

    #465224
    Mario

    Hi,

    I have a folder in my computer that contains all the files for this page.

    If I click the index.html, the page works in my browser. it’s a static html page.

    I would this page inside my wordpress site.

    #465467
    Tom
    Lead Developer
    Lead Developer

    Took a look around to find some instructions – this thread looks helpful: https://www.reddit.com/r/Wordpress/comments/2uhpa0/use_indexhtml_notphp_as_homepage_with_wordpress/

    #465619
    Mario

    Hi,

    I read it, but I’m not a developer. I don’t know how to do.

    Do you have a personal solution to have this static page inside wordpress?

    Thanks.

    #466091
    Tom
    Lead Developer
    Lead Developer

    Unfortunately it’s not an overly easy thing to do – at least not easy enough to explain in these forums. The way I would explain it is in the link I provided earlier.

    Perhaps your hosting support can help set things up the way you need?

    #466146
    Mario

    Hi,

    if you are sure that you can not help to accomplish this, no problem.

    Thanks anyway.

    #466307
    Tom
    Lead Developer
    Lead Developer

    No problem – if your hosting isn’t willing to set it up (they may not), you can try a service like codeable.io 🙂

    #466393
    Mario

    Thanks for the advice.

    Do know if add a plain html (with css and javascript) can cause issue to the WordPress security?

    Thanks.

    #466803
    Tom
    Lead Developer
    Lead Developer

    It shouldn’t, that page would be completely separate to WordPress.

    #466868
    Mario

    Yes, the page is inside wordpress because I created a custom-page.php in the Generatepress theme folder.

    I followed your article in reddit.

    #467377
    Mario

    Hi, can you reply?

    Thanks.

    #467751
    Tom
    Lead Developer
    Lead Developer

    Sorry, missed your last reply.

    In that case, security would depend on the content of your page template. If there’s nothing crazy in there, I wouldn’t worry about it.

    #467797
    Mario

    Hi Tom, no problem.

    The content of my page template was built using a web desing tool very well known.

    The code is very clean.

    #468087
    Tom
    Lead Developer
    Lead Developer

    Then you should be good to go 🙂

Viewing 15 posts - 1 through 15 (of 16 total)
  • You must be logged in to reply to this topic.