Guest oldboy Posted November 13, 2006 Share Posted November 13, 2006 Hi I use the Hompage to show up a bigger image instead of text. Cant figure out which file should be alerted to remove the gap between the top border and the image. (have a look at the screen shot) Killer skin. Quote Link to comment Share on other sites More sharing options...
roban Posted November 13, 2006 Share Posted November 13, 2006 When you edit your home page in the editor it is stored in a file in your language directory. This file is home.inc and can be found at language/en/home.inc. The layout.css file controls site wide layout and this can be found at skins/Killer/styleSheets/layout.css Quote Link to comment Share on other sites More sharing options...
Guest oldboy Posted November 13, 2006 Share Posted November 13, 2006 When you edit your home page in the editor it is stored in a file in your language directory. This file is home.inc and can be found at language/en/home.inc. The layout.css file controls site wide layout and this can be found at skins/Killer/styleSheets/layout.css Thanks for quick reply... I found both files. But which part of the layout.css controls the layout of the home page?? should i look for "padding-top" to remove the gap... ?? Quote Link to comment Share on other sites More sharing options...
roban Posted November 13, 2006 Share Posted November 13, 2006 Take a look at your image properties (right click on the image and choose properties) in fckeditor in admin control panel/Home Page. In the alignment choose 'top'. Quote Link to comment Share on other sites More sharing options...
Guest oldboy Posted November 13, 2006 Share Posted November 13, 2006 Take a look at your image properties (right click on the image and choose properties) in fckeditor in admin control panel/Home Page. In the alignment choose 'top'. Hi, well i tryed the top aligment. the html code looks like this: <center><a href="http://www.houseofdap.com/index.php?act=viewCat&catId=2" border="0"><input type="image" alt="homepage text" src="http://www.houseofdap.com/images/mpage/mpage_text.jpg" align="top" longdesc="undefined"/></a></center> What i think is that the gap is where the "Title:" for the Home Page should be, i have removed the text from the Title box.. but i guess this have to be removed somewhere else. Like a template file or???? Quote Link to comment Share on other sites More sharing options...
roban Posted November 13, 2006 Share Posted November 13, 2006 You'll find it in your home.inc file Quote Link to comment Share on other sites More sharing options...
Guest oldboy Posted November 13, 2006 Share Posted November 13, 2006 You'll find it in your home.inc file My home.inc looks like this: <?php $home['copy'] = '<center><a href=\"http://www.houseofdap.com/index.php?act=viewCat&catId=2\" border=\"0\"><input type=\"image\" alt=\"homepage text\" src=\"http://www.houseofdap.com/images/mpage/mpage_text.jpg\"/></a></center>'; $home['enabled'] = '1'; $home['title'] = ''; ?> I tried to remove this ---> $home['title'] = ''; but the gap remains :-( Quote Link to comment Share on other sites More sharing options...
markscarts Posted November 14, 2006 Share Posted November 14, 2006 Hi, the problem is a line break <br /> that appears there coded into skins/Killer/styleTemplates/content/index.tpl: <!-- BEGIN: index --> <div class="boxContent"> <span class="txtContentTitle">{HOME_TITLE}</span> <br /> {HOME_CONTENT} </div> Here is a good way to get rid of the space you don't want up there! Open skins/Killer/styleTemplates/content/index.tpl Find this code: <span class="txtContentTitle">{HOME_TITLE}</span> <br /> Replace it with this code: <!-- <span class="txtContentTitle">{HOME_TITLE}</span> <br /> --> NOTE: You really should restore the home.inc.php file to its original state. It has nothing to do with your problem, and it may come in handy should you decide to use text up there again some day. You can re-activate the code in content/index.tpl by removing the html comment tags I've added (compare the code boxes above). Quote Link to comment Share on other sites More sharing options...
Guest oldboy Posted November 15, 2006 Share Posted November 15, 2006 (edited) Hi, the problem is a line break <br /> that appears there coded into skins/Killer/styleTemplates/content/index.tpl: <!-- BEGIN: index --> <div class="boxContent"> <span class="txtContentTitle">{HOME_TITLE}</span> <br /> {HOME_CONTENT} </div> Here is a good way to get rid of the space you don't want up there! Open skins/Killer/styleTemplates/content/index.tpl Find this code: <span class="txtContentTitle">{HOME_TITLE}</span> <br /> Replace it with this code: <!-- <span class="txtContentTitle">{HOME_TITLE}</span> <br /> --> NOTE: You really should restore the home.inc.php file to its original state. It has nothing to do with your problem, and it may come in handy should you decide to use text up there again some day. You can re-activate the code in content/index.tpl by removing the html comment tags I've added (compare the code boxes above). Thanks markscarts, that was it... I restored home.inc.php and yes im useing comment taqs as you suggested.. Have few more questions, but have to leave so i post it next time. Just wanted to thank you and: >>>URL removed, please read the rules.<<< Edited November 17, 2006 by oldboy Quote Link to comment Share on other sites More sharing options...
markscarts Posted November 17, 2006 Share Posted November 17, 2006 Yes I am the owner of the site you linked to; but you have broken forum rules by linking to a cubecart mod store in these forum. To discuss such things you must go to cubecart.org, the link is against the rules in here and will be removed. AGTH, you are welcome ;) Quote Link to comment Share on other sites More sharing options...
Guest Posted November 17, 2006 Share Posted November 17, 2006 @oldboy, please take the time and read the rules ;) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.