Error: 0 Call To A Member Function AddStyledeclaration() On Null If Insert CSS In YAMAS Template - Question | JoomShaper

Error: 0 Call To A Member Function AddStyledeclaration() On Null If Insert CSS In YAMAS Template

GETCOMM

GETCOMM

Template 1 year 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

0
9 Answers
Toufiq
Toufiq
Accepted Answer
Senior Staff 1 year ago #159013

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)

0
GETCOMM
GETCOMM
Accepted Answer
1 year ago #159015

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

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 1 year ago #159016

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

0
GETCOMM
GETCOMM
Accepted Answer
1 year ago #159026

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

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 1 year ago #159088

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

0
GETCOMM
GETCOMM
Accepted Answer
1 year ago #159099

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

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 1 year ago #159109

Solved. Please check now. Thanks

0
GETCOMM
GETCOMM
Accepted Answer
1 year ago #159115

Thank you! Now works. What problem did you encounter?

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 1 year ago #159122

You are most welcome & Thanks. The template index.php file was a old strucure code of custom css. I just updated the code.

Feel free to leave a review here.

https://www.trustpilot.com/review/www.joomshaper.com

https://extensions.joomla.org/extension/sp-page-builder/

0