changing the header title in product list view

Phoca Cart - complex e-commerce extension
wizarddesign
Phoca Enthusiast
Phoca Enthusiast
Posts: 61
Joined: 04 Nov 2012, 23:40
Location: Iran
Contact:

changing the header title in product list view

Post by wizarddesign »

Hi,

Is there a way to change the header title of product list view?
Image
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:
wizarddesign
Phoca Enthusiast
Phoca Enthusiast
Posts: 61
Joined: 04 Nov 2012, 23:40
Location: Iran
Contact:

Re: changing the header title in product list view

Post by wizarddesign »

I actually found this code in view->category

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">';
}
it is calling header of the template but I haven't put the so called "Items" as the header of my template. :!:
User avatar
David-Spring
Phoca Member
Phoca Member
Posts: 33
Joined: 15 Dec 2020, 11:21

Re: changing the header title in product list view

Post by David-Spring »

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.
wizarddesign
Phoca Enthusiast
Phoca Enthusiast
Posts: 61
Joined: 04 Nov 2012, 23:40
Location: Iran
Contact:

Re: changing the header title in product list view

Post by wizarddesign »

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.
christine
Phoca Hero
Phoca Hero
Posts: 2819
Joined: 28 Nov 2010, 17:20

Re: changing the header title in product list view

Post by christine »

Hi,

when checking the Demo: https://www.phoca.cz/phocacartdemo/premiere/2-_ _

it shows: h1 (see image)

Image

What do you see under: "Items" with inspector?

Kind regards
Christine
wizarddesign
Phoca Enthusiast
Phoca Enthusiast
Posts: 61
Joined: 04 Nov 2012, 23:40
Location: Iran
Contact:

Re: changing the header title in product list view

Post by wizarddesign »

Hi,

the same id and class:
Image
wizarddesign
Phoca Enthusiast
Phoca Enthusiast
Posts: 61
Joined: 04 Nov 2012, 23:40
Location: Iran
Contact:

Re: changing the header title in product list view

Post by wizarddesign »

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
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9451
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: changing the header title in product list view

Post by Benno »

Hi,
in my case hiding of header works with this setting. See images:

Image

Image

Image

Joomla! v3.9.23
Phoca Cart v3.5.5 Beta
PHP v7.4.13
Phoca Fashion Template v1.0.3

Kind regards,
Benno
wizarddesign
Phoca Enthusiast
Phoca Enthusiast
Posts: 61
Joined: 04 Nov 2012, 23:40
Location: Iran
Contact:

Re: changing the header title in product list view

Post by wizarddesign »

Benno,

did you use css or the method from the manual?
wizarddesign
Phoca Enthusiast
Phoca Enthusiast
Posts: 61
Joined: 04 Nov 2012, 23:40
Location: Iran
Contact:

Re: changing the header title in product list view

Post by wizarddesign »

btw,

may I know where is this search box?
Image

I don't have it in my version:
Image
Post Reply