Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • jeroen07 Friend
    #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…


    1. vb
    aman204 Friend
    #361314

    You 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;}

    jeroen07 Friend
    #361340

    Thanks, that did it !

Viewing 3 posts - 1 through 3 (of 3 total)

This topic contains 3 replies, has 2 voices, and was last updated by  jeroen07 14 years ago.

We moved to new unified forum. Please post all new support queries in our New Forum