Black Friday 2026 50% off every plan Our biggest deal of the year on #1 Joomla products.
Ends in 13d 00h 55m 17s
Claim 50% off
Staff replied Templates

Error: 0 Call to a member function addStyledeclaration() on null if insert CSS in YAMAS Template

Asked by GETCOMM 2 years ago Last activity 2 years ago

Good morning,
I inserted a CSS in the CSS customization of the YAMAS template and it produced the following error:

0 - Call to a member function addStyledeclaration() on null

The code entered is the following provided by you to disable the display of the map from the events page in LMS Component.

div#splms-event-map{
display:none;
}

Can you help me?

Thanks!

Mirco

5 replies

Toufiq Senior Staff

Hi there,

Thank you for reaching out, and I apologize for any inconvenience caused by this oversight. Please share your css code.

Best regards,

Toufiqur Rahman (Team Lead, Support)

GETCOMM Asked this

div#splms-event-map{
display:none;
}

Toufiq Senior Staff

Added css code inside the custom.css box in your template custom css box. Please check & let me know. Thanks

GETCOMM Asked this

That's what I did and it gives me an error.
Please check.

Now the code is entered and the site is offline! :(

Thank you!

Mirco

Toufiq Senior Staff

Your site is live. Can you share your css code before using custom CSS box? Thanks

GETCOMM Asked this

If you try to insert any CSS code into the Template's Custom CCS you will see the error.
I had tried inserting this CSS code.

div#splms-event-map{ display:none; }

Obviously the site is live, I can't leave the site offline for days.

Mirco

Toufiq Senior Staff

Solved. Please check now. Thanks

Log in to reply.