Advertisement:

Author Topic: want astrek (*) mark in red for custom mandatory fields  (Read 258 times)

moinuddin

  • Full Member
  • ***
  • Posts: 120
want astrek (*) mark in red for custom mandatory fields
« on: June 12, 2019, 12:49:37 pm »
label[for=meta_room_type_1] {
        color: red;
    }
    label[for=meta_room_type_1]:before {
        content: "*";
    }


 i tried this in my bender theme ..but it didnt worked..it didnt show "*" in red ..instead it shows ":" in black..can you help me in solving this ??

thanks in advance

BritWeb

  • Hero Member
  • *****
  • Posts: 775
  • If it ain't broke, don't fix it.
Re: want astrek (*) mark in red for custom mandatory fields
« Reply #1 on: June 12, 2019, 12:59:49 pm »
label[for=meta_room_type_1] {
        color: red;
    }
    label[for=meta_room_type_1]:before {
        content: "*";
    }


 i tried this in my bender theme ..but it didnt worked..it didnt show "*" in red ..instead it shows ":" in black..can you help me in solving this ??

thanks in advance

Open the page with custom fields, get the source code for the section showing the custom field and asterisk and post it here for us to look at. Someone may try and help you.

Thanks

moinuddin

  • Full Member
  • ***
  • Posts: 120
Re: want astrek (*) mark in red for custom mandatory fields
« Reply #2 on: June 12, 2019, 02:11:04 pm »
There is no source code ..i have made custom fields from admin panel and took the attribute name from there and then added the code into css file

BritWeb

  • Hero Member
  • *****
  • Posts: 775
  • If it ain't broke, don't fix it.
Re: want astrek (*) mark in red for custom mandatory fields
« Reply #3 on: June 12, 2019, 03:20:37 pm »
There is no source code ..i have made custom fields from admin panel and took the attribute name from there and then added the code into css file

Sorry for the confusion. If you have these custom fields showing up on 'item-post' page when you selected a category or on any other page , than having that custom fields on that page, get the source code and post it here.

moinuddin

  • Full Member
  • ***
  • Posts: 120
Re: want astrek (*) mark in red for custom mandatory fields
« Reply #4 on: June 12, 2019, 06:49:35 pm »
hi attached are my front end files ..notepad code is very vast and might confuse you.

BritWeb

  • Hero Member
  • *****
  • Posts: 775
  • If it ain't broke, don't fix it.
Re: want astrek (*) mark in red for custom mandatory fields
« Reply #5 on: June 13, 2019, 03:38:25 am »
I don't see the custom fields having Asterisk

moinuddin

  • Full Member
  • ***
  • Posts: 120
Re: want astrek (*) mark in red for custom mandatory fields
« Reply #6 on: June 13, 2019, 09:32:52 am »
Yes..its not showing...i want to show iron last. 4 fields.

BritWeb

  • Hero Member
  • *****
  • Posts: 775
  • If it ain't broke, don't fix it.
Re: want astrek (*) mark in red for custom mandatory fields
« Reply #7 on: June 13, 2019, 01:29:14 pm »
Yes..its not showing...i want to show iron last. 4 fields.

OK, get me the source code of that page with those custom fields.

Cheers!

moinuddin

  • Full Member
  • ***
  • Posts: 120
Re: want astrek (*) mark in red for custom mandatory fields
« Reply #8 on: June 13, 2019, 01:49:29 pm »
Hi britweb,

Thanks for your reply ..but that has been solved now as i was not putting meta_ before the attribute name ..once that was done it was showing astrek


Thanks again for your help