Re: text in the home page

More
11 years 11 months ago #17708 by etarancon
As I can put text on the homepage? I make an article and put it at home as a important (star) but dont´s see, I do not know if it covers the rotator or I have to create the text differently. See if you can help me. thanks

www.pelucashop.com :)

Please Log in to join the conversation.

More
11 years 11 months ago #17718 by ivan.milic
That is design of template. No articles on from page. If you open index.php of template:

Code:
<?php if (!$ishome) { ?> <div class="main_bg"> <div class="main_area"> <?php if($columnLayout=="mlr") { require(dirname(__FILE__).DS.'/inc/col_main.php'); require(dirname(__FILE__).DS.'/inc/col_left.php'); require(dirname(__FILE__).DS.'/inc/col_right.php'); } else if($columnLayout=="lrm") { require(dirname(__FILE__).DS.'/inc/col_left.php'); require(dirname(__FILE__).DS.'/inc/col_right.php'); require(dirname(__FILE__).DS.'/inc/col_main.php'); } else { require(dirname(__FILE__).DS.'/inc/col_left.php'); require(dirname(__FILE__).DS.'/inc/col_main.php'); require(dirname(__FILE__).DS.'/inc/col_right.php'); } ?> <div class="clr"></div> </div> </div> <?php } ?>

notice first line: <?php if (!$ishome) { ?>

so if you would want to show content area on home page you coud simply modify it like this:

<?php if (!$ishome || true) { ?>

Please Log in to join the conversation.

More
11 years 11 months ago - 11 years 11 months ago #17770 by etarancon
Replied by etarancon on topic Re: text in the home page
I make this, but in the home page appears "Top Category" see attach image:

I need show a text, what I make wrong? I wait your answer. thanks
Attachments:
Last edit: 11 years 11 months ago by etarancon.

Please Log in to join the conversation.

More
11 years 11 months ago #17779 by ivan.milic
It's ok, it works like that. You can use $ishome variable to add some style in index.php of template to hide it.



....
<?php if (!$ishome) { ?>
<?php
<style type="text/css" >
#c2 > .moduletable > h3{
display:none;
}
</style>
<?php } ?>
</head>
...

you can see right place to put it by </head>

Please Log in to join the conversation.

More
11 years 11 months ago #17802 by etarancon
Replied by etarancon on topic Re: text in the home page
I don´t understand... I put this but the home page show in blank, only I wan´t to see text article in the home page

Please Log in to join the conversation.

More
11 years 11 months ago #17812 by ivan.milic
It is shown blank because I had mistake in code. It should be:

....
<?php if (!$ishome) { ?>
<style type="text/css" >
#c2 > .moduletable > h3{
display:none;
}
</style>
<?php } ?>
</head>
...

Please Log in to join the conversation.

Time to create page: 0.311 seconds
Powered by Kunena Forum