hi

Permalink
where do i access and add an html code into my site's index.html file

 
anchoredbutterfly replied on at Permalink Reply
anchoredbutterfly
You can easily add an HTML block through the site editor itself.
http://www.concrete5.org/documentation/editors-guide/in-page-editin...
cgfnortje replied on at Permalink Reply
cgfnortje
I'm afraid C5 doesn't have an index.html file. C5 is written in php and has a index.php file. That would be your landing page or home page. If you want to add html to that page, you'll have to add an html block. If you want to add some html to a content block, you'll see an html button on the toolbar of the rich text editor. However, if you mean that you'd like to edit the theme itself (perhaps one of the page types) I suggest you look at the tutorial on how to create a C5 theme. I'm not a bona fide web professional, but it's ridiculously easy to make a custom theme for C5.
domsuccess replied on at Permalink Reply
i just created a mobile version of my site and i need to add an html to the head tag.any help how to do that?
cgfnortje replied on at Permalink Reply
cgfnortje
Have you tried "Header Extra Content"?

If you're on the page, hover over "Edit" and click on properties on the pop-up. Click on the "Custom Attributes" tab, and select "Header Extra Content". Any HTML added here will go into the head tags. You can check whether the HTML is written correctly by C5 by looking at the source from your browser.

If you want to track every page with something like Google Analytics or have some code on each and every page, the best would probably be to hard-code it. For that, you'll have to add your HTML or script on the theme itself. You'll find your theme either in [root folder]/themes/ or [root folder]/packages/ on the File Manager on you hosting account. The header.php file is in the elements folder. I'm supposing you already know this since you mention that you created a mobile design but I mention it anyway for the sake of others that may read this thread later.

I don't know how well you know C5 so this might be info you already know. However, if you used one of the free themes that come with the C5 download as a framework for your design, you'll first have to copy the theme you're using from [root folder]/concrete/themes/ and paste it into [root folder]/themes/ or else all your changes would be removed each time you upgrade. Then you'll have to rename the folder of the theme and change the first line in the description.txt file in the folder. I mention this because I always use the default C5 theme as a framework whenever I design a new theme.