Modern Event Calendar adjust checkbox size

Hello!

Could you please help us on the following topic. In the Modern Event Calendar (MEC) that comes with your great theme there a different form elements (like checkboxes) you can use in course of the booking process for events.

We would like to change the size and make this checkbox bigger (see picture).

Could you please advise how to achieve this?

Many thanks
ulipu

Hello @ulipu,

Thanks for asking. :slight_smile:

You can add following CSS under X > Theme Options > CSS:

.mec-fes-form input[type=checkbox] {zoom: 1.5;}

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

Thanks.

Dear Prasant,

many thanks for your answer. Unfortunately it did not change despite we have included the css under the theme. Any idea why it does not have the desired effect?

Thanks and kind regards,
ulipu

Hi Ulipu,

I checked your site and I see the content on your site is being served by the cache, try purging your plugin’s cache first and see if the above CSS works. If it still doesn’t work then you can add the following code in the Theme Options > CSS:

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 5px;
}

Don’t forget to clear the cache after adding the code. Let us know how this goes!

Hi Nabeel,

many thanks! The later css code worked. Strange but I had to put the css code into the css-section of the MEC plugin and not of the theme.

Kind regards,
ulipu

Hey Ulipu,

That might have something to do with CSS Precedence. Glad it works now.

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