changing the header title in product list view
-
- Phoca Enthusiast
- Posts: 61
- Joined: 04 Nov 2012, 23:40
- Location: Iran
- Contact:
changing the header title in product list view
Hi,
Is there a way to change the header title of product list view?
which file would be containing the code so i can change it?
and I am not talking about css tricks. I might need to change the title.
Is there a way to change the header title of product list view?
which file would be containing the code so i can change it?
and I am not talking about css tricks. I might need to change the title.
Tags:
-
- Phoca Enthusiast
- Posts: 61
- Joined: 04 Nov 2012, 23:40
- Location: Iran
- Contact:
Re: changing the header title in product list view
I actually found this code in view->category
it is calling header of the template but I haven't put the so called "Items" as the header of my template.
Code: Select all
// HEADER - NOT AJAX
if (!$this->t['ajax']) {
echo '<div id="ph-pc-category-box" class="pc-category-view'.$this->p->get( 'pageclass_sfx' ).'">';
$c = isset($this->t['categories']) ? count($this->t['categories']) : 0;
echo $this->loadTemplate('header');
echo $this->loadTemplate('subcategories');
echo $this->loadTemplate('pagination_top');
echo '<div id="phItemsBox">';
}
- David-Spring
- Phoca Member
- Posts: 33
- Joined: 15 Dec 2020, 11:21
Re: changing the header title in product list view
Thank you for finding and posting a solution to this problem. Again this will help other people solve the same problem.
Most good templates these days will have a way to change the heading tag used for titles. You should be able to change the font family, the font size and the color just by clicking on buttons.
One thing I like about Phoca Cart is how clean and logical the coding is. If there is ever a problem with your template, there is always a logical class like .pc-category-view that you can use in your custom.css file to override your template. I am not saying you should do this, but you could add many other things with CSS such as decorations or padding to make your titles stand out more. Such things as decorations or padding changes are generally not possible with most templates. But they are easy in custom.css once you know the class you want to change.
Most good templates these days will have a way to change the heading tag used for titles. You should be able to change the font family, the font size and the color just by clicking on buttons.
One thing I like about Phoca Cart is how clean and logical the coding is. If there is ever a problem with your template, there is always a logical class like .pc-category-view that you can use in your custom.css file to override your template. I am not saying you should do this, but you could add many other things with CSS such as decorations or padding to make your titles stand out more. Such things as decorations or padding changes are generally not possible with most templates. But they are easy in custom.css once you know the class you want to change.
-
- Phoca Enthusiast
- Posts: 61
- Joined: 04 Nov 2012, 23:40
- Location: Iran
- Contact:
Re: changing the header title in product list view
David-Spring,
That was not the solution I posted.
I found a code which refers to the header. but I could not find where the header is read from.
I would still need someone's help. and as I mentioned, I don't want CSS tricks. since I would like to change the header to sth else and there got to be a better way.
That was not the solution I posted.
I found a code which refers to the header. but I could not find where the header is read from.
I would still need someone's help. and as I mentioned, I don't want CSS tricks. since I would like to change the header to sth else and there got to be a better way.
-
- Phoca Hero
- Posts: 2819
- Joined: 28 Nov 2010, 17:20
Re: changing the header title in product list view
Hi,
when checking the Demo: https://www.phoca.cz/phocacartdemo/premiere/2-_ _
it shows: h1 (see image)
What do you see under: "Items" with inspector?
Kind regards
Christine
when checking the Demo: https://www.phoca.cz/phocacartdemo/premiere/2-_ _
it shows: h1 (see image)
What do you see under: "Items" with inspector?
Kind regards
Christine
-
- Phoca Enthusiast
- Posts: 61
- Joined: 04 Nov 2012, 23:40
- Location: Iran
- Contact:
Re: changing the header title in product list view
Hi,
the same id and class:
the same id and class:
-
- Phoca Enthusiast
- Posts: 61
- Joined: 04 Nov 2012, 23:40
- Location: Iran
- Contact:
Re: changing the header title in product list view
just wanted to let you know that I even tried the hide header method described in this manual and it didn't work:
https://www.phoca.cz/documents/116-phoc ... and-tricks
https://www.phoca.cz/documents/116-phoc ... and-tricks
- Benno
- Phoca Hero
- Posts: 9451
- Joined: 04 Dec 2008, 11:58
- Location: Germany
- Contact:
Re: changing the header title in product list view
Hi,
in my case hiding of header works with this setting. See images:
Joomla! v3.9.23
Phoca Cart v3.5.5 Beta
PHP v7.4.13
Phoca Fashion Template v1.0.3
Kind regards,
Benno
in my case hiding of header works with this setting. See images:
Joomla! v3.9.23
Phoca Cart v3.5.5 Beta
PHP v7.4.13
Phoca Fashion Template v1.0.3
Kind regards,
Benno
-
- Phoca Enthusiast
- Posts: 61
- Joined: 04 Nov 2012, 23:40
- Location: Iran
- Contact:
Re: changing the header title in product list view
Benno,
did you use css or the method from the manual?
did you use css or the method from the manual?
-
- Phoca Enthusiast
- Posts: 61
- Joined: 04 Nov 2012, 23:40
- Location: Iran
- Contact:
Re: changing the header title in product list view
btw,
may I know where is this search box?
I don't have it in my version:
may I know where is this search box?
I don't have it in my version: