How to Disable Local Environment Warning

Home Forums Porto – Responsive HTML5 Template FAQ’s How to Disable Local Environment Warning

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #10045725
    Support
    Keymaster

    “SVG Objects, Icons, YouTube and Vimeo Videos might not show correctly on local environment. For better result, please preview on a server.”

    Porto uses some features (such as SVG elements, color changes, etc.) that only work on the server, so we recommend that you run your website on a local server so that you can use all the features.

    How to run a local server (localhost):
    https://www.apachefriends.org/download.html

    If you still want to disable that warning, this is what you need to do:

    Version 12.1+
    Add the class “disable-local-warning” in the HTML tag:

    Older Versions:
    Open the file js/theme.js and comment/remove the line number 271.


    • This topic was modified 2 weeks, 6 days ago by Support.
    • This topic was modified 2 weeks, 6 days ago by Support.
    • This topic was modified 2 weeks, 6 days ago by Support.
    • This topic was modified 2 weeks, 6 days ago by Support.
    • This topic was modified 2 weeks, 6 days ago by Support.
    • This topic was modified 2 weeks, 6 days ago by Support.
    • This topic was modified 2 weeks, 6 days ago by Support.
    • This topic was modified 2 weeks, 6 days ago by Support.
Viewing 1 post (of 1 total)

This topic is marked as "RESOLVED" and can not rceive new replies.