edit article title

Discussion in 'Joomla' started by cahyoaja, Jul 10, 2010.

  1. #1
    by default, afterburner template has h2 tag on article title. how to make it h1? which part of template default.php should i edit and how?
     
    cahyoaja, Jul 10, 2010 IP
  2. Justin Channell

    Justin Channell Peon

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Well, if only want to make it look the same as the h1 title - go into your templates folder -> rt_afterburner_j15 -> html -> com_content -> article -> open default.php

    You'll see this code:

    <?php if ($this->params->get('show_title')) : ?>
    <h2 class="contentheading<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
    	<?php if ($this->params->get('link_titles') && $this->article->readmore_link != '') : ?>
    	<a href="<?php echo $this->article->readmore_link; ?>" class="contentpagetitle<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
    		<?php echo $this->escape($this->article->title); ?></a>
    	<?php else :
    		echo $this->escape($this->article->title);
    	endif; ?>
    </h2>
    <?php endif; ?>
    Code (markup):
    Change those h2's to h1's and you're done :) Look in your template css if you want to change the specific heading sizes.
     
    Justin Channell, Jul 10, 2010 IP
  3. cahyoaja

    cahyoaja Peon

    Messages:
    70
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thanks!! it works!!!
     
    cahyoaja, Jul 10, 2010 IP
  4. meyrheena

    meyrheena Member

    Messages:
    134
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #4
     
    meyrheena, Jul 11, 2010 IP