Page 1 of 1
How do I change the page heading?
Posted: 22 Jul 2018, 17:55
by escafandra
In my site
https://www.atunrojodelestrecho.com/tiendatest.html the default page heading is "items". I changed it to "Productos" in Menus > Phoca Cart > Page Display > Page Heading, but the word "Item" is still there. How do I get rid of that word "Item" or chage it to one of my choosing? Thank you very much.
Re: How do I change the page heading?
Posted: 30 Jul 2018, 16:08
by Jan
Hi, for now this can be done only in code directly:
components\com_phocacart\views\items\tmpl\default_header.php
from:
Code: Select all
echo PhocacartRenderFront::renderHeader(array($title, JText::_('COM_PHOCACART_ITEMS')));
to:
Code: Select all
echo PhocacartRenderFront::renderHeader(array($title));
(can be even overwritren by template, so the modifications will be not lost when updating the phoca cart component)
Jan
Re: How do I change the page heading?
Posted: 31 Jul 2018, 19:09
by escafandra
Great! Than you so much!
Re: How do I change the page heading?
Posted: 07 Aug 2018, 14:17
by Jan
Ok
Re: How do I change the page heading?
Posted: 30 Aug 2018, 16:53
by escafandra
Hello again Jan,
The word "Item" came back. Weird. I checked and the code is echo PhocacartRenderFront::renderHeader(array($title));
as you suggested back when I changed it and it worked. Any ideas please? Thank you,
Re: How do I change the page heading?
Posted: 02 Sep 2018, 00:43
by Jan
Hi, did you set it in your template as override, so it will be not overwritten by update?
Jan
Re: How do I change the page heading?
Posted: 13 Sep 2018, 13:27
by escafandra
Hi Jan, sorry but I am not sure how to set it in my template as override. Could you please explain how to do it? Thank you,
Re: How do I change the page heading?
Posted: 15 Sep 2018, 14:21
by Jan
Hi, just see the Joomla! guides, how to overwrite component outputs. You can set the component output file (e.g.: components\com_phocacart\views\category\tmpl\default_header.php will be copied to Joomla! template html folder and it will override the source file)
https://docs.joomla.org/How_to_override ... omla!_core
Jan
Re: How do I change the page heading?
Posted: 15 Sep 2018, 18:55
by escafandra
Great! Thank you so much for your help Jan. Much appreciated.
All the best!
Re: How do I change the page heading?
Posted: 16 Sep 2018, 11:35
by Jan
Ok