Adding text to index.html in iWeb

I am currently trying to convert my website to mobile phone. I'm using Fetch as my FTP client, and Duda Mobile to create the mobile site. I am trying to add text in the index.html file, however, I don't know if I need a particular text editor to do this or if I can just use Text Edit to do this. Does anyone know how to edit the index.html file to include the line opf text in the <head> to redirect mobile device users to the mobile version of my site?

The index.html file is just a redirect to the Home(first page) page of your site.
You can open it in TextEdit to add stuff.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Title Tag Goes Here</title>
<meta http-equiv="refresh" content="0;url= Home-Page.html" />
<meta name="robots" content="follow,index" />
<!--head_code_set--><!--/head_code_set-->
</head>
<body><!--code_set--></body>
</html>
Note that you will have to do this every time you publish changes to your site since iWeb will overwrite anything you add to the file the next time you publish.

Similar Messages

  • Adding an area for text and importing HTML from Photoshop.

    Okay, here's the skinny:
    I've designed a homepage in photoshop and have decided to export it using the "save for web and devices" option in Photoshop.  I've basically sliced the image up into different areas and now that I have it sliced and saved I am looking to import it into dreamweaver, which is actually really easy and caused me no issues.
    My question is regarding adding text to such a page, which is now in dreamweaver and all I have is images as the web page.  Can I just delete the images, and some of them are just blank black space that i've specifically sliced in the photoshop in case I want to add text in those areas later, and just add text in those areas?  Do I need a div tag in that situation?  Sometimes when I try and just add text the text pushes the rest of the images to the right when I reach the edge of the space I am using to type text.  I guess you've probably established I am kind of new to this and doing it in a completely amateur way, but at this point all I am trying to do is create a sample for someone.  I am not in the business of web design or plan on getting into it at any point.  This is mostly for fun for me and screwing around.
    Thanks.
    Maybe an illustration would help?  Let me know.

    Sadly, this is an all too familiar lament in these forums.   Graphics apps produce crappy HTML pages.  They're only good for quick comps to show the client before you go to all the trouble of re-building the design with CSS and HTML code.  Use Pshop for images only.  Use DW to build your web pages. 
    The following tutorial describes the procedure you should use.
    Part 1 - Initial Design
    http://www.adobe.com/devnet/dreamweaver/articles/dw_fw_css_pt1.html
    Part 2 - Markup preparation
    http://www.adobe.com/devnet/dreamweaver/articles/dw_fw_css_pt2.html
    Part 3 - Layout and CSS
    http://www.adobe.com/devnet/dreamweaver/articles/dw_fw_css_pt3.html
    Best of luck on your project!
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Adding new text in SHC HTML template with different colour

    Hi Gurus,
    We are using SRM5.0 Server 550 and SP14 and classic scenario.
    Is it possible to change the colour of a newly added text in Shopping cart HTML template?
    I mean we have a requirement to add a new text in HTML template of shopping cart and with a different colour so that it woulod be highlighted whenever users try to shop something.
    Can anyone let me know the pros and cons of such a thing, if later on they upgrade to SRM7.0 and its feasibility?
    Regards,
    Teja

    Hi,
    You can enhance/modify the HTML template.
    SRM 7.0 does not use ITS HTML template. So SRM 5.0 is the last version using ITS HTML template and no impact for upgrading to SRM 7.0.
    Regards,
    Masa

  • IWeb Can't open file "~/Sites/index.html."

    when trying to either launch iWeb or open one of my web pages - I get an iWeb dialog box that states "Can't open file "~/Sites/index.html."
    any advice?

    Hello Felicia,
    iWeb is not capable of opening "HTML" files iWeb will only open a ".sites2" file type which is an iWeb domain file type. I would suggest doing a search for ".sites2" on your computer

  • Adding HTML on iweb

    Could anyone tell me if you can add HTML to an iweb website and if so how?
    Thanks

    Although true that you can’t do HTML in iWeb as is, there are several options available. All stem from a post-publishing mentality. Basically you create a box in iWeb where you want your HTML to go (put in some filler text so you can find it). Post-publishing, find the page with the HTML text, then open it in a text editor. Find your box with the filler text, and add your HTML – removing the reference to the box.
    Alternatively, you could get a third-party software that allows you to embed HTML in an iWeb page, and then converts the HTML code (again post-publishing). This method allows you to add code on the fly in iWeb and then ‘automate’ the process of converting the ‘box’ code to straight HTML.

  • Iweb created capital "INDEX.html"

    iweb creates a capital "INDEX.html" page and it doesn't open when viewed over the web. Can't seem to make it create "index.html" and don't want to redirect it. Any suggestions?
    When I create a new page, it creates the page name in all caps. I can't change it, because it'll change it right back, for all pages that show up in the navigation bar. If I create a page and tell it not to include it in the nav bar, then it seems to let me, but if it's in the nav bar, it won't.
    The problem is that when you enter my domain name, it doesn't see capital "INDEX.HTML", and instead shows a directory tree of all the files on server. I had been using the term "HOME" and it was automatically redirecting from the index.html page to the "HOME.html" page, but some browsers are kicking back errors, asking users if they want to be redirected to another site, which isn't something I can live with.
    How can I make the "INDEX.html" page lower case so the browsers will see it and not need a redirect?
    Any help would be greatly appreciated.
    Thanks-

    The index.html file that iWeb creates is a redirect file and has no content, but it is NOT 0kB.
    When you access your website without a pagename, index.html redirects to the first page in your Site.
    iWeb is not involved in your problem. Better use another FTP application like [Cyberduck|http://cyberduck.ch] or check the settings of your current FTP app.

  • Iweb and index.html won't work with ftp provider

    Hello all.
    I have been working on my new website using iweb 09 and I have had problems publishing it to My ftp provider. I have followed all the prompts to the end, but when I have published my site and go looking for it on Web using my URL , it says there is an error.
    I have been in touch with my host provider " Just Host" and this is the message they sent me ( I have copied and pasted it ):
    As I see all you have uploaded to the *login name* account is index.html.
    You have uploaded it incorrectly, to the root folder /login name/, whether index file and the rest of the site for www.mywebsite.com should be located in the /login name/public_html/ folder.
    I've moved the file to the proper folder and the site started showing up the error.
    Your index.html file is incorrect.
    What does this all mean? I went to the apple shop and they suggested using Mobile Me as this would not happen, but that does not suit me as I have just signed up for 4 years with Just Host and I'd like to use them. The apple shop also told me that iweb separates each page of the website and assigns an index.html to each folder for each page and they supposedly are all linked? From the above e-mail if I understand it correctly, this is not the case or do I have to do something for this to happen?
    I am at a total lost and having a melt down! Can any one out there help me in plain English as I am only new to all this and am only just getting familiar with the website terminologies? I have searched many forums and have had to look up hundreds of terms in " computer " dictionaries to understand what people are talking about. Please excuse my mental breakdown, as I am really worried that all this work I have put in will go down the chute.
    I'm sure you understand how frustrating it can be when something so simple becomes so difficult!
    Your help would be greatly appreciated.
    Thank you .
    Ben.

    Hello Ethmoid.
    Thank you for your response. I have attached this e-mail to both you and Wyodor as you have been both extremely helpful.
    I have managed to get my home page up thanks to your help, but for some reason now , it won't go to the following pages, about,products etc?
    As I have done a few web site practices ,I have read that sometimes Iweb has trouble distinguishing between the different sites published in my site or public folders. Could this be the problem? Do I need to delete my old sites?
    I tried to change the site name to another name but it won't allow me, every time I retype the new name it keeps jumping back to the extra www.etc.
    Also for some reason , all the boxes where my page headings are, they seem to be out of line and a different size even though on my desktop on iweb my front page has all the boxes the same size.
    Why is this?
    Once again thank you for your help.
    Ben

  • When I try to open iweb I get the following message: Can't open file "~/Sites/NAVIGATOR/index.html." How do I fix this? Using 10.6.3 soon to be 10.6.6 and then Lion.

    When I try to open iweb I get the following message: Can’t open file “~/Sites/NAVIGATOR/index.html.” How do I fix this? Using 10.6.3 soon to be 10.6.6 and then Lion. I have never opened the product before and have had it on the computer since new.

    Go into your Users/Home/Library/Application Support/iWeb folder and see if there's a file titled Domain.sites.  If there is double click on it and see if iWeb opens.
    If there is no Domain file there do the following:
    delete the iWeb preference files, com.apple.iWeb.plist and com.apple.iWeb.plist.lockfile, that resides in your Home() /Library/Preferences folder.
    go to your Home()/Library/Caches/com.apple.iWeb folder and delete its contents.
    Click to view full size
    launch iWeb and try again.
    OT

  • How do I remove the automatically added index.html from my home page domain?

    I've just recently noticed that muse adds index.html to my home page. I would like to remove it and revert back to how it used to be. This is the 2nd website I have this problem with

    Hi
    I am afraid, this is system default process and it is not possible to change the file name for the very first page created in Adobe Muse from index.html to home or any other file name.
    You may also want to refer to some articles to know why it is important to have index.html page within your site  : What Is the index.html Page - Default Web Pages , Home page - Wikipedia, the free encyclopedia

  • Index.html - SWF file not working in browser

    The navigation button on my Flash/SWF intro page (www.benscarrillustration.com) isn't working in web browsers. What am not doing correctly.
    I have the following 3 files in my cPanel File Manager....
    1. index.html
    2. Ben Scarr Illustration.swf
    3. Ben Scarr illustration.html
    <!DOCTYPE html>
    <html>
        <head>
            <meta charset="UTF-8">
            <link rel="shortcut icon" href="/avatar.ico" type="image/x-icon">
            <title>Ben Scarr Illustration</title>
            <style type="text/css" media="screen">
            html, body { height:100%; background-color: #ffffff;}
            body { margin:0; padding:0; overflow:hidden; }
            #flashContent { width:1214px; height:100%; margin:auto;}
            </style>
        </head>
        <body>
            <div id="flashContent">
                <object type="application/x-shockwave-flash" data="Ben Scarr Illustration.swf" width="1214" height="717" id="Ben Scarr Illustration" style="float: none; vertical-align:middle">
                    <param name="movie" value="Ben Scarr Illustration.swf" />
                    <param name="quality" value="high" />
                    <param name="bgcolor" value="#ffffff" />
                    <param name="play" value="true" />
                    <param name="loop" value="true" />
                    <param name="wmode" value="window" />
                    <param name="scale" value="showall" />
                    <param name="menu" value="true" />
                    <param name="devicefont" value="false" />
                    <param name="salign" value="" />
                    <param name="allowScriptAccess" value="sameDomain" />
                    <a href="http://www.adobe.com/go/getflash">
                        <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
                    </a>
                </object>
            </div>
        </body>
    </html>

    Thanks for the information about Flash no longer being the best or contemporary way to design web sites. This shows me how long I've been away from designing them.
    I will redesign my web site in Dreamweaver very soon, as I would like it to play on iOS devices.
    But at the moment I would just like to see my Flash page working in a browser.
    I have inserted my Flash page in to Dreamweaver, and new code has been automatically added. But still the navigation button doesn't work.
    <!DOCTYPE html>
    <html>
        <head>
            <meta charset="UTF-8">
            <link rel="shortcut icon" href="/avatar.ico" type="image/x-icon">
            <title>Ben Scarr Illustration</title>
            <style type="text/css" media="screen">
            html, body { height:100%; background-color: #ffffff;}
            body { margin:0; padding:0; overflow:hidden; }
            #flashContent { width:1214px; height:100%; margin:auto;}
            </style>
        <script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
        </head>
        <body>
            <div id="flashContent">
                <object type="application/x-shockwave-flash" data="benscarrillustration.swf" width="1214" height="717" id="benscarrillustration" style="float: none; vertical-align:middle">
                    <param name="movie" value="benscarrillustration.swf" />
                    <param name="quality" value="high" />
                    <param name="bgcolor" value="#ffffff" />
                    <param name="play" value="true" />
                    <param name="loop" value="true" />
                    <param name="wmode" value="window" />
                    <param name="scale" value="showall" />
                    <param name="menu" value="true" />
                    <param name="devicefont" value="false" />
                    <param name="salign" value="" />
                    <param name="allowScriptAccess" value="sameDomain" />
                    <embed src="benscarrillustration.html" width="1214" height="717" quality="high" bgcolor="#ffffff" play="true" loop="true" wmode="window" scale="showall" menu="true" devicefont="false" salign="" allowscriptaccess="sameDomain"><noembed><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></noembed></embed>
                    <a href="http://www.adobe.com/go/getflash">
                    </a>
                </object>
                <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="1214" height="717" id="FlashID" title="benscarrillustration.swf">
                  <param name="movie" value="benscarrillustration.swf" />
                  <param name="quality" value="high" />
                  <param name="wmode" value="opaque" />
                  <param name="swfversion" value="6.0.65.0" />
                  <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
                  <param name="expressinstall" value="Scripts/expressInstall.swf" />
                  <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
                  <!--[if !IE]>-->
                  <object type="application/x-shockwave-flash" data="benscarrillustration.swf" width="1214" height="717">
                    <!--<![endif]-->
                    <param name="quality" value="high" />
                    <param name="wmode" value="opaque" />
                    <param name="swfversion" value="6.0.65.0" />
                    <param name="expressinstall" value="Scripts/expressInstall.swf" />
                    <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
                    <div>
                      <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
                      <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
                    </div>
                    <!--[if !IE]>-->
                  </object>
                  <!--<![endif]-->
              </object>
            </div>
        <script type="text/javascript">
    swfobject.registerObject("FlashID");
            </script>
        </body>
    </html>

  • Corruption of index.html file

    I am truly at my wit's end. My web site is hosted on Yahoo. I contracted with them before I was given a Mac for my birthday. I redeveloped my site using iWeb and have frequently had problems when uploading files. I made a small change to my home page the other day and after uploading, the page is corrupted--graphics are skewed, text is shrunken and misplaced, etc. I performed all the usual steps, clearing caches, etc., all to no avail. Uploaded several times--still no good.
    Here's the rub--the files look good on the Mac; the published to a folder site works fine. The first time I called Apple about this they told me that if it's fine on our machine the problem is in the FTP you are using. I went to Yahoo file manager and uploaded the index.html file directly from my hard drive. The same problem. I called Yahoo, and after toying with it the tech told me that the html code is corrupted. He changed the web site designation in the html, and we got a different result, still corrupted. He says it's an iWeb problem.
    I called Apple again--got the same answer, "It's a problem with your web host."
    Here's the html code from index.html:
    <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title></title><meta http-equiv="refresh" content="0;url= http://raffellis.com/Home.html" /></head><body></body></html>
    Any help will be appreciated.

    Well, I solved my problem. Here's what I did. I don't have a clue as to whether this is useful to anyone but here goes:
    It seems only the home page has a problem. After many tries, I decided to dupe the home page and add it as the second page. I uploaded and lo and behold the second page was fine while the home was still corrupted. So, I went back to iWeb and deleted the original home page, making the 2nd page home. Uploaded again and guess what? The home page was corrupted again! What I did next was to go back to iWeb and make my home page a simple "Enter Site by selecting from the menu above." I uploaded and now my site is fine. Not the solution I wanted but I was desperate.
    The bottom line is? Beats the **** outa me,

  • HTML with iWeb

    Hi,
    I just got the iWeb program, im trying to access the html code to add extra's to my site.
    Currently I am just closing down iWeb and editing through a text program, but im wondering if there is a way to view the html within iWeb so i dont have to close everything down, etc.
    Also when i do this, all changes to the html have to be after im done editing with iWeb because the changes wont load when i load my site in iWeb.
    Any help would be good, thanks.

    You can't view html with iWeb, and any custom html
    you add via a text editor or other means will be
    erased whenever you republish the page using iWeb.
    It really isn't an appropriate tool for what you
    want to do, at least not in this version.
    That is a real BUMMER! After spending many hours over this weekend setting my site up, I need to add a bit of html at the end of my welcome page:
    It is a dynamic weather report.
    I figured out how to add it with a text editor, but every time the file is edited in iWeb and then published, the added code is erased! I hope there will be a way to deal with this WITHIN iWeb soon.

  • HTML and iWeb

    Hi,
    I'm kind of new to iWeb so I really hope this doesn't sound like a stupid question.
    I have a .mac account and I publish directly through iWeb. I find it very cool but sometimes I need to alter the page's HTML (to add a button or a counter, for example). However, I haven't found a way to do it..
    Any advice?
    thanks
    Eli
    PowerBook G4   Mac OS X (10.4.7)  

    Here are some general directions to adding external HTML using an ad banner for example...
    Of course it's possible. Lots of us do that on our pages already. Two things to keep in mind...1. No way to do this via iWeb directly, so it involves editing the published html files, and 2. Because iWeb republishes the html files whenever you update the your webpage, you will lose your changes and have to redo them to add your banners back.
    The general directions are as follows...
    1. Decide where you want your banner and know exactly what dimensions you need.
    2. Insert a text box onto your page and adjust its size to exactly your dimensions.
    3. Type in some uniquely identifiable text like, "BANNERCODEHERE" without changing the font or anything else...just type it in.
    4. Publish your page with iWeb.
    5. Find the html file associated with your published page (either on your iDisk or in a folder depending on how you published) and open it in any text editor (like Microsoft Word, or Textedit, or anything).
    6. Scroll through the html file and locate your placeholder text, e.g. "BANNERCODEHERE".
    7. Replace the placeholder text with your html code and save your page. (just save, not save as...)
    That's it! You should see your ad banner show up exactly where you positioned the text box inside iWeb.

  • URGENT: Web Server 6.1 SP4 won't respond to GET /index.html

    Hello folks,
    I was adding "additional document directories" when the management web interface suddenly decided that it had had enough of my additions and decided to throw out all but the last three.
    Worse still, GET /index.html doesn't work; instead the server responds with "Method not allowed", which my browser reports as HTTP405 but the server error log reports as HTTP2205. So no web page request is currently being honoured.
    For what it's worth, a look at the mime.types file shows that type=text/html is linked with exts=htm/html.
    Any ideas?
    Cheers!

    I had just clicked on OK to input another "additional document directories" when the administration server threw an error in a popup window; I honestly can't remember what text was in that popup, probably because I was gutted on realising that of the forty plus entries I had just made, only the last three were showing up in the "Current additional directories" list.
    One possibility that would exonerate the administration server is that I gave some keystroke combination that caused the obj.conf fault as by that time I was typing in quite rapidly...
    Thanks for positng.
    Cheers

  • Index.html not being indexed? do i need it in sitemap

    hi i have nearly finished my website http://www.uniquepcrepair.co.uk and for some reason the index page is not being indexed in search engines?
    when i type site:www.uniquepcrepair.co.uk it returns 3 pages but not the home page.
    i have submitted a site map with 5 pages in it and wondering if its because i have included the index.html in the site map?? do i need index.html in the sitemap as that is already the homepage? thanks.
    here is a copy of the sitemap
    http://www.uniquepcrepair.co.uk/sitemap.xml

    Osgood, Google is the 800-pound gorilla. According to Hitwise, around 91% of search is Google (combining google.co.uk and google.com).
    I realize that some of the websites I design won't work well in Internet Exploder version 6. But it's 6% of the total number of browsers out there and I would rather write code for mobile than worry about microsoft's least-compatible web browser. By the same token, why would one fret about chasing less than 9% of search engines?
    Furthermore, because Google's algorithms seem to be doing so well, I'll bet the Bings, Yahoos and Asks of the world are ignoring the meta tags as well.
    Content is king. Make sure all of your image files have alt tags will full descriptions. Refresh the website regularly with new content. I tell my clients to republish anything written about them in the press on their website. Additionally, several of my clients regularly publish articles and then republish them on their website.
    A website that expands, as to content, will rise in the search engine rankings. And this may take a while. I have one client who is a landscaper who whined constantly about his competitor being above him in the rankings. By and large you cannot change the position of your rankings in a day. But you can over time. My client followed my advice. He added to his website and had me do a rebuild that took out frames and tagged every photo. Since he's a landscaper, there is not a lot of text on the website—but there is a lot of textual information in alt tags and descriptions of photos. All of that is picked up on search engines and, as a result, he gets over 1600 unique visitors in winter months (he doesn't do snow plowing) rising to over 4,000 in July. He generally books to capacity by June and his business has doubled year over year—every year—since I took over his website in 2010. His web traffic in summer has doubled as well, year over year.
    He no longer complains about his competitor.
    Sign on to Google and use Google's Webmaster Tools to let Google know about the website. Upload an XML sitemap. Seriously consider any suggestions Google may make for the website. And allow a little time to work its magic. 

Maybe you are looking for