Reeder Posted April 8 Share Posted April 8 (edited) 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 May 7 by Reeder (see edit history) Link to comment Share on other sites More sharing options...
Nickz Posted April 8 Share Posted April 8 Do you have the template installed or are you looking just for the theme parts? Link to comment Share on other sites More sharing options...
Prestashop Addict Posted April 8 Share Posted April 8 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 More sharing options...
Knowband Plugins Posted April 8 Share Posted April 8 1 hour ago, Reeder said: {block name='page_title'} {$cms.meta_title} {/block} It's for the meta title, not for the h1 tag page title. Check the template file i.e. classic/templates/page.tp 1 Link to comment Share on other sites More sharing options...
Reeder Posted April 8 Author Share Posted April 8 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 More sharing options...
Reeder Posted April 8 Author Share Posted April 8 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 More sharing options...
Reeder Posted April 8 Author Share Posted April 8 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 More sharing options...
Prestashop Addict Posted April 8 Share Posted April 8 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} 1 Link to comment Share on other sites More sharing options...
Reeder Posted April 8 Author Share Posted April 8 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 More sharing options...
Prestashop Addict Posted April 9 Share Posted April 9 Don't forget to change your title post by adding [SOLVED] and add a Thanks or Like to the good answer, this will help community. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now