daymobrew
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Advanced Image-Text BlockIf you use the standard Image block and set the alignment (left, center, right) and then add a Paragraph block after it, this might work.
Here is what it looks like in the Dashboard:
(The text does wrap under the image on the front end).If you set an “Additional CSS class” for the image and another one for the Paragraph block you can then set the width and padding and margin in CSS.
Forum: Fixing WordPress
In reply to: Lost Image Caption after CroppingI tried to crop an image on a local install but it just didn’t work.
I was able to rotate the image and the alt, caption and description stuff was not deleted.Can you try this with the Twenty Nineteen theme, just in case the theme is causing an issue (though I doubt that it is).
Could you make a screencast of this happening?
I think that the line
if (document.referrer.match(/facebook/)) {
is probably not working.
I see that links on Facebook have ‘?fbclid=…..’ added to them. We can use that.Maybe you could change the document.referrer.match line to:
if (-1 != document.location.search.indexOf("fbclid")) {So, the new code will be:
<ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-XXXXXXXXXXXXXXX" data-ad-slot="4357587803" data-ad-format="auto" data-full-width-responsive="true"></ins> <script type="text/javascript"> if (document.referrer.match(/facebook/)) { // Show the ins-block document.getElementsByClassName('adsbygoogle')[0].style.display = 'inline-block'; // Load adsense-javascript using var script = document.createElement('script'); script.src = "//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"; // Note: different url due to async script.async = true; // Not necessary, but speeds up loading your page var firstScript = document.getElementsByTagName('script')[0]; firstScript.parentNode.insertBefore(script, firstScript); } </script>Please tell us it if works (and mark the topic as Resolved if it does).
Please ask this question on the Twenty Eleven theme forum.
Please include a link to your website.
I also suggest that you try use Twenty Nineteen theme. If the iframe works then it will tell you that the problem is with the Twenty Eleven theme. If it does not work then the problem might be in WordPress or Gutenburg.
Forum: Fixing WordPress
In reply to: Download Monitor PDFs, Search Plug In?I looked at the Download Monitor Knowledge Base but there was not any help about search.
When you search using the built in search feature (e.g. add the Search widget to a sidebar) does it find the PDFs?
If it does find them then you might be able to change how they look but I think that this will require some PHP programming to read the tags that you entered in Download Monitor.
If it does not find them then I do not know the answer – maybe you can ask Download Monitor support peopleThese comments have the ‘comment_parent’ column in the database set to a comment ID. It needs to be set to zero.
I don’t know of a way to change this in the admin. I think that you will have to change it via phpMyAdmin:
– In the Dashboard edit the comment to find the comment ID (it will be in the url e.g. http://localhost/wp-admin/comment.php?action=editcomment&c=3). Don’t change anything.
– In phpMyAdmin, go to the wp_comments table and search for comment_ID = 3.
– Edit this database entry to change comment_parent from a number to 0.Maybe this is an idea for a small plugin π
I tried with Twenty Nineteen in a Live Preview and the playlist url page entry content area is empty.
- This reply was modified 7 years ago by daymobrew.
I added a new function to includes/wcal_data_tracking_message.php to remove the GDPR message from the WooCommerce required field error message.
https://gist.github.com/damiencarbery/0d94c92f315309bbef740911b68328a6
— includes/wcal_data_tracking_message.orig.php 2018-11-01 13:18:12.000000000 +0000
+++ includes/wcal_data_tracking_message.php 2019-03-26 12:01:14.853387900 +0000
@@ -24,6 +24,9 @@
// Shop Page notice
add_action( ‘woocommerce_before_shop_loop’, array( &$this, ‘wcal_add_logged_msg’ ), 10 );
//add_action( ‘woocommerce_after_shop_loop_item’, array( &$this, ‘wcal_add_logged_msg’ ), 10 );
+
+ // Checkout page required field filter
+ add_action( ‘woocommerce_checkout_required_field_notice’, array( &$this, ‘wcal_remove_gdpr_msg’ ), 10, 2 );
}/**
@@ -68,6 +71,29 @@
}
}
}
+
+ /**
+ * Remove the extra Billing_email text from the required field error message.
+ * Called on Checkout page
+ *
+ * @hook woocommerce_checkout_required_field_notice
+ *
+ * @since 5.2.2
+ */
+ static function wcal_remove_gdpr_msg( $message, $field_label ) {
+ if ( ! is_user_logged_in() ) {
+ // check if any message is present in the settings
+ $guest_msg = get_option( ‘wcal_guest_cart_capture_msg’ );
+
+ if ( isset( $guest_msg ) && ” != $guest_msg ) {
+ $guest_msg = esc_html( “<br><small>$guest_msg</small>” );
+ if ( false !== strpos( $message, $guest_msg ) ) {
+ $message = str_replace( $guest_msg, ”, $message );
+ }
+ }
+ }
+ return $message;
+ }} // end of class
$Wcal_Tracking_msg = new Wcal_Tracking_msg();Forum: Plugins
In reply to: [jQuery T(-) Countdown Widget] Not compatibleIt isn’t broken so it doesn’t need to be updated.
You could change
βThis do an empty output on job working. This can help in some situations or can break the working. You must test it.β”
to:
“Disable output during job operation. This may help prevent 5 minutes of inactivity on Fast-CGI, CGI, PHP-FPM environments.”In Settings/Logs there is a tiny typo:
“Debug log has much more informations than normal logs”
“informations” should be “information” (remove the ‘s’).Yes, question answered. Thanks.
Is your site in debug mode? (WP_DEBUG set to true)
If so, maybe display_errors() is not disabled and therefore the warnings are shown in the html.
Try:@ini_set('display_errors', 0);I generally run all my sites with debug mode enabled when I access them from my IP address – see https://www.damiencarbery.com/2017/01/debugging-with-wordpress-and-being-secure/
3.4.1 is out with a fix.
Forum: Plugins
In reply to: [Icon Widget] PHP Notice for bg, padding and radiusBrilliant. Closing this.