Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • pavit Moderator
    #889929

    Hi there

    You can easily change it from layout files

    1) open this file /templates/ja_teline_v/html/layouts/joomla/content/item/default.php and change

    <?php echo JLayoutHelper::render('joomla.content.item_title', array('item' => $item, 'params' => $params, 'title-tag'=>'h1')); ?>

    TO:

    <?php echo JLayoutHelper::render('joomla.content.item_title', array('item' => $item, 'params' => $params, 'title-tag'=>'h2')); ?>

    2) could you explain with more details what you want to change exactly ?

    fbernardello Friend
    #889955

    Dear @pavit,
    Thanks for your reply, but I don’t want to replace the H1 wirh H2, but to change theyr style:

    • I want the H2 with the same font size of H3
    • I want to reduce to reduce to 26px bold the H1

    Thanks in advance,
    Federico

    pavit Moderator
    #889957

    Hi there

    You can find fonts settings into template.css file starting from line 644

    you can copy each setting into custom.css file and change its value

    for example

      .fs-medium h1,
      .fs-smaller h1,
      .fs-small h1,
      .fs-big h1,
      .fs-bigger h1,
      .fs-medium .h1,
      .fs-smaller .h1,
      .fs-small .h1,
      .fs-big .h1,
      .fs-bigger .h1 {
        font-size: 257%;
      }
    fbernardello Friend
    #889961

    Dear @pavit,
    I did it, but it’s not working…

    F.

    pavit Moderator
    #889973

    Dear @pavit,
    I did it, but it’s not working…

    F.

    Dear @fbernardello
    Since you are overriding a template.css with a custom.css file you should assign to the code into custom.css file a priority like !important;

    so the change become

    .fs-medium h1,
      .fs-smaller h1,
      .fs-small h1,
      .fs-big h1,
      .fs-bigger h1,
      .fs-medium .h1,
      .fs-smaller .h1,
      .fs-small .h1,
      .fs-big .h1,
      .fs-bigger .h1 {
        font-size: 57%!important;
      }

    If you want to assign a 57% value


    1. Screenshot_22
    fbernardello Friend
    #889976

    Dear @pavit,
    I see, it’s working! Thank you very much!

    Regards,
    Federico

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

This topic contains 6 replies, has 2 voices, and was last updated by  fbernardello 8 years, 8 months ago.

The topic ‘Change title CSS formatting’ is closed to new replies.