This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
*

Brandso

  • ****
  • 108 posts
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

*

MB Themes

@Brandso
I would hide it somehow via javascript (removing starts in particular selector).
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Brandso

  • ****
  • 108 posts
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

Marked as best answer by Brandso India on June 06, 2022, 04:01:19 PM
*

MB Themes

@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>';
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Brandso

  • ****
  • 108 posts
Thanks a lot, it worked.

*

MB Themes

Cool  :P
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots