Jump to content

[SOLVED] Prestashop 8.2 - page titles


Reeder

Recommended Posts

Hi,

I'm looking for a file in the Prestashop 8.2 template where I can access the <H1> tag for all the headings of this "Classic" template.

I found that it is generated from a variable, e.g. in CMS it is from the variable {$cms.meta_title}:

{block name='page_title'}
  {$cms.meta_title}
{/block}

However, this variable only contains the title name, not the <H1> tag, but this entire HTML code is written to the source code:

<header class="page-header">
          <h1>Your Title</h1>
</header>

 

Where do you get the rest of the HTML code, including the <h1> tag? Is it from some javascript? Or from some other *.TPL?

 

Thank you for your help.

 

 

 

 

 

Edited by Reeder (see edit history)
Link to comment
Share on other sites

il y a 58 minutes, Reeder a dit :

I'm looking for a file in the Prestashop 8.2 template where I can access the <H1> tag for all the headings of this "Classic" template.

The <h1> tag is generated differently from the type of the page. What do you want to do exactly?

Link to comment
Share on other sites

2 hours ago, Prestashop Addict said:

The <h1> tag is generated differently from the type of the page. What do you want to do exactly?

I'm looking for where this tag comes from in pge.tpl, it's just a variable that equals text without HTML...
The text is taken from the page title in the CMS administration.

But I need to find the file where the HTML tag <H1> is...

In PS 1.7 it was always in page.tpl, but here it's generated either from javascript or I don't know...

Link to comment
Share on other sites

1 hour ago, Knowband Plugins said:

It's for the meta title, not for the h1 tag page title. 

Check the template file i.e. classic/templates/page.tp

 

 

They use this variable for H1 title... I checked it.. It's in the basic CLassic template, in PS 8.2, in the section ../classic/templates/cms/page.tpl

But that's not what I'm talking about, the point is that this variable is wrapped in <h1> and </h1> tags, but where do they come from? I need to find them :)

Link to comment
Share on other sites

2 hours ago, Nickz said:

Do you have the template installed or are you looking just for the theme parts?

I have the original Classic template, and I'm looking for the file where the wrapping <h1> and </h1> tags come from

Link to comment
Share on other sites

22 minutes ago, Prestashop Addict said:

It's in classic/templates/page.tpl

    {block name='page_header_container'}
      {block name='page_title' hide}
        <header class="page-header">
          <h1>{$smarty.block.child}</h1>
        </header>
      {/block}
    {/block}

 

oh yes, I didn't see that...

Thank you very much :)

Link to comment
Share on other sites

  • Reeder changed the title to [SOLVED] Prestashop 8.2 - page titles

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...