Tagged: H1
-
AuthorPosts
-
Ashwin Iyer Friend
Ashwin Iyer
- Join date:
- September 2014
- Posts:
- 78
- Downloads:
- 23
- Uploads:
- 0
- Thanks:
- 5
- Thanked:
- 1 times in 1 posts
July 5, 2016 at 9:29 am #946901Hello
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 ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
July 5, 2016 at 11:02 am #946923Hi
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 FriendAshwin Iyer
- Join date:
- September 2014
- Posts:
- 78
- Downloads:
- 23
- Uploads:
- 0
- Thanks:
- 5
- Thanked:
- 1 times in 1 posts
July 5, 2016 at 11:05 am #946927Hello 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 ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
July 5, 2016 at 3:19 pm #947015Hi
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 FriendAshwin Iyer
- Join date:
- September 2014
- Posts:
- 78
- Downloads:
- 23
- Uploads:
- 0
- Thanks:
- 5
- Thanked:
- 1 times in 1 posts
July 26, 2016 at 9:30 pm #953572Hello,
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 ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
July 27, 2016 at 2:15 am #954245Hi
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 FriendAshwin Iyer
- Join date:
- September 2014
- Posts:
- 78
- Downloads:
- 23
- Uploads:
- 0
- Thanks:
- 5
- Thanked:
- 1 times in 1 posts
September 23, 2016 at 4:10 am #970390Is there a way to enable Custom H1 on the pages?
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
September 23, 2016 at 4:12 am #970392Hi
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 FriendAshwin Iyer
- Join date:
- September 2014
- Posts:
- 78
- Downloads:
- 23
- Uploads:
- 0
- Thanks:
- 5
- Thanked:
- 1 times in 1 posts
September 23, 2016 at 4:17 am #970393no 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 ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
September 23, 2016 at 5:01 am #970399Hi
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 .
-
AuthorPosts
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