Support Forums - Classified Ads Script Osclass
Osclass plugin support => General plugins discussion => Topic started 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
-
@Brandso
I would hide it somehow via javascript (removing starts in particular selector).
-
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
-
@Brandso
I would update functions.php
This line:
$html .= '<label class="control-label" for="atr' . $a['pk_i_id'] . '">' . ($name <> '' ? $name : __('New attribute', 'attributes')) . '</label>';
Into this one:
$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>';
-
Thanks a lot, it worked.
-
Cool :P