• Resolved campbellduke

    (@campbellduke)


    The website I am working on is still behind a ‘Coming Soon’ page so I can’t provide a link to it… but I can point to what I’m trying to do from another website I have created.

    The issue: I am trying to create a button on the main navigation menu by defining a css class in the Custom CSS section and then adding it to the menu item in the menus section.

    It ALMOST works – in that the menu item is the correct colour, but the text colour hasn’t changed to white.

    I have it working on another website (https://NavigatingHealthcare.ca) where you can see the ‘Book a Consultation’ is a red button with white text.

    Here’s the CSS I used:

    .menu-btn {
    background-color: #9d213c;
    border-radius: 20px;
    color: white;
    }

    And the CSS class in the menu section is: menu-btn.

    EXCEPT the font remains black in the Astra theme and is difficult to read.

    Is there somewhere else I need to tweak to get this to work in Astra? Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @campbellduke,

    Why don’t you just use the Button element and add it to the Header, next to the Menu? Refer to this screenshot, please.

    If you are still using the old Header/Footer, you might want to consider switching to the new Header Footer Builder (HFB).

    Let us know if you need more help, otherwise please mark the topic as Resolved.

    Kind regards,
    Herman ??

    Thread Starter campbellduke

    (@campbellduke)

    Thank you for the response. It has been resolved by switching themes.

    Hi @campbellduke, sorry for the delay.

    So sorry to hear that. It should be very easy to do that using the new HFB.

    Well,feel free to start a new thread if there is anything else related to Astra we can help you with.

    Kind regards,
    Herman ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom CSS Almost Working’ is closed to new replies.