Wix Answers

Do not post confidential info such as passwords or financial information.
Cancel
Post Question
wix Wix Team

With the HTML App you can add your own HTML code or embed another site onto your Wix site.

 

To add the HTML App: From the left side of the Editor, click the Add icon > click Apps > click HTML.

Click the HTML App to select it > from the pop-up menu, click Settings > under Mode, choose HTML Code or Website address > enter the code/address > click Update.

 

Note: Take a minute to read through the Known Issues & Limitations of the HTML iFrame/Embed App before using it.

 

For more information, click here or check out the tutorial below:
 

 

Replies(175 replies total)

Show my replies first
  • lyloonly

    Replied by lyloonly February 3, 2014

    Adding script

    I'll need to add the following script between <head> and <head> of my website. How do i do that?

     

    <script type="text/javascript">
    <!--
    pcToMobile("http://m.bonchonthailand.com");

    function pcToMobile(url) {
        var cookie_key = "change_switch";
        var cookie_value = false;

        var get_cookies = document.cookie;
        var cookies = get_cookies.split(";");
        for(var loopn=0; loopn < cookies.length; loopn++) {
            var items = cookies[loopn].split("=");
            if(trim(items[0]) == cookie_key) {
                cookie_value = trim(unescape(items[1]));
                break;
            }
            
        }

        if(getHttpParam("page_type").toUpperCase() == 'PC' && !cookie_value) {
            var date = new Date();
            date.setDate(date.getDate()+1);
            document.cookie=cookie_key + '=' + escape(cookie_value) + ';expires=' + date.toGMTString();
        } else if(document.referrer.substring(0, url.length)!=url && !cookie_value) {
            var mobileKeyWords = new Array('iPhone', 'iPod', 'BlackBerry', 'Android', 'Windows CE', 'LG', 'MOT', 'SAMSUNG', 'SonyEricsson', 'Symbian', 'nokia', 'webos', 'opera mini', 'opera mobi', 'iemobile');
            for (var word in mobileKeyWords){
                if (navigator.userAgent.match(mobileKeyWords[word]) != null){
                    location.replace (url);
                    break;
                }
            }
        }
    }

    function getHttpParam(name) {
        var regexS = "[\\?&]" + name + "=([^&#]*)";
        var regex = new RegExp(regexS);
        var results = regex.exec(window.location.href);
        return results == null ? "" : results[1];
    }

    function trim(str) {
        return str.replace(/(^\s*)|(\s*$)/gi, "");
    }
    //-->
    </script>

    • dinamiso Wix Team

      Replied by dinamiso February 3, 2014

      Hi,

      Unfortunately, it is not possible to add an external code to the < head> tag of your Wix site.

      Currently, it is possible to add an external code only to the < body> tag as an iframe.

      With the HTML App you can test and add your own HTML code to your Wix site.

      For more information check out the tutorial below, or you can click here.
       


      *Take a minute to read through the Known Issues & Limitations of the HTML iFrame/Embed App via the link above before using this.

       

      Dina-Wix Team.

  • kthughe2

    Replied by kthughe2 February 2, 2014

    HTML Code Question

    Hi I just bough a digital marketing platform Hubspot and they need to add this code to my site to track analytics and all other kinds of things how do I do that ?

    <!-- Start of Async HubSpot Analytics Code -->
      <script type="text/javascript">
        (function(d,s,i,r) {
          if (d.getElementById(i)){return;}
          var n=d.createElement(s),e=d.getElementsByTagName(s)[0];
          n.id=i;n.src='//js.hs-analytics.net/analytics/'+(Math.ceil(new Date()/r)*r)+'/363030.js';
          e.parentNode.insertBefore(n, e);
        })(document,"script","hs-analytics",300000);
      </script>
    <!-- End of Async HubSpot Analytics Code -->

  • xtine316 Premium VIP

    Replied by xtine316 February 2, 2014

    Web to lead form

    I am having issues with WIX's control over HTML and putting it in a iFrame. The standard contact form will not suffice as all it does it send an email. I use salesforce and need to integrate their Web to Lead form to my WIX site, issue is that once the form is submitted it redirects to a submitted URL which i always have as the home page. So once the form is submitted there is a smaller version of the site in the HTML frame instead of redirecting the whole site to the home page. Thoughts? 

    • Léa Wix Team

      Replied by Léa February 2, 2014

      Hey,

       

      Unfortunately we are not able to help you. 

      Keep in mind that by adding external HTML code you are adding products and code that we have not tested or created in Wix, therefore our support team cannot answer any questions concerning the HTML iFrame/Embed App.

      We recommend testing your code externally. You can do this using sites such as the following:
      w3schools.com
      jsfiddle.net

       

      Cheers

       

       

      Pensez à vous abonner à notre chaîne Youtube pour visionner tous nos tutoriels : https://www.youtube.com/channel/UCy7ONifkKb8_cWLWgjub7Mg Léa - L'Équipe Wix -
  • ddancewicz

    Replied by ddancewicz January 29, 2014

    Soundcloud embed code deemed invalid

    I am trying to embed a Soundcloud audio. I clicked on the window, got the embed code from the SC website, but after copying it into the editor it tells me it's invalid. What's wrong? I just copied and pasted, no mistakes have been made...

     

    Thanks, Dominika

    • Darth V.

      Replied by Darth V. January 29, 2014

      Hello Dominika!

       

      Please note that the character limit for the HTML code that you can add is 8,192 characters.

      Best regards, WIX Team
  • te8616

    Replied by te8616 January 25, 2014

    Hello Wix,

    I installed Ecwid online shop from the Wix apps and I in order to customize some checkout labels I need to append some Javascript to my Wix source code.

    How can I do this?

    • Tali Wix Team

      Replied by Tali January 25, 2014

      Hey

      I'm afraid it's not possible to edit the source code of your Wix site or any application from the App Market.

      The only way to add external code is by using the HTML app and adding your own code.

       

      If you're missing some features in the Ecwid app, you are more than welcome to contact them directly with this email- support@ecwid.com and request that they implement this feature.

       

      Please let us know should you require any further assistance.

      Tali, Wix Team
  • rusmotor

    Replied by rusmotor January 24, 2014

    Embedded URLs suddenly stopped showing on live site

    Hi,

    I am embedding one wix site into the HTML frame of another wix site and the content of the first site only shows partially. It did work well for several months, but now it fails to show. 

    I had this problem earlier and it was resolved by tech dept. Please, help me fis this asap, as these embedded URLS are course pages for my clients who need them daily.

    The pages are: 

    http://www.psyworkshop.com/#!transactional-course-materials/c1hnb

    http://www.psyworkshop.com/#!---2013-14/cvgs

    http://www.psyworkshop.com/#!--/c13jd

    Thank you!

    Ilya

    Thank you!

    • HIRO Wix Team

      Replied by HIRO January 24, 2014

      Hi usmotor,

      Please use the following websites to test your HTML code.
       w3schools.com
      jsfiddle.net


      Please note by adding external HTML code you are adding products and code that we have not tested or created in Wix, therefore our support team cannot answer any questions concerning the HTML iFrame/Embed App.

      Thank you for your understanding.

      Best regards,

       

      -HIRO, Wix Team
    • rusmotor

      Replied by rusmotor January 26, 2014

      HIRO,

      Please, note that i am NOT using any code that I TEST using the link you supplied. I am using strictly and ONLY the tools provided in the site builder toolbox.

      I had this problem last month and it was repaired after I asked for help with it. Are you positive that the support policy has changed and wix will not help me get the embedded URLs up and running this time? Please, do respond. Thank you!

      Ilya

    • Gat Wix Team

      Replied by Gat January 26, 2014

      Hi IIya,

      I noticed that you have posted multiple questions on the forum.
       
      In order to receive a more accurate response and to avoid any confusion with overlapping material, please post your question only once.
       
      This will also speed up our response time to you since you will not have to repeat your issue multiple times and explain it to multiple representatives.
       
      The information was forward to our QA department and we will update you in this thread.
       
      Thank you,
      Gat Wix Team.
  • VibrantLighting

    Replied by VibrantLighting January 15, 2014

    Anyone else getting more and more irritated by the lack of HTML functionality? every time i turn around to make my site more efficient, appealing, etc., i run into the standard answer..."Unfortunately no, that is not possible..." it seems like nothing is possible with wix. can i get my money back from the year i've purchased to find a provider that actually has useful features available? 

    • Yoav Wix Team

      Replied by Yoav January 15, 2014

      Hello,

       

      Please note that the downside of using an editing tool such as the Wix Editor is not having complete control over your site's source code - to ensure the site created is still valid.

      We apologize for the way you feel - we constantly work towards improving our product and providing users with additional features - can you please describe what exactly you wish to have in your Wix site, so we could better understand the issue and provide you with a more accurate response?

       

      Also note - refunds are available only if cancelling your Premium subscription in the first 14 days after purchasing the upgrade.

       

      Let us know if you need any additional help - we'll be happy to further assist!

    • VibrantLighting

      Replied by VibrantLighting January 15, 2014

      well, i guess i'll start looking for an editor that provides better tools and resources then, because the amount of "control" with wix is more like limited control, and even that is giving you too much credit for what you actually provide. as for the refund, i guess when the time comes i'll just have to let my bank handle the complaint.

       

      Beware to all that are interested in wix...if you think you can do something based on what they tell you in their brief descriptions...dig deeper, the truth of it is their tools are extremely limited and have very little likelihood to actually control anything outside of where you put a text box/image and what color it is.

  • gazpotter

    Replied by gazpotter January 14, 2014

    Hi i have a question, i can add my HTML using the App but my code needs to access the.js file i have. Can i include this some how please?

    • Yotam Wix Team

      Replied by Yotam January 14, 2014

      Hi,

      Unfortunately not, it's possible to embed Javascript code within the HTML app. However, that your code will only function within the constraints of the HTML app frame.

      You can find all the information about our HTML app here.

      You can post questions about the HTML app here.  

       

      Please note: Wix offers support directly related to our product. By adding external code you are adding products/code that we have not created or tested.

      Therefore, our Support team cannot answer any questions concerning Javascript or HTML.

      Yotam Wix Team
  • rlmooregroup

    Replied by rlmooregroup January 13, 2014

    Layaway Button

    I would like my paypal button to offer layway plans. Paypal gave me a code to add in to the 'buy now' button but I don't know where to paste the code in. 

    • HIRO Wix Team

      Replied by HIRO January 13, 2014

      Hi, 
      You can try using "HTMl iFrame/Embed" app.
      For the detailed instructions, please refer to the Best Reply of this thread.
      Thanks!

      -HIRO, Wix Team
    • rlmooregroup

      Replied by rlmooregroup January 14, 2014

      Thank you for your help! Unfortunately, I wasn't able to solve my layaway problem. Can the HTML iFrame/Embedded app let me edit the "buy now" button's code? Because the html app is only letting me make my own code for the site as a whole instead of a the "buy now" feature of the app. 

    • Itamar Wix Team

      Replied by Itamar January 14, 2014

      Unfortunately its not possible to edit the code of existing Wix elements.

      We document and learn from every feature request and bug brought to our attention. These objectives are immediately high priority milestones in Wix's product road map.

       

      Feel free to add your feature request to our Wish List by posting here.


      You can keep up to date with what features are coming soon here.

      Itamar, Wix team
  • bjschenkelberg

    Replied by bjschenkelberg January 11, 2014

    Hello Wix, I am using the HTML app and need to include a reference in it to my uploaded audio files, what is the location of the files (either full path or relative path) so I can include them in my href?  Thank you!

    • Ritti Wix Team

      Replied by Ritti January 12, 2014

      Hi,

      It is not possible to get the path as the directory is not accessible. The code you can write in the app mustn't contain elements that have to be pulled in.

      Best, Ritti

Add reply

Mark this reply as Best Reply
Close open child tickets
Post reply