MEC Organiser label

I have been trying to change the MEC Organiser label from Organiser to Leader.

I added the following code to Pro > Theme Options > Js:
jQuery(".mec-single-event-organizer .mec-events-single-section-title").html(“Leader”);

I have sent a link via Secure Message. If you look at that, you will see that label has changed, but that the icon is now against the name of the Leader and also that the font for the Leader’s name is different from the fields above, and also is now in upper case

Can you advise me what I have done wrong?

Hey there,

Thanks for writing in! I tested your code in my local setup and it works fine however i did not experience the font family change issue with your script as it only changes the title. This icon issue you mentioned is the default layout of Organizer box, this is how it looks like when you fill all the fields:

You can fix your font issue with CSS, try adding the following code in the Theme Options > CSS:

.mec-single-event .mec-event-meta h6 {
    font-family: Montserrat,Helvetica,Arial,sans-serif !important;
    color: #8d8d8d !important;
}

Hope this helps!

Hi Thanks for your help

yes that has sorted the icon issue. Can you also suggest why the Leader (Organiser) name is all in upper case?

Thanks

Hi again,

That’s because it’s defined to be in uppercase in the MEC styles, you can override it with custom CSS, try adding the following code in the Theme Options > CSS:

.mec-single-event-organizer .mec-events-single-section-title {
    text-transform: capitalize !important;
}

If you want to change all titles to be just capitalized then you can use this code:

.mec-single-event .mec-event-meta h3 {
    text-transform: capitalize !important;
}

If you would like to learn CSS, I am sharing few resources that you take a look to get started with CSS and an interesting tool that you can use to speed up the development process.

I recommend you to watch following video that will help you to get started with CSS.

https://www.youtube.com/watch?v=MFR4WXiLzpc

Sometimes it can get a bit difficult to find out the right selector to be able to write the required CSS codes. A handy tool that can help you in this is Google Chrome dev tools. I am sharing the resource that you can refer to get started with dev tools.

https://developers.google.com/web/tools/chrome-devtools/css/

https://developers.google.com/web/tools/chrome-devtools/

https://www.youtube.com/watch?v=tP_kXBJWPhQ&t=200s

Cheers!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.