Home Forums WoodMart support forum Apply wd-primary-color using CSS Class

Apply wd-primary-color using CSS Class

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #378903

    ninja
    Participant

    Hi
    please guide me how can i apply Primary or Secondary color of theme to a header text/html using “Additional CSS class” provided in Style tab in edit form.
    i tried adding
    .wd-primary-color
    or
    .–wd-primary-color but has no effect.
    thanks in advance

    #378946

    Bogdan Donovan
    Keymaster

    Hi,

    Use CSS class color-primaryto set the primary color and color-altfor secondary color.

    Kind Regards

    #379606

    ninja
    Participant

    please have a look at attachment
    i am applying in this way and no effect.
    where i am wrong ?please

    #379607

    ninja
    Participant

    attachment

    Attachments:
    You must be logged in to view attached files.
    #379778

    Bogdan Donovan
    Keymaster

    Hi,

    This CSS class, designed to apply styles directly to the HTML tags, but not for the element. To work properly, add this class to your Text/HTML header element content.

    For example:
    <span class="color-primary">ADD ANYTHING HERE OR JUST REMOVE IT…</span>

    How it looks in editor: https://prnt.sc/y8W81Ni-7sdB
    How it looks in frontend: https://prnt.sc/l6Q8c3kKzvnt

    Kind Regards

    #379792

    ninja
    Participant

    thank you so much 🙂

    #379795

    Bogdan Donovan
    Keymaster

    You are welcome!

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘Apply wd-primary-color using CSS Class’ is closed to new replies.