-
AuthorPosts
-
November 1, 2010 at 4:15 pm #155950
On my home page, i don’t want to display the author, date, and hits of the articles. I adjusted the paramaters so that wasn’t a problem.
Then i made the grey balk smaller in the css file. But on the home page there’s no line anymore below the title and that’s not beatifull. How can i get that line back ?
[PHP]h1.contentheading, h2.contentheading, .contentheading {
background: #f0f0f3;
padding: 10px 20px 5px;
margin: 0 -20px;
border-top: 1px solid #dedede;
font-weight: bold;
}[/PHP]I tried adding a border-bottom there but then you get 2 lines when you open the article…
aman204 Friendaman204
- Join date:
- January 2010
- Posts:
- 1945
- Downloads:
- 0
- Uploads:
- 43
- Thanks:
- 11
- Thanked:
- 418 times in 356 posts
November 1, 2010 at 6:43 pm #361314You can try out this::
1) Go to /templates/ja_portfolio/html/com_content/frontpage/default_item.php file and change this::
<?php if ($this->item->params->get(‘show_title’)) : ?>
<h2 class=”contentheading<?php echo $this->escape($this->item->params->get( ‘pageclass_sfx’ )); ?>”>
<?php if ($this->item->params->get(‘link_titles’) && $this->item->readmore_link != ”) : ?>
<a href=”<?php echo $this->item->readmore_link; ?>”>
<?php echo $this->escape($this->item->title); ?>
</a>
<?php else : ?>
<?php echo $this->escape($this->item->title); ?>
<?php endif; ?>
</h2>
<?php endif; ?>to
<?php if ($this->item->params->get(‘show_title’)) : ?>
<div class=”content-head”>
<h2 class=”contentheading<?php echo $this->escape($this->item->params->get( ‘pageclass_sfx’ )); ?>”>
<?php if ($this->item->params->get(‘link_titles’) && $this->item->readmore_link != ”) : ?>
<a href=”<?php echo $this->item->readmore_link; ?>”>
<?php echo $this->escape($this->item->title); ?>
</a>
<?php else : ?>
<?php echo $this->escape($this->item->title); ?>
<?php endif; ?>
</h2>
</div>
<?php endif; ?>Mainly, addition of <div class=”content-head”>..</div> tags
2) Add this at end of template.css file::
.content-head{margin:0 -20px;padding:0px 20px 0;border-bottom:1px solid #dedede;}
1 user says Thank You to aman204 for this useful post
November 1, 2010 at 9:00 pm #361340Thanks, that did it !
AuthorPostsViewing 3 posts - 1 through 3 (of 3 total)This topic contains 3 replies, has 2 voices, and was last updated by jeroen07 14 years, 1 month ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Line below title
Viewing 3 posts - 1 through 3 (of 3 total)