Support Forums - Classified Ads Script Osclass

Osclass plugin support => General plugins discussion => Topic started by: Brandso on June 06, 2022, 02:31:51 PM

Title: Attributes Plugin different Heading for item post & item details page.
Post by: Brandso on June 06, 2022, 02:31:51 PM
Hi, is it possible to have different heading in item post page and different in item details page. The reason is that I have used (*) asterisk symbol in item post page for some attributes which has required field and once that listing is posted it shows that (*) asterisk symbol with heading on item details page. So, is there a way to hide that asterisk symbol on item detail page?

Thanks
Title: Re: Attributes Plugin different Heading for item post & item details page.
Post by: MB Themes on June 06, 2022, 03:13:37 PM
@Brandso
I would hide it somehow via javascript (removing starts in particular selector).
Title: Re: Attributes Plugin different Heading for item post & item details page.
Post by: Brandso on June 06, 2022, 03:27:37 PM
Okay that means I have to either not use those Asterisk marks or let it stay there how it is and ignore because your answer just bounced over my head and only a technical person will understand that kind of answer which I don't think will use any paid plugins or themes because they already know how to code. Thanks for your reply though
Title: Re: Attributes Plugin different Heading for item post & item details page.
Post by: MB Themes on June 06, 2022, 03:40:15 PM
@Brandso
I would update functions.php
This line:
Code: [Select]
      $html .= '<label class="control-label" for="atr' . $a['pk_i_id'] . '">' . ($name <> '' ? $name : __('New attribute', 'attributes')) . '</label>';

Into this one:
Code: [Select]
      $html .= '<label class="control-label" for="atr' . $a['pk_i_id'] . '">' . ($name <> '' ? $name : __('New attribute', 'attributes')) . ($a['b_required'] == 1 ? '<span class="req">*</span>' : '') . '</label>';
Title: Re: Attributes Plugin different Heading for item post & item details page.
Post by: Brandso on June 06, 2022, 04:01:12 PM
Thanks a lot, it worked.
Title: Re: Attributes Plugin different Heading for item post & item details page.
Post by: MB Themes on June 06, 2022, 05:11:04 PM
Cool  :P