Can´t use "Custom Code" funktion in Template Options - Forum | JoomShaper
Solved Templates

Can´t use "Custom Code" funktion in Template Options

Asked by Ralf Günther 4 years ago Last activity 4 years ago

Hi, i´m using the stellar template in joomla 4.
If i try to use the "Custom Code" - funktion in template options, there always the following error massage:

"Call to a member function addStyledeclaration() on null"

I want to change the font-size with the custom code:

.sp-megamenu-parent>li>a,
.sp-megamenu-parent>li>span {
    font-size: 16px;
}

Also if i use the funtion "Typography" there are changing not all meu items.

Accepted answer

Marked as the solution
Paul Frankowski Senior Staff

You could use custom.css even before.

This may help to set 16px in whole menu:

#sp-header .sp-megamenu-parent > li > a,
.sp-megamenu-parent > li > a, 
#sp-header .sp-megamenu-parent > li > span {
    font-size: 16px;}

14px is too small in my opinion.

You have some CSS lines inside Template Options CSS as well.

4 more replies

Paul Frankowski Senior Staff

I used on your site, and helped.

Have a nice Sunday

Ralf Günther Asked this

Thanks for your reply, custom.css via template options I can use now, but not all menu items adjust, a few remain unchanged, as shown in the picture (i marked the font-size)

Ralf Günther Asked this

Thank´s so it is great!! 14px is realy to small

Log in to reply.