Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 10-21-2015 08:20:13

tguswell
Member
From: Plymouth, Devon
Registered: 07-31-2010
Posts: 128
Website

<h1> tag within CORE_Display.php

Hi

I would like to remove the <h1> tag which has the id="skin_pgtitle" on the shop opening page (this is my default home page) and only this page.

How would I test within CORE_display.php for this page?

For example:
If page="Home" print no-<h1>
else print <h1>


Many thanks

Terry

Offline

 

#2 10-22-2015 11:18:50

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19951
Website

Re: <h1> tag within CORE_Display.php

Shop opening page to me means store splash, so you'd do:

Code:

$printh1 = 1; if (($this->globals('core.app') == 'ecom') && ($this->globals('core.namespace') == 'splash')) {$printh1 = 0;}

if (!(empty($printh1))) {print 'h1 here..';}

Nick Hendler

Offline

 

#3 10-23-2015 09:29:38

tguswell
Member
From: Plymouth, Devon
Registered: 07-31-2010
Posts: 128
Website

Re: <h1> tag within CORE_Display.php

Nick

Thanks for your reply. It was probably me but using your code removed the <h1> from every page. I've got around my problem by testing if the $title == 'Online Store'. I'll just have to remember if I rename that page in the future to change the entry in CORE_Display.php.

Terry

Offline

 

Board footer