Can´t Use "Custom Code" Funktion In Template Options - Question | JoomShaper

Can´t Use "Custom Code" Funktion In Template Options

Ralf Günther

Ralf Günther

Template 2 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.

0
5 Answers
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 2 years ago #46260

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.

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 2 years ago #46059
0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 2 years ago #46060

I used on your site, and helped.

Have a nice Sunday

0
Ralf Günther
Ralf Günther
Accepted Answer
2 years ago #46255

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)

0
Ralf Günther
Ralf Günther
Accepted Answer
2 years ago #46270

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

0