- Posts: 77
 - Thank you received: 0
 
Re: text in the home page
- 
        etarancon
Inactive member - 
            
				
                            Topic Author
                                 - Member
 - 
            
         
        Less
        More
        
            
    
        
            
        
                13 years 6 months ago                #17708
        by etarancon
    
    
            
            
            
            
            
                                
    
                                                
    
        text in the home page was created 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 :)
www.pelucashop.com :)
Please Log in to join the conversation.
- 
        ivan.milic
Support Staff - 
            
				
                                 - Moderator
 - 
            
         
        Less
        More
        
            
    
        - Posts: 14116
 - Thank you received: 1639
 
            
        
                13 years 6 months ago                #17718
        by ivan.milic
    
    
            
            
            
            
            
                                
    
                                                
    
        Replied by ivan.milic on topic Re: text in the home page            
    
        That is design of template. No articles on from page. If you open index.php of template:
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) { ?>
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.
- 
        etarancon
Inactive member - 
            
				
                            Topic Author
                                 - Member
 - 
            
         
        Less
        More
        
            
    
        - Posts: 77
 - Thank you received: 0
 
            
        
                13 years 6 months ago         -  13 years 6 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
I need show a text, what I make wrong? I wait your answer. thanks
        Last edit: 13 years 6 months ago  by etarancon.            
            Please Log in to join the conversation.
- 
        ivan.milic
Support Staff - 
            
				
                                 - Moderator
 - 
            
         
        Less
        More
        
            
    
        - Posts: 14116
 - Thank you received: 1639
 
            
        
                13 years 6 months ago                #17779
        by ivan.milic
    
    
            
            
            
            
            
                                
    
                                                
    
        Replied by ivan.milic on topic Re: text in the home page            
    
        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>
....
<?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.
- 
        etarancon
Inactive member - 
            
				
                            Topic Author
                                 - Member
 - 
            
         
        Less
        More
        
            
    
        - Posts: 77
 - Thank you received: 0
 
            
        
                13 years 6 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.
- 
        ivan.milic
Support Staff - 
            
				
                                 - Moderator
 - 
            
         
        Less
        More
        
            
    
        - Posts: 14116
 - Thank you received: 1639
 
            
        
                13 years 6 months ago                #17812
        by ivan.milic
    
    
            
            
            
            
            
                                
    
                                                
    
        Replied by ivan.milic on topic Re: text in the home page            
    
        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>
...
....
<?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.204 seconds