Since all in one seo skipped this feature what would be the best way? Without a new plugin?

Update added:

Bringing up the subject since many of us are using all in one seo , and might encounter same problem if using scripts

If you do not use extra scripts, do not worry... all is fine

Best is to use a header footer plugin, or to add your script in header.php of your theme editor, knowing that you might have to do that again, when your theme updates


thank you for liking, sharing and comments

Join the Discussion
Write something…
Recent messages
Francisco97 Premium
Thanks for sharing...
Reply
Fleeky Premium
Good luck
👍
Reply
LatinNomad Premium
Some great advice below from the more technically minded.

Have a great day.

Trevor
Reply
Fleeky Premium
Lol

👍🥳
Reply
Fleeky Premium
This is what i did after trying several plugins

went to appearance > theme editor> header.php
And pasted the script before <body> as site support suggested...
It works fine..

Had to update the script for one theme, since it was no longer ok

So, in doubt, ask,the cracko's of site support
Reply
Fleeky Premium
Problem solved, i asked site support... and they provided a solution through the theme editor

Wow
✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨
Thank you guys
🥰👍
Reply
ChrystopherJ Premium
I would not recommend that solution, as you will lose your changes when the theme updates, or if you change your theme. As you are editing the theme's files directly!
Reply
Fleeky Premium
Yep

Just happy for now... better than bad plugins
Reply
ChrystopherJ Premium
They aren't bad plugins :-) It sounds like you're using a bad theme if they don't work ;-) You will wake up to a surprise one day when your changes vanish due to an update. As long as you are aware that you will need to re-apply them after every update.
Reply
Fleeky Premium
Yes... great tip
It is a classic 2017 theme from wp
Most code plugins work badly with this theme indeed
Reply
anusuya1 Premium
I would not possibly do that. It seems your theme needs a change to accommodate the plugin. But is up to you.
Reply
Fleeky Premium
Just want to solve this wIthout extra plugin
Reply
richardgb Premium
Hi Chrystopher ... so what solution would you suggest please?
Reply
ChrystopherJ Premium
The Ad Inserter plugin works wonders and will allow you far greater control
Reply
Fleeky Premium
Yes, awesome plugin indeed chritopher!
Thank you for adding.

For now, keeping the php,solution, since it keeps my site green in site manager and one plugin less to manage (not so plugin minded)
Lol

✨💪
Reply
ChrystopherJ Premium
Too many plugins is a myth and don't worry about SiteManagers Health Status.

The wrong 5 plugins can perform worse than the right 20 plugins. It's all about choosing the right plugins. I.e. quality over quantity.
Reply
Fleeky Premium
Yes... thank,you for sharing an awesome plugin..
💪🍀
Reply
richardgb Premium
Thank you again Chrystopher.
Reply
anusuya1 Premium
You are welcome.
Reply
MaggieR1 Premium
I know I'm a bit late for this topic but I need to find out since you've mentioned that choosing the right plugin is a way to go. How can one tell from the onset that a plugin is a bad one without having to go through the headache of installing and then deactivating later? Is there a better way to do this and saving time?

Thanks in advance

Maggie
Reply
richardgb Premium
Great question Maggie. Chrystopher, are there any hints for this?
Reply
Fleeky Premium
If you folow the training,the best ones are dscussed all along
No worries

As for this post:
All in one had an option to add special headers and footers (which most of us won't use). Now that it is gone,i use header and footer code plugin. Simple and effective.

Just know that some themes have their own special options allowing this feature

For the coders amongst us, it can be added in header.htp, provided that you have a child theme, so that your code is not affected by updates
Reply
ChrystopherJ Premium
The quickest way of seeing if a plugin is a good one is to check the number of active installations (as high as possible), the star rating (as close to 5 as possible and a good number of ratings), last updated (within 1-4 weeks but no more than 1 year), tested with version (the latest WP version, currently 5.5). Plugins are also either backend plugins or front end plugins. Front end plugins are the ones that visually change the appearance of your website, as these usually add extra CSS & JS files. You want to keep these to a minimum, however, if you only need them on certain pages/posts, then use the Asset Cleanup plugin to remove them from pages/posts that don’t require them.
Reply
MaggieR1 Premium
Excellent response. Thanks Chris
Reply
MaggieR1 Premium
Thanks Fleeky. I have bookmarked your post for future reference.
Reply
richardgb Premium
On the learning scale then, I am mostly at level 4 with this (I didn’t know what I know, or instinctive) since I already assess plugins that way. However I was at level 1 (didn’t I didn’t know) for Asset Cleanup. Now I know that I don’t know (level 2) and I’ve added ‘learn about Asset Cleanup’ to my growing list of things to do triggered by WA members. Thank you Chrystopher. :-)
Reply
ChrystopherJ Premium
You’re welcome :-) In a nutshell, Asset Cleanup allows you to stop certain CSS & JS from being loaded when they are not needed. I.e. If you use Table of Contents, you might only have it on some posts, so you can prevent it from being loaded on pages and the posts they don’t have a ToC. This will help speed up your website and will reduce the suggestions within Google’s PageSpeed Insights that talk about excessive CSS & JS.
Reply
richardgb Premium
Understood. Thank you.
Reply
ChrystopherJ Premium
Is the JS hosted locally or being referenced from a 3rd party?
Reply
Fleeky Premium
You are a cracko Christopher

Referenced...
Reply
ChrystopherJ Premium
I would use the Ad Inserter plugin or the Headers & Footers plugin, depending on which one you have installed. You can also use the Hooks feature within GP Premium, if you have it.
Reply
Fleeky Premium
Used head and footer code plugin
with some wp themes, it does not work properly,
hence my question
Reply
ChrystopherJ Premium
It might be that your theme isn't coded correctly to include headers. But if your GA and GSC codes are appearing in your headers via AIO SEO, then the Headers & Footers plugin or the Ad Inserter plugin will work perfectly.
Reply
Fleeky Premium
Yep...
Thank you
Reply
Top