popeating
Forum Replies Created
-
Forum: Plugins
In reply to: [Post expire date Sidebar] Not working for other post typesHello Fernando, sorry for the late reply, we worked out on the plugin and relseased a new version that would support pages and custom post types.
Be careful on pages, since they can sometimes be present in menus and this can lead to 404 once expiredForum: Plugins
In reply to: [Post expire date Sidebar] What a shame, a lot of warningSorry for the late reply, i just updated the plugin, so the warnings are gone
Forum: Plugins
In reply to: [WooCommerce] Additional fee not stored in orderI was coding a plugin but i did not realize (since i did not read the first line of documentation about it!) that
woocommerce_cart_calculate_fees
is called everytime (at least everytime the fee is needed) and its recent value is not persisted, so when on checkout page, it was called and all the calculation (made on values from checkout page itself) was correct; but once the order is submitted it was called again, but this time there were no values to calculate the fee, so it was returned at 0.
I solved it storing the most recent value of additional fee calculated by chockout page in session and reading it from the session when placing the order.Forum: Plugins
In reply to: [WooCommerce] coupon tab missing under woocommerceI come here because i was having same problem, but the fact is that i also dont have Marketing menu in my WordPress Admin!
i double checked my functions.php to check if it was removed by some function but nothing come out
my role is admin (also checked with user role profile if the permission are available to coupons and they are)just in case, which is the path of coupon admin page? to check if i can reach directly
any suggestions?
Forum: Plugins
In reply to: [Post expire date Sidebar] save button and statusHello,
the functionality of the toggle button its just a enable/disable toggle, if you set it to “ON” the post will expire at a certain date (if you don’t set a date, the date is the default one, usually the date/time of post creation or opening).
All the information about expiration (date, ON/OFF) are stored once the post is saved/published, a for every information you put in a post.
Due to this, there is no order to follow when adding the expiration, you can set the expiration and then toggle it, set the toggle then the expiration and so on, nothing would happen until post is saved or published.
In case (of a newly created post) you set the toggle to ON and you publish without setting the date, the post is born “expired” so it is “unpublished” the first time someone visit your site; in any case the post isn’t permanently deleted so you can recover it, change the date of expiration and publish it againi hope it is more clear now!
Forum: Plugins
In reply to: [AMP] Carousel/lightbox and youtubeStill getting the error, probably my site its a bit to complex to be handled by plugins in a standard way, it happened it before with other plugins.
Since my posts got the embedded videos in<figure>way (and since all my contributors and the previously published content follow always a quiete rigid scheme) i solved disabling the youtube class and creating a figure sanitizer that convert it to a amp-youtube.
i know this is not the best approach and not the best way to handle it, but the site is quiete big with thousands of page views daily and some contributors that follow our rules (i dont want to give them new rules once they learned them!) this was the most fast approach in short terms. anyway we are still working on a new template and new way to save posts so we can revert to standard plugins as soon as possible!
thank you for your support!Forum: Plugins
In reply to: [AMP] Carousel/lightbox and youtubei don’t know… i probably will try later, in the meantime i discovered the following:
this page:
https://www.popeating.it/ricette/le-ricette-degli-chef/bigne-la-ricetta-del-pasticcere-massimo-de-grazia/amp/
is without gallery and it shows the video, but as an iframe!this other page
https://www.popeating.it/magazine/il-lab-2019-di-mauro-uliassi-il-primo-lab-a-tre-stelle-michelin/amp/
got galleries and shows the video as a text linein both pages (not amp version) the video markup is the following (made same way with block editor and youtube embed block)
<figure class="wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"> <div class="wp-block-embed__wrapper"> <span class="embed-youtube" style="text-align:center; display: block;"><iframe class="youtube-player" type="text/html" src="https://www.youtube.com/embed/JA_HMwPk8Cw?version=3&rel=1&fs=1&autohide=2&showsearch=0&showinfo=1&iv_load_policy=1&wmode=transparent&enablejsapi=1" allowfullscreen="true" style="border: 0px; width: 847px; height: 476.404px;" id="widget2"></iframe></span> </div> </figure>im very confused
at the moment i disabled the the AMP_YouTube_Embed_Handler and im trying to write afiguretag sanitizer to convert it toamp-youtubeForum: Plugins
In reply to: [Stackable - Page Builder Gutenberg Blocks] Video popup does not open videoSorry for adding more info, i guess i find the plugin that blocked the popup; as suspected it was something that have to do with js, i was using a plugin called
WP Deferred Javascripts that deferred js loading with labjs of scripts loaded by wp_enqueue_script()
if i disable the plugin the stackable video popup works! so i re-enabled the plugin and added to the list of javascript files to not defer the following file:
https://www.popeating.it/wp-content/plugins/stackable-ultimate-gutenberg-blocks/dist/blocks.frontend.build.min.jsHope this can help other people too!
Forum: Plugins
In reply to: [Stackable - Page Builder Gutenberg Blocks] Video popup does not open videoThank you for your reply, im embedding a youtube video and nothing else in the page (im still testing it out), i was thinking about some js not intercepting the click, but the console show no errors so its a bit hard to debug
i published a test page at this address
https://www.popeating.it/magazine/test/im using a lot of js (i already have in my site a js related to video for some responsive function that i tried to disable but nothing happened) and i guess its something about js that make things not working
Thank you
Forum: Plugins
In reply to: [AMP] Youtube videos not showingi solved mine in a trivial way,
first i try to debug the class-amp-youtube-embed.php class
but it all seems correct (it creates the right amp code but did not put inside the content for no apparent reason)
so i decided to go for the hard way
in class-amp-post-template.php
i commented out the youtube filter (around line 235 ->'AMP_YouTube_Embed_Handler' => array())
and i set the ‘add_placeholder’ on iframe_sanitizer (line 253) to false;this way it insert the youtube video and the page is parsed correctly by google
also i modified the class-amp-gallery-embed.php
on line 136 fromimplode( 'PHP_EOL', $images )toimplode( '', $images )
this solved me some issues about gallery with empty images;
this plugin is a great start as a way to implement AMP in custom ways
(i added ads, social share, analytics for views and events, customized template and more)Forum: Plugins
In reply to: [WP Deferred JavaScripts] Bad Bad Bad Bad Bad Bad Plugin !!guess it is… sorry ive bothered you about your plugin!
that was the only thing i did… so i dont know what else can be… i will investegate with my staff, maybe someone touched itForum: Plugins
In reply to: [WP Deferred JavaScripts] Bad Bad Bad Bad Bad Bad Plugin !!ok, my last discovery is:
if i add dependencies in wp_register_script (for example array( ‘jquery’ )) it is not loaded, if i do not add it, the script is loaded
so my conclusion is that somehow the “jquery” reference have been deletedForum: Plugins
In reply to: [WP Deferred JavaScripts] Bad Bad Bad Bad Bad Bad Plugin !!I understand that, so i dont really what went wrong
seems it only loads script called without the wp_register_script() but i can be wrongForum: Plugins
In reply to: [WP Deferred JavaScripts] Bad Bad Bad Bad Bad Bad Plugin !!please, do not reply trying to fix these things… im having big issues since i used your plugin with ALL the javascript on my site…
no javascript are loaded… if you have any idea on how to debug it would be helpful… otherwise im not asking more…Forum: Plugins
In reply to: [WP Deferred JavaScripts] Bad Bad Bad Bad Bad Bad Plugin !!yes to all…
i can modify template and scripts (and i see it), my theme got wp_head() and wp_footer()it seems it just ignore the addition of js
just to give you another detail im on https (if that count… but i dont think)
it loads the js from jetpack, but even if i add new plugins or if i try to load some js from function.php it doen not work (but it works with css)
i just added this in function.phpfunction empty_scripts() { wp_register_script('empty_script', plugins_url('empty.js', __FILE__), array('jquery'),'1.1', false); wp_enqueue_script('empty_script'); } add_action( 'wp_enqueue_scripts', 'empty_script' ); ?>it do not add it! (if i echo the script path it is correct)
it calls the wp_enqueue_script() (i added a debug string in the function);
but do not put the script in head