Advanced settings
-
Hi Frank,
The AO isn’t showing the advanced settings in my site (blog.sage.com.br/dev/testes).
Thanks, Hugo.
-
when you click on the button, you mean? in that case some javascript error if blocking execution somehow, what does your browser error-console say?
frank
Thank you by your return.
The console shows this issue in load-scripts.php:
Uncaught TypeError: Cannot read property ‘hasClass’ of undefined
load-scripts.php?c=1&load[]=hoverIntent,common,admin-bar,svg-painter,heartbeat,wp-auth-check&ver=4.…:246All plugins are disabled.
no idea really; AO doesn’t optimize wp-admin, so something else must be messing up JS there.
what browser are you trying this with?
frank
Oh, i forgot this:
Uncaught TypeError: jQuery(…).unslider is not a function
jQuery(‘.autoptimize_banner’).unslider({autoplay:true, delay:5000});Im using Chrome 48.0.2564.97.
Tested on my own blog with Chrome 48.0.2564.82 and works OK for me I’m afraid Hugo, absolutely no idea what is going wrong there … 🙁
as a (dumb) workaround, you can force the advanced entries to become visible by adding this CSS in Chrome’s developer tools (elements -> styles -> add new);
.ao_adv { display: table-row !important; }frank
Thank you Frank, this solution solves my problem.
Keep up the good work!
Hugo
Hi,
WP: 4.5.3
Automptize: 2.0.2
Browser: Chrome 51.0.2704.103 mI’m also getting this error whereby the “Show advanced settings” won’t open-up and the following error is outputted to console:
options-general.php?page=autoptimize:505 Uncaught TypeError: jQuery(...).unslider is not a function (anonymous function) @ options-general.php?page=autoptimize:505 i @ jquery.js:2 fireWith @ jquery.js:2 ready @ jquery.js:2 K @ jquery.js:2I’ve checked all other WP Admin pages and there are no other JS errors except when visiting the Autopimze settings page.
Thx,
SW
no idea steve, unslider is a small jquery component that is loaded on the AO-pages, never seen this not loading (it’s enqueued the proper way). maybe check AO’s settings HTML and/ or in your browser toolbar (network view) if you see the unslider js (& css) being loaded or if there’s a 404 or something else.
you can access the raw advanced settings by going to /wp-admin/options.php and scrolling down to the autoptimize_* fiels.
hope this helps,
frankThanks Frank for your reply and suggestions! All of the assets are downloading and there are no 404 errors under the Network tab. I’ll use the options.php and hopefully doing it there won’t mess anything else.
All of the assets are downloading and there are no 404 errors under the Network tab.
so you see unslider.js being loaded? weird. if you want you can download the developement version of AO here (overwrite your
plugins/autoptimizewith the contents ofautoptimize-masterin the zip), there are some changes to unslider there?frank
Another reason for the advanced options not showing in AO is if the site is using bootstrap.css. In my case Commenting out this part
.hidden{display:none!important}in the bootstrap css file made the advanced options (and WordPress Screen options/Help) show up. In our case we use bootstrap to generate a filtered list of voice samples: https://voiceresort.com/voice-over-speakinteresting find plu2, but shouldn’t the bootstrap-CSS (ideally) only be enqueued on the frontend, in which case there would be no issue?
Ideally I guess it should be enqueued on the frontend only in most cases Frank. We also use bootstrap on the backend for administration of the database of our voice samples.
– And thank you very much for a great plugin!
well, one has to live with the jungle-like ecosystem that is wordpress, so this commit should fix things. I’ll push this to 2.1-RC later today 🙂
thanks for you valuable feedback!
ok, committed to AO 2.1-RC, you can download here to test 🙂
The topic ‘Advanced settings’ is closed to new replies.