arafail
Forum Replies Created
-
Forum: Plugins
In reply to: [AMP] AMP-AD issues with Google AdsThank you for the answer.
We will try Ad Inserter.Forum: Plugins
In reply to: [AMP] New schema code by AMPHello!
Thank you for the code it works perfectly.Our schema is custom added, without any plugins, however here are a few observations:
1: You plugin added a “blogposting” schema to a blog listing page – the page in question is a list of the most recent articles published on that blog.
2: The plugin took the title of the first post in that listing and used it to populate it’s schema, which is not really ok.
3: Since there is no featured image on the category the plugin added an image from the plugin’s folder, but the schema.org tester did not validate that image.Thanks again!
Forum: Plugins
In reply to: [AMP] Remove unwanted javascripts optionHello and sorry for the delayed response. This has become less important at the moment.
We will come back to this in the future. Thanks!Forum: Plugins
In reply to: [AMP] Ad issue, on mobileWe can close this, Thanks!
Forum: Plugins
In reply to: [AMP] Ad issue, on mobileHello!
Apologies for the late response.
We have managed to track down the culprit and fix the CLS issue, and I am happy to report it had nothing to do with the AMP plugin.
There was an issue with the site header, which loaded 0.3s later than the body and had no fixed height. The entire issue lasted so little that the human eye did not see it, however, google did.
Thank you very much for your support!Forum: Plugins
In reply to: [AMP] Ad issue, on mobileThank you for your reply and sorry for the delay.
There was a holiday here.
I will look into it and get back to you.Forum: Plugins
In reply to: [AMP] Ad issue, on mobileHello!
Did you get a chance to look at this further?Forum: Plugins
In reply to: [AMP] Ad issue, on mobileHere’s another screenshot were I have highlighted the same code block, on 2 different instances: the left one is with the amp plugin inactive, the right one is the live website.
As you can see on the right, the ad block has been changed to have width=”100vw” and height=”320″. There is also some inline css: style=”width: 375px; height: 300px; margin-left: -14px;”.
Thanks!
Forum: Plugins
In reply to: [AMP] Ad issue, on mobileThe issue I am struggling with is CLS (Cumulative Layout Shift).
More to the point, regarding this ad blocks, the problems seems to be that they are served with a different size than they should. The hardcoded size is 300×250 and as you can see (it is also visible in your video), that size gets changed. I have narrowed it down to the AMP plugin as I have disabled it on a test environment and the code did not change anymore.

Thanks!Forum: Plugins
In reply to: [AMP] Ad issue, on mobileThanks for the reply!
All our ads are hardcoded. You can a sample code below.
They are responsive ads, with rules for various resolution.<div class="block--ad ad-1"> <amp-ad class="digcit-ad" media="(min-width: 1744px)" type="adsense" layout="fixed" width="970" height="90" data-ad-slot="5728213132" data-ad-client="ca-pub-6863936848900665"></amp-ad> <amp-ad class="digcit-ad" media="(min-width: 1168px) and (max-width: 1743px)" type="adsense" layout="fixed" width="728" height="90" data-ad-slot="5728213132" data-ad-client="ca-pub-6863936848900665"></amp-ad> <amp-ad class="digcit-ad" media="(min-width: 992px) and (max-width: 1167px)" type="adsense" layout="fixed" width="580" height="400" data-ad-slot="5728213132" data-ad-client="ca-pub-6863936848900665"></amp-ad> <amp-ad class="digcit-ad" media="(max-width: 991.98px)" type="adsense" layout="fixed" width="300" height="250" data-ad-slot="5728213132" data-ad-client="ca-pub-6863936848900665"></amp-ad> </div>Forum: Plugins
In reply to: [AMP] Width and height for imagesThank you!
Forum: Plugins
In reply to: [AMP] Width and height for imagesHere is a wild idea: can’t the width and height properties be added to that particular svg?
Forum: Plugins
In reply to: [AMP] Images in webp format with imagify.ioI am sorry for not responding.
It is indeed ok.
We just encountered many other issues with the project.Forum: Plugins
In reply to: [AMP] Width and height for imagesThanks for the answer.
So basically, we just for for them to solve this and hope for the best?Forum: Developing with WordPress
In reply to: Issue with saving custom taxonomesThanks for reply @howdy_mcgee
1: I did not use the Health check, However I did disable all plugins and the issue was still there. The Custom taxonomy is included via my theme, and it did work until some point. Also, there is another identical custom taxonomy, which I included at the same time that still works.
2: There is no error in the error log.
3: Please see the code below<?php // Register Custom Taxonomy function custom_sponsors() { $labels = array( 'name' => _x( 'Sponsors', 'Taxonomy General Name', 'text_domain' ), 'singular_name' => _x( 'Sponsor', 'Taxonomy Singular Name', 'text_domain' ), 'menu_name' => __( 'Sponsors', 'text_domain' ), 'all_items' => __( 'All Sponsors', 'text_domain' ), 'parent_item' => __( 'Parent', 'text_domain' ), 'parent_item_colon' => __( 'Item:', 'text_domain' ), 'new_item_name' => __( 'New Sponsor', 'text_domain' ), 'add_new_item' => __( 'Add New Sponsor', 'text_domain' ), 'edit_item' => __( 'Edit Sponsor', 'text_domain' ), 'update_item' => __( 'Update Sponsor', 'text_domain' ), 'separate_items_with_commas' => __( 'Sepprate by comma', 'text_domain' ), 'search_items' => __( 'Search', 'text_domain' ), 'add_or_remove_items' => __( 'Add or delete', 'text_domain' ), 'choose_from_most_used' => __( 'Add most used', 'text_domain' ), 'not_found' => __( 'Not Found', 'text_domain' ), ); $rewrite = array( 'slug' => 'sponsor', 'with_front' => true, 'hierarchical' => true, ); $args = array( 'labels' => $labels, 'hierarchical' => true, 'public' => true, 'show_ui' => true, 'show_in_rest' => true, 'show_admin_column' => true, 'show_in_nav_menus' => true, 'show_tagcloud' => true, 'query_var' => 'sponsor', 'rewrite' => $rewrite, ); register_taxonomy( 'sponsor', array( 'post' ), $args ); } // Hook into the 'init' action add_action( 'init', 'custom_sponsors', 0 ); ?>
