Konstra header customization - Forum | JoomShaper
Awaiting an answer Helix Framework

Konstra header customization

Asked by pulsar agency 4 years ago Last activity 4 years ago

Hi
On https://www.pulsar-agency.com/actus-blog we have a blog that is displayed with Helix Ultimate Konstra template.

on the blog main page the header displays the menu item title : NEWSROOM as a H1

but on each blog post the header still displays the same H1 title : NEWSROOM !

the problem is that we have TWO H1 on the same page (for instance on https://www.pulsar-agency.com/actus-blog/entry/pourquoi-facebook-devient-meta)

  • the generic blog H1 title : NEWSROOM
  • the specific post H1 title : "Pourquoi Facebook devient Meta"

How can we

1- either remove the generic H1 title / page title only on the blog item pages (but keeping it on the generic blog homepage)

2- or have the NEWSROOM title be only a <p> on the blog item pages

thanks

6 replies

Rashida Rahman Staff

Hi there!

Thanks for contacting us.

The blog pages are from easyblog though, I have shared a custom CSS for you, please put the code snippet within your custom CSS:

body.com-easyblog.view-entry .sp-page-title-heading {
    display: none;
}

Hope this will serve your purpose!

Note: Path towards custom CSS(Joomla 3): Extensions>Templates>Styles> Click on your current default template name then choose Template Options. Then find custom CSS within the custom code.

Best Regards

pulsar agency Asked this

Thanks but it only hides the page title and for the Google Bots it doesn't change anything :(

if you use chrome web dev and select DOCUMENT OUTLINE you will still see the first H1.

We are looking for a way to REALLY disable the PAGE TITLE on the blog items and we don't know which php file we have to touch

thanks

cyril

pulsar agency Asked this

Moreover stackideas support (the guys who deliver the easyblog component) claim they can't do anything since this H1 is generated through Helix Ultimate.

pulsar agency Asked this

I discovered that the templates\konstra\features\title.php file is responsible for this behaviour

so I added these lines in the file

            $uri = & JFactory::getURI();
            $absolute_url = $uri->toString();
            if (strstr ($absolute_url,"entry") )       
                $page_heading= 'p';

        but of course this hack won't support next updates !!                   
pulsar agency Asked this

thanks but here we use the KONSTRA template which is based on helix ultimate 1.x and we can't update it

Log in to reply.