Page 1 of 1
Reduce Subcategory title font size.
Posted: 16 Sep 2023, 18:02
by Spraymissah
Hello everyone, i need help to reduce subcategory title font size. Link below
https://bonoboconceptstore.com/bonobo/i ... iving-room
Re: Reduce Subcategory title font size.
Posted: 16 Sep 2023, 18:19
by Nidzo
Create template override of default_subcategories.php
It is in components/com_phocacart/views/category/tmpl
Change <h3> tag to something else such is <h4>, <h5>, or <span>. <div> with custom class.

Re: Reduce Subcategory title font size.
Posted: 16 Sep 2023, 18:20
by christine
Hi,
you could change with following code into your custom.css of your template.
Code: Select all
.row-item-subcategory h3 {
font-size: 25px;
}
Kind regards
Christine
Edit: Hi Nidzo, saw after my post your solution. OK

Re: Reduce Subcategory title font size.
Posted: 16 Sep 2023, 18:30
by Spraymissah
The Customs CSS worked. Thanks so much Christine and Nidzo.
Is it possible to also change font family?
Re: Reduce Subcategory title font size.
Posted: 16 Sep 2023, 19:11
by christine
Hi,
I think the advantage of the override would be that it only applies to these subcategories.
Wherever these subcategories occur, there would be h4, h5, for example, as Nidzo suggested.
If the CSS has no effect elsewhere, you can of course use this CSS. It is always important to do this in a custom.css, otherwise it will be overwritten in a phoca update.
--------------------------------------------------------
Ah new question: Fonts should be integrated locally.
See also:
https://gwfh.mranftl.com/fonts
https://gwfh.mranftl.com/fonts/aboreto?subsets=latin
I see some under your theme.9.css
Kind regards
Christine
Re: Reduce Subcategory title font size.
Posted: 16 Sep 2023, 21:14
by Spraymissah
Great, i have also been able to change font family under custom css. One last question for this thread, under my Living Room menu, there is main category, subcategories: titles. Can i hide subcategories: title?
Re: Reduce Subcategory title font size.
Posted: 16 Sep 2023, 21:59
by christine
Hi,
OK, last question for this thread.
Try following:
Code: Select all
.ph-subcategories {
display: none;
}
If wanted, in addition:
Kind regards
Christine
Re: Reduce Subcategory title font size.
Posted: 16 Sep 2023, 22:27
by Spraymissah
Thanks so much Christine. it worked like a charm. You saved me.
Re: Reduce Subcategory title font size.
Posted: 16 Sep 2023, 22:55
by christine
Hi,
Thanks for your feedback.
Kind regards
Christine