Osclass Support Forums

Osclass theme support => Beta Osclass Theme => Topic started by: ZP2021 on February 19, 2021, 07:44:29 PM

Title: Category Description
Post by: ZP2021 on February 19, 2021, 07:44:29 PM
Hi,

How can I enable category description on web page?
Picture: https://prnt.sc/1015qqe
Title: Re: Category Description
Post by: ZP2021 on February 20, 2021, 12:06:29 AM
And category images not shown in category and subcategory.
Picture: https://prnt.sc/101cu8q

I have options in admin - but it is not appear on web-page.

Please help!
Title: Re: Category Description
Post by: ZP2021 on February 20, 2021, 01:22:57 AM
I am done with description... I am use this code: <?php echo osc_category_description($locale = “”); ?>
But still can`t add category image.
Could you please help? What I need to add?
Title: Re: Category Description
Post by: mocody on February 20, 2021, 07:30:03 AM
@ZP2021

i think you need to use font awesome 4.7 for Beta Theme,
it's already integrated with the theme options,
see the link below

https://fontawesome.com/v4.7.0/icons/
Title: Re: Category Description
Post by: ZP2021 on February 20, 2021, 12:48:57 PM
@mocody

Thank you for your reply. No, there is option to upload  large jpg*. 
Picture: https://prnt.sc/101cu8q
Title: Re: Category Description
Post by: MB Themes on February 20, 2021, 12:54:38 PM
@ZP2021
Here is code to get large category image.
Code: [Select]
$cat_id = @osc_search_category_id()[0];
$img = osc_base_url() . 'oc-content/themes/beta/images/large_cat/' . $cat_id . '.jpg';
Title: Re: Category Description
Post by: ZP2021 on February 22, 2021, 12:43:22 AM
Thank you!
Title: Re: Category Description
Post by: ZP2021 on February 22, 2021, 12:47:57 AM
One more question... I was add category image and description in new <div id>. What I need to add and where to refresh it automatically?
Title: Re: Category Description
Post by: MB Themes on February 22, 2021, 08:12:39 AM
@ZP2021
It must be included in list of refresh boxes for ajax search, if you mean that. (global.js)