Tagged: 

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • Ashwin Iyer Friend
    #946901

    Hello

    I am looking to add an H1 tag to the title of my page. Now I was expecting this to be done automatically but If it can be added through code do let me know how?

    The url is http://goo.gl/KjUINe

    Now You will see there are mention of 2 Hanging Baskets one as the article title and One on the top with the green background. I want the one in the green background to be the H1.

    Appreciate any help

    Ash

    Pankaj Sharma Moderator
    #946923

    Hi
    if you want to hide the article title you can do this from the menu options .
    Go to Menu (hanging-baskets) > Options > Show title > HIDE .
    save it and check .

    Ashwin Iyer Friend
    #946927

    Hello Pankaj

    I dont want to hide it. I want to convert it to H1. Besides I am not talking about the article title but the text in the green background above it.

    Pankaj Sharma Moderator
    #947015

    Hi
    Its JA Masshead title .
    Go to /templates/ja_sugite/html/mod_jamasshead/default.php
    find

    
        <h3 class="jamasshead-title"><?php echo $masshead['title']; ?></h3>

    change the H3 to H1

    Ashwin Iyer Friend
    #953572

    Hello,

    So Now since the jamasshead has been changed to H1 , How do I disable the article Title from being the H1 .

    Currently there are 2 H1’s on the page. How can I disable the article title from being the H1?

    Pankaj Sharma Moderator
    #954245

    Hi
    Go to /html/com_content/article/default.php file
    find

    <h1 class="article-title">
                <?php if ($params->get('link_titles') && !empty($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; ?>
            </h1>

    Change the h1 to your tag .

    Ashwin Iyer Friend
    #970390

    Is there a way to enable Custom H1 on the pages?

    Pankaj Sharma Moderator
    #970392

    Hi
    Since the title is changed to H3 it can not convert without change in php files , you can remove it changes if you want h1 tag again .

    Ashwin Iyer Friend
    #970393

    no if i revert back the php files to their original state can there be a way where the title and h1 of the same page can be different

    Pankaj Sharma Moderator
    #970399

    Hi
    The title tag will be same for all pages , you can control the show/hide it from menu options .
    Or you can try to create a new article layout file
    /html/com_content/article/
    and then select the new override file for the aritcles where u want a different tag .

    PS : some feature that belongs to articles may not work in override files .

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

This topic contains 9 replies, has 2 voices, and was last updated by  Pankaj Sharma 8 years, 2 months ago.

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