metodija
Forum Replies Created
-
Forum: Plugins
In reply to: [AMP] Header and footer not appearing in amp postThanks for your reply Milind.
In my custom script i use jQuery with api calls.
Not sure what i can achieve.Thanks
Forum: Plugins
In reply to: [AMP] Header and footer not appearing in amp postHi Milind,
Just one question, i know that javascript and all javascript libraries like jQuery are disabled. Is there anyway i can enable some script to run?Thanks
Forum: Plugins
In reply to: [AMP] Header and footer not appearing in amp postThanks Milind,
I have tried it with the different themes, i wanted to know how do i customize them?
How can i change the header and footer text? I want to have a logo in header and some custom text in the footer.?Thanks
Forum: Plugins
In reply to: [AMP] Header and footer not appearing in amp postHi Milind,
Actually i got it working, i had the following function
if (is_amp_endpoint()) {
$amp_template = locate_template([‘amp/’.basename($main)]);return ($amp_template) ? $amp_template : $main;
}
so hence why it didn’t work, i have removed it and it displays now.There is an overlay on the page, when i inspect element i get the below:
<div class=”media-modal-backdrop”></div>
Do you know what this is?Also what is this html code below used for, it is blocking my content:
<div class=”media-frame-content”></div>The reader mode how does that work? Can i use the main theme for the main website, and then use another theme for AMP?
Thanks
Forum: Plugins
In reply to: [AMP] Header and footer not appearing in amp postThanks for your response Milind, i have submitted the form now.
Please check, i am available now for the next 3 hours.Forum: Plugins
In reply to: [AMP] Header and footer not appearing in amp postHi Milind,
thanks for your email.
Can you please send me a form so i can send you the url.Thanks
Forum: Plugins
In reply to: [AMP] The setup wizard has experienced an errorHi Renee,
Thanks for your email and time spent on this.
I am a developer, have been trying a few things, and i really got to it at the end.
I will explain how i fixed for the others so they know.
The culprit was in one of the theme files, the other developers have added a function that removed scripts/css.WordPress implements new standard features in the head of the theme that are always on the hook wp_head. If you don’t need them you can easily disable them by using the function “remove_action”
There are ways where you can remove style css tags:
add_filter(‘style_loader_tag’Script tags using the below:
add_filter(‘script_loader_tag’Ping backs were disabled as well:
add_filter(‘wp_headers’)
if (isset($headers[‘X-Pingback’])) {
unset($headers[‘X-Pingback’]);
}Once i have commented all of this it started working.
Thanks
Forum: Plugins
In reply to: [AMP] The setup wizard has experienced an errorHi Renee,
thanks for your email.
Those errors are already supplied in the word doc i have sent you.
Please check the word doc and each error is coped there.Do you guys know why this is happening? Can you point to the right direction?
Thanks
Forum: Plugins
In reply to: [AMP] The setup wizard has experienced an errorHi Renee,
Thanks for your email.
On my current theme, i cannot access Gutenberg, i get a blank screen.
Changing the urls make no difference.
Once i change themes to twenty twenty that i can gutenberg. However i can only save when the urls are both the same and point to the open url.The theme i use is causing this, i use the sage framework.
I have prepared and sent the additional info the form above.Please let me know what the issue could be. I really need this sorted.
Thanks
Forum: Plugins
In reply to: [AMP] The setup wizard has experienced an errorHi Renee,
When changing the different url it still outputs the error.
Only when i change themes that it starts to work.
The difference between the 2 themes is that on the culprit one it adds double quotes insted of single:
<script id=”wp-api-fetch-js-after”>
This is the line: “Twenty Fifteen”s simple,”The error happens on the following place as well:
<script id=”common-js-translations”> – Uncaught SyntaxError: missing : after property idThanks
Forum: Plugins
In reply to: [AMP] The setup wizard has experienced an errorHi Renee,
Just further to this the error I get is 404 not found in the console:
{Domain}/amp/v1/options?_locale=userWhen I type this url in the browser and change it as below:
{Domain}/wp-json/amp/v1/options?_locale=user
I don’t get 404 anymore but the below:
Amp_rest_cannot_manage_options, sorry you are not allowed to manage options for the AMP plugin for WordPress.Thanks
Forum: Plugins
In reply to: [AMP] The setup wizard has experienced an errorHi Renee,
Thanks for your email.
You should have access the url I provided you with is open. Please check the form again, I have resent the url. Please use the login details I provided you with yesterday.
The wizard doesn’t work either.
If you click on Amp on the left hand side menu, there is a spinning icon, check the console errors.Please let me know how you go, it’s quite urgent now.
Thanks
Forum: Plugins
In reply to: [AMP] The setup wizard has experienced an errorHi Renee,
All done now, they both match.
Although ideally i would need the plugin to work on different urls.
I have also sent you a user name and pass on the form above so you go to admin
Please let me know if you can login.Thanks
Forum: Plugins
In reply to: [AMP] The setup wizard has experienced an errorHi Renee,
thanks for your email.
Yes that is part of the setup, we have the admin and frond end part running on different url’s. The front url is internal only so you won’t be able to access it.
However you can still access the front end using the admin url. I can also change it in wp-options in the mean time for testing so both url’s are the same as admin.
Whatever suits you.Let me know.
Thanks
Forum: Plugins
In reply to: [AMP] The setup wizard has experienced an errorHi Renee,
Thanks for your instant reply.
The health plugin didn’t work for me, i did press Enable troubleshooting, however it didn’t ask me to disable plugins.
However i did disable all the plugins previously, and the issue still persisted.
Only when i change themes that the AMP plugin started working.
So it has something to do with the theme, I use SAGE framework, so i think it has something to do with the path.
Can i supply you with the URL privately?Thanks