0
Welcome Guest! Login
0 items Join Now

SOLVED HTML & CSS question - h1 tag for titles

  • Re: SOLVED HTML & CSS question - h1 tag for titles

    Posted 17 years 3 months ago
    • GREAT job guys! THX a lot . SEO score running up with 20 points!!

      Just needed to switch to 50% at line 186 with VIII otherwise font was still to large.

      Great job THX Again!
  • Re: SOLVED HTML & CSS question - h1 tag for titles

    Posted 17 years 3 months ago
    • Hi me again, with some issues.
      the heading tags work fine though i get problems with docman. tried mjaztools but had no effect.
      www.pcleek.com

      I just recovered everything to default setting without heading tags, while solution is found. Site is published in a popular computer magazine and i cant afford letting it messed up for a couple of hours.
    • Last Edit: 17 years 3 months ago by katrien brebels.
    • Franck's Avatar
    • Franck
    • Elite Rocketeer
    • Posts: 1049
    • Thanks: 0

    Re: SOLVED HTML & CSS question - h1 tag for titles

    Posted 17 years 3 months ago
    • In your template_css.css try to remove this code around line 532:
      .contentheading {
       
      line-height:10%;
       
      }
  • Re: SOLVED HTML & CSS question - h1 tag for titles

    Posted 17 years 3 months ago
    • It helped a bit, but the difference between font size in docman and content is huge. If i bring the titles to normal size, the font in docman is verry small, hardly readable.
  • Re: SOLVED HTML & CSS question - h1 tag for titles

    Posted 17 years 3 months ago
    • changed at around line 50 (template css.css) the H1 size from 200 % to 120 % and it will do the job. Only i have large spaces between title - text - read more button.
      body.f-larger {
      font-size: 15px;
      }

      h1 {
      font-size: 120%;
      }

      docman holding fine so far.
      THX for helping, if u know how to reduce spaces, let me know.
    • GollumX's Avatar
    • GollumX
    • Elite Rocketeer
    • Posts: 2817
    • Thanks: 0

    Re: SOLVED HTML & CSS question - h1 tag for titles

    Posted 17 years 3 months ago
    • Great you got this working guys.
      I suggest you change the CSS in the title of this thread to HTML. :)
    • Last Edit: 17 years 3 months ago by GollumX.
    • Say no to Internet Explorer 6.
      twitter.com/mark_up
    • Franck's Avatar
    • Franck
    • Elite Rocketeer
    • Posts: 1049
    • Thanks: 0

    Re: SOLVED HTML & CSS question - h1 tag for titles

    Posted 17 years 3 months ago
    • Added html in the title of this thread but not removed css since it's necessary to change css too.
      I tried a mambot to do this but I use SEF Patch extended in my sites and the compatibility is not good.

      This change for titles is really a great improvement for SEO!
  • Re: SOLVED HTML & CSS question - h1 tag for titles

    Posted 17 years 2 months ago
    • Just two small comments.

      If you are using Category or Section tables the header appears in a "componentheading" div. So here also a h1 tag has to be added.

      To be able to differentiate between "normal" h1 tags used in contents and those used as componentheading and contentheading add-ons I gave them an own class (eg contenttitel). This allows different styling.

      Roland
    • Franck's Avatar
    • Franck
    • Elite Rocketeer
    • Posts: 1049
    • Thanks: 0

    Re: SOLVED HTML & CSS question - h1 tag for titles

    Posted 17 years 2 months ago
    • Hi Roland,

      It would be interesting if you provide in this thread the changes you made in the code ;)
  • Re: SOLVED HTML & CSS question - h1 tag for titles

    Posted 17 years 2 months ago
    • Franck wrote:
      It would be interesting if you provide in this thread the changes you made in the code ;)

      For the componentheading/h1 replacement change in /components/com_content/content.html.php line 44
      ?>
      <div class="componentheading<?php echo $params->get( 'pageclass_sfx' ); ?>">
      <h1 class="contenttitel"><?php echo htmlspecialchars( $title->name, ENT_QUOTES ); ?></h1>
      </div>
      <?php

      Please note that 3rd party components might generate own componentheadings. So additional hacks are required.


      This has been posted already: contentheading/h1 replacement line 614 (please note that if you are using linked titles you have to add another h1 tag a couple of llines above...):
      <td class="contentheading<?php echo $params->get( 'pageclass_sfx' ); ?>" width="100%">
      <h1 class="contenttitel"><?php echo $row->title;?></h1>
      <?php HTML_content::EditIcon( $row, $params, $access ); ?>
      </td>

      I am using an own h1 class <h1 class="contenttitel"> to make specific formats.

      Roland

Time to create page: 0.051 seconds