craigstanfield
Forum Replies Created
-
So it turns out that the script above is working. just i wasn’t using it right.
Forum: Plugins
In reply to: [AMP] AMP responsive menu desktopHi Milind,
Ok thats good but my client is expecting the same behaviour :-s. I’ve been extending the walker nav function and it is coming on well Thanks again for the support
- This reply was modified 3 years, 12 months ago by craigstanfield.
Forum: Plugins
In reply to: [AMP] AMP responsive menu desktopHi @milindmore22 ,
Thanks for the reply and to confirm that has fixed my issue, sometimes one can’t see the wood for the trees. Just need to work out how to get the submenu side of it to work and this one is ready to go.
thanks again
Forum: Plugins
In reply to: [AMP] AMP responsive menu desktopHi Milind,
The non amp live site can be seen @ https://www.leanuk.org/ I’m trrying to mimic the same behaviour in AMP. In previous posts with earleier versions of this excellent plugin the suggestion has been to consider using things like amp-sidebar or amp-mega-menu but as this is an existing working menu I don’t really know how to get the exact same functinality independent of viewing so I have sub menu’s which expand and contract when clicked/touched.
As explained i have the menu to work by adding a class to the top level ul but I do not know of a way how the class can be removed if the viewport is not a mobile device. Mainly my concern on this is with a view to eventially serving all pages in AMP for all devices!
thanks
Forum: Plugins
In reply to: [AMP] implementing amp-carouselTurned out i was echoing $_html not $html. fixed and now it is working!
Forum: Plugins
In reply to: [AMP] How to add AMP on Blog Listing, Category & Archive PagesHi Ashish,
I suspect your ‘Blog home’ is a page and not a post? Can you confirm this to be the case? If it is a page can you convert it to a post or a category landing page?
Craig
Forum: Plugins
In reply to: [AMP] Can i have toggle-on, toggle-off class for nav_menu_toggleI’ve since implemented this using amp-state but i think as a new feature this would be useful?
Forum: Plugins
In reply to: [AMP] all js code is removed@swissspidy Are yo aware that amp.dev has been down for at least a month :'(
Forum: Plugins
In reply to: [AMP] Does this plugin work with my theme?Hi Folks, I’d like to chip in on this, all the themese we do in my company are amp compatible. All our themes use foundation but imo it’s harder to design a theme that won’t work with amp than one that will. Some of our themes go back 5+ years and had no issue converting to amp. The menu seems to be the major issue but one or other of the solutions recommended by the developer will solve any issues.
Forum: Plugins
In reply to: [AMP] Linked AMP version is invalidre image processing with lazy loading, we use Optimole (https://www.ads-software.com/plugins/optimole-wp/) with AMP with no major issues. I’d recommend optimole to anyone as it puts images on a CDN and serves them in webp if browser allows it. This being said we’ve used it on about 10 sites and 3 of them we have had to pay the $10 a month as exceeded the bandwidth. These are heavy image based sites however.
Forum: Fixing WordPress
In reply to: Image Upload Stops at Crunching….I found that my wp_posts didn’t have a primary key on the id column. I reloaded the database and now I have a different error saying that it Could not insert post into the database. This time however the blank entry wasn’t added (with an id of 0) but the image is still uploaded to the uploads 2019/09 folder. Hoped this would be end of issue but it still persists. I reloaded wordpress but still no fix here.
- This reply was modified 5 years, 5 months ago by craigstanfield.
Forum: Fixing WordPress
In reply to: Image Upload Stops at Crunching….I’m having this issue too. As OP pointed out Uploading stops on Crunching, file is correctly uploaded to the server and is not corrupt. I’ve also changed permissions (they where correct at 755 fir directories, 644 for files and owner apache as on all our other servers). In media it says for this file (no title) – Logo. It does not actually link through to anywhere and doesn’t show the usual checkbox to delete it. I’ve also disabled all plugins and switched to a default theme but same issue. other sites on this same box work with no issue. file is a mere 16k and upload limit is 40M. So yes this is identical to the OP issue which I presume remains unresolved. I’m using wp 5.2.3 with php 7.1
I have however discovered something which I hope can point someone towards a solution. In this case our site is hosted on a lightsail LAMP stack (bitnami).
I looked in Firefox dev console on Network mode and found that the async-upload.php file runs twice the first one correctly loads the file and you can see the content bytes in the dev consoles params page and it has a response of 0. Immediately after this is fired it sends another async-upload.php file but this one says {“Form data”:{“attachment_id”:”0″,”fetch”:”3″}} in the params and in the response it says “The link you followed has expired.
Please try again.” this message is not displayed on the page. Timeouts are set as 300 I enabled Imagick on the server and tried again result was the same crunching and double sending async-upload.php- This reply was modified 5 years, 5 months ago by craigstanfield.
Forum: Plugins
In reply to: [AMP] Linked AMP version is invalidcan you confirm AMP version and which mode you are running it in please? i tried the home url with and wiothout /?amp and the page did not notify me of an amp version available or that it was an amp page.
Forum: Plugins
In reply to: [WooCommerce] show category sidebar on single product pagesi added a snippet to functions to determine the actual template being used and once i found this i was able to add the code to show the sidebar.
Forum: Plugins
In reply to: [LiteSpeed Cache] Conflict with CF7 Captcha 3Hi Stanley,
The error is reported in the JSON sent by cf7, appears that recaptcha 3 is returning an erorr of spam. From what i read elsewhere this could be due to the hidden fields but at a loss. this was working until the latest security update from wordpress. I’m away from desk now but will provide the details requested in the morning