Article heading H2 to H1

GK User
Thu Oct 13, 2016 8:25 am
Hi,

Is there a way to change the H2 headline on top of the article to H1 Headline?
Image
User avatar
Fresh Boarder

teitbite
Fri Oct 14, 2016 12:10 pm
Hi

Please tell me what type of content are You using, K2 articles or joomla articles and tell me the url to page where I'll be able to see an example of that.
User avatar
Moderator

GK User
Sun Oct 16, 2016 8:55 pm
teitbite wrote:Hi

Please tell me what type of content are You using, K2 articles or joomla articles and tell me the url to page where I'll be able to see an example of that.


We are using both. K2 for Blog posts and Articles for "normal" pages. This problem only occurs with normal Articles. When we publish and make a Menu Item for the article, article shows the menu Item name as H2 title and article's own title is shown as H1 a bit smaller below. We've taken out the Articles own title since we would like to show the title as a big title.
I'll send you a private message with the address since it is still not published.
User avatar
Fresh Boarder

teitbite
Mon Oct 17, 2016 10:12 am
Hi

Edit file /html/com_content/article/default.php There You will find code:

Code: Select all
                    <?php if ($params->get('show_title')) : ?>
                    <h1 itemprop="name">
                         <?php echo $this->escape($this->item->title); ?>
                    </h1>
                    <?php endif; ?>


just replace h1 with h2 there.
User avatar
Moderator

GK User
Mon Oct 17, 2016 1:10 pm
Okay that changed the article title to from H1 to H2 but the problem was to change the heading on top from H2 to H1

Any idea where I can change that?
User avatar
Fresh Boarder

teitbite
Thu Oct 20, 2016 2:07 pm
Hi

Och, sorry my bad. Edit file /layout/default.php and change it in line 152:

Code: Select all
                 echo '<h2 id="gkPageTitle" class="gkPage"><span>' . $header_text . '</span></h2>';

User avatar
Moderator

GK User
Sat Nov 05, 2016 4:21 pm
Thanks! That did the trick! :)
User avatar
Fresh Boarder

teitbite
Fri Nov 11, 2016 10:23 am
Hi
Glad I could help.
---
If You were satisfied with our support please let other users know on Twitter: http://twitter.com/gavickpro or Facebook: http://www.facebook.com/gavickpro
User avatar
Moderator


cron