Kunena Menu
Clean up javascript in head for SEO
10 years 1 month ago #37517
by posurreal
Clean up javascript in head for SEO was created by posurreal
Hi there,
I'm interested in cleaning up the script that is located in the Head section of my website. It comes from the Maximenu settings. If possible, I'd like a way to remove those options in the admin area and put them directly in the php or css code.
This is the script that I'm talking about:
@media only screen and (max-width:1080px){
#maximenuck564 { display: none !important; }
.mobilebarmaximenuck { display: block; }
.hidemenumobileck {display: none !important;}
}
.mobilebarmaximenuck { display: none; }
@media only screen and (max-width:1080px){
#maximenuck634 { display: none !important; }
.mobilebarmaximenuck { display: block; }
.hidemenumobileck {display: none !important;}
}
@media screen and (max-width: 524px) {#maximenuck634 .maximenumobiletogglericonck {display: block !important;font-size: 33px !important;text-align: right !important;padding-top: 10px !important;}#maximenuck634 ul.maximenuck .maximenumobiletogglerck ~ li.maximenuck.level1 {display: none !important;}#maximenuck634 ul.maximenuck .maximenumobiletogglerck:checked ~ li.maximenuck.level1 {display: block !important;}}
@media screen and (max-width: 1080px) {div#maximenuck634 ul.maximenuck li.maximenuck.nomobileck, div#maximenuck634 .maxipushdownck ul.maximenuck2 li.maximenuck.nomobileck { display: none !important; }}@media screen and (min-width: 1081px) {div#maximenuck634 ul.maximenuck li.maximenuck.nodesktopck, div#maximenuck634 .maxipushdownck ul.maximenuck2 li.maximenuck.nodesktopck { display: none !important; }}
Any ideas on how I should proceed? I DO have a custom theme for MaxiMenu already created. I also have purchased MaxiMenu Mobile plugin.
Website: trimedia.co/wmrhill
Thank you,
Mary
I'm interested in cleaning up the script that is located in the Head section of my website. It comes from the Maximenu settings. If possible, I'd like a way to remove those options in the admin area and put them directly in the php or css code.
This is the script that I'm talking about:
@media only screen and (max-width:1080px){
#maximenuck564 { display: none !important; }
.mobilebarmaximenuck { display: block; }
.hidemenumobileck {display: none !important;}
}
.mobilebarmaximenuck { display: none; }
@media only screen and (max-width:1080px){
#maximenuck634 { display: none !important; }
.mobilebarmaximenuck { display: block; }
.hidemenumobileck {display: none !important;}
}
@media screen and (max-width: 524px) {#maximenuck634 .maximenumobiletogglericonck {display: block !important;font-size: 33px !important;text-align: right !important;padding-top: 10px !important;}#maximenuck634 ul.maximenuck .maximenumobiletogglerck ~ li.maximenuck.level1 {display: none !important;}#maximenuck634 ul.maximenuck .maximenumobiletogglerck:checked ~ li.maximenuck.level1 {display: block !important;}}
@media screen and (max-width: 1080px) {div#maximenuck634 ul.maximenuck li.maximenuck.nomobileck, div#maximenuck634 .maxipushdownck ul.maximenuck2 li.maximenuck.nomobileck { display: none !important; }}@media screen and (min-width: 1081px) {div#maximenuck634 ul.maximenuck li.maximenuck.nodesktopck, div#maximenuck634 .maxipushdownck ul.maximenuck2 li.maximenuck.nodesktopck { display: none !important; }}
Any ideas on how I should proceed? I DO have a custom theme for MaxiMenu already created. I also have purchased MaxiMenu Mobile plugin.
Website: trimedia.co/wmrhill
Thank you,
Mary
Please Log in or Create an account to join the conversation.
10 years 1 month ago #37530
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic Clean up javascript in head for SEO
Hi
these lines of code are generated by the maximenu mobile plugin. Try to unpublish it to see if all the css code is gone
unfortunately there is no option to avoid to load themas they are needed. The only way would be to hack the file
CEd
these lines of code are generated by the maximenu mobile plugin. Try to unpublish it to see if all the css code is gone
unfortunately there is no option to avoid to load themas they are needed. The only way would be to hack the file
CEd
Joomlack Webmaster and Developer
Please Log in or Create an account to join the conversation.
Time to create page: 0.187 seconds




