Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialjames white
78,399 PointsA tip for working around the limitations of Weebly (..and bypassing it's CMS)
Probably most of you will choose WordPress over Weebly for a client who needs the support of a CMS (Content Management System).
However, every one and a while I get a client who loves Weebly's simple CMS.
They usually come to me because they have one special page they want made up that is a little more complex than Weebly is designed to support.
For those who find themselves in similar circumstances, this forum post is about how to both bypass the Weebly CMS and have a page that bypasses the current theme the Weebly site might be using.
To start off you'll need a an html file (possibly with accompanying .css file(s) and/or javascript file(s)
that you have designed in the IDE editor or you choice.
(I know everyone that has taken Treehouse's Web Dev track can do this already).
Ordinarily once your web page is done, to get it up to the server
you would just start up you favorite ftp uploader software (I like Filezilla),
type in you ftp login info, connect and sign in, then start uploading your files.
Unfortunately Weebly doesn't allow FTP access directly.
The CSS situation is a little more awkward that most web designers might like as well.
All Weebly themes have (by default) only one css file as part of their theme -- "main_style .css".
That is the only css file the theme pays attention to.
If you edit this file you always have to be very careful that none of your changes
(added css code) causes some unwelcome "side effects" with how the rest of the theme'd pages look.
So no officially sanctioned FTP for Weebly (Bummer!)
However, there is a way to upload files via the Weebly content management system.
Go to the "Theme" tab (once you are logged into the Weebly site's Dashboard")
and on the left side panel, down at the bottom, you'll see a button that says:
"Edit HTML / CSS"
If you press this then the left side panel changes to will show a list of all files associated with the site
including a bunch of image files files under "Assets" (scroll the left side panel if need be to get down to this).
If you click on "Assets" in this left panel you just end up toggling the visibility of the asset files.
However, clicking on "+" plus sign (to the right of "Assets") will
drop down a hidden sub-menu that has the following choices:
ā¢ Upload File
ā¢ New File
ā¢ New Folder
Here's a screenshot:
http://weeblytricks.weebly.com/uploads/9/4/9/4/9494510/9790630_orig.png?793
This is the "secret" way to "bypass" Weebly's lack of inbuilt FTP upload capability.
The images uploaded this way have a funny url.
This stackoverflow page talks about Weebly site image pathing:
http://stackoverflow.com/questions/11274881/how-to-find-the-path-of-the-uploaded-files-on-weebly
The funny "/upload/" path is for pictures, but what about linking to uploaded html web page files?
It uses the pathing like:
http://yoursubdomain.weebly.com/files/theme/some_file_name.html
Or you can create a special folder under Assets (which I recommend).
So if you create a folder named "x" then the pathing for html files will be something like:
http://yoursubdomain.weebly.com/files/theme/x/some_file_name.html
Just make sure you click on the "x" folder's "+" plus sign to select "upload file",
instead of the "upload file" from directly underneath the Assets submenu.
You can then use this link to the html file web page from within the Weebly CMS
(either a Weebly CMS menu or a text hyperlink on a Weebly CMS page).
Hopefully this helps someone who is forced to deal with working on a Weebly site .
Maybe someday Treehouse will have some Weebly tutorials at some point, but until then..
1 Answer
james white
78,399 PointsJust a followup - I finally convinced the client who insisted on using Weebly to switch to using AlterVista for free hosting:
http://en.altervista.org/create-free-site.php
It's based out of Italy and was started in 200 as a student project.
I was acquired in 2006 by Banzai (a holding company of the Italian Internet industry):
The idea behind AlterVista:
"..to offer space on the web where you can publish your own content: at no cost and with the potential to earn, thanks to advertising, with your web traffic. Unlike other web platforms for creating free websites and blogs AlterVista not require the display of banner ads on the pages of the sites that hosts."
--that's from the English translation of AlterVista's Italian Wikipedia page:
Note: If you have to do some research on different ways of doing things on AlterVista,
you probably are going to be encountering a lot of Italian --remember
that Google Translate is your friend
Unlike Weebly (and others) who use a mandatory robots.txt at the free tier
(that prohibits Google and other search crawlers from indexing hosted sites),
AlterVista sites can have at least some SEO/SEM visibility (if you are thinking "portfolio").
It also support all the 3 common CMS software like Joomla, WordPress and Drupal, and
thus you can use php scripting on your site.
This ability to do REST-ful php/MySQL queries is what sold the client,
but what's most important to me is that it allows direct ftp uploads (via Filezilla)
when so many free hosting sites do not.
I think Treehouse should allow hosting of student projects in a way
that's "public facing" (not internally oriented like the student Workspaces),
but until they do I think this is the second best option.