ARWD
Forum Replies Created
-
Forum: Plugins
In reply to: [Dashboard To-Do List] Setting to change font colorHi @someguynamedlou, thanks for the message. We’ll certainly look into adding some styling features into the next update.
I’m glad you like the plugin and find it useful! I would appreciate if you could leave a review letting others know your experience.
Forum: Reviews
In reply to: [Dashboard To-Do List] Simple and Elegant!Thanks for the great 5 star review @douglaskarr! I’m pleased your whole team finds it useful!
Forum: Networking WordPress
In reply to: How to set hreflang linksI just wrote a function and popped it in the functions.php on each site (if you’re using a separate child theme for each):
add_action('wp_head', 'arwd_hreflang_head'); function arwd_hreflang_head(){ global $post; if(is_page()) { $url = $_SERVER['REQUEST_URI']; ?> <link rel="alternate" href="<?= 'https://domain.co.uk'.$url ?>" hreflang="en-gb" /> <link rel="alternate" href="<?= 'https://domain.com'.$url ?>" hreflang="en" /> <?php } }This adds it to the header on every page on the site. My two sites are exact copies of one another so there is always a matching page on the sister site.
Forum: Plugins
In reply to: [Dashboard To-Do List] load problemI haven’t heard anything back, so I’m going to mark this as resolved.
Forum: Plugins
In reply to: [Dashboard To-Do List] load problemHi @fid2, sounds like it could be a code conflict. I suggest deactivating all your plugins (except this one), then test and reactivate one at a time to see if it one of them is causing the issue.
Although unlikely, try switching to the default theme and test. If you also have a caching plugin, try purging the cache.
@neal86 you can use the function above and combine it with the one below to add it to the checkout/cart page:
add_filter( 'woocommerce_cart_item_name', 'just_a_test', 10, 3 ); function just_a_test( $item_name, $cart_item, $cart_item_key ) { $product_id = $cart_item['product_id']; // Display name and date underneath echo $item_name.' <br/>Date goes here'; }Yes, I can see
woocommerce_before_add_to_cart_formin Shop.php, but it doesn’t work because of line 17:
if ($product !== null && 'yes' == get_option('wc_preorders_avaiable_date_single_product')) {I can’t find
wc_preorders_avaiable_date_single_productanywhere else in the plugin files or as a record in the website database, so this function is checking against an option that doesn’t exist. You’ve speltavaiablewrong, but even with the correct spelling I still can’t find another mention of it.Is this a Pro only setting?
My version of the function doesn’t include this check and it works perfectly.
woocommerce_after_shop_loop_item_titlewill show the availability date in the shop loop so the customer can see the date before clicking into the single product. It would be good if you could add options to the settings page to allow us to show/hide the date on the single product page and the shop loop.I needed this too and it wasn’t showing for me either. I looked in the plugin and it should be adding it, but for some reason it’s checking against a setting that isn’t available. I’m guessing it’s only in the Pro version. Anyway you can overwrite this by adding this snippet to your child theme functions.php:
add_action('woocommerce_before_add_to_cart_form', 'show_preorder_date', 12); function show_preorder_date() { global $post,$product; if ($product !== null) { if ('yes' == get_post_meta($post->ID, '_is_pre_order', true) && strtotime(get_post_meta($post->ID, '_pre_order_date', true)) > time()) { $timeFormat = date_i18n(get_option('date_format'), strtotime(get_post_meta($post->ID, '_pre_order_date', true))) ; $string = get_option('wc_preorders_avaiable_date_text'); $text = str_replace('{date_format}', $timeFormat, $string); echo $text; } } }You can also add this hook to display the date in the shop loop:
add_action('woocommerce_after_shop_loop_item_title', 'show_preorder_date', 12);- This reply was modified 4 years, 11 months ago by ARWD.
Forum: Plugins
In reply to: [Shipping Zones by Drawing for WooCommerce] Radius being ignoredAh ok. Yep now it works as it should. Thanks!
Forum: Plugins
In reply to: [Contact Form 7] Issue – Can’t submit any Contact Form 7 formYour submit button is inside
<a>and<span>tags. Remove these because it looks like they are covering the submit button, so you’re actually clicking on these tags rather than the<input>. If you want to make a button with the arrow, you can replace the submit shortcode with a custom button:Replace:
[submit "Submit"]With:
<button id='submit' class='wpcf7-form-control wpcf7-submit'>Submit <i class="fa fa-chevron-right"></i></button>And make sure nothing is wrapping it. Keep it simple.
If that still doesn’t work (which is why I opened this topic), rollback CF7 to 5.3.2.
Forum: Networking WordPress
In reply to: What SSL Certificate Do I Need?@alanfuller Thank you for your advice. We went with adding the domains as aliases in cPanel like you suggested. We then activated the free AutoSSLs and that sorted it.
It annoys me that there is no simple answer out there that says to do this. Hopefully this helps someone else who spent ages searching for a definitive answer.
Forum: Networking WordPress
In reply to: What SSL Certificate Do I Need?The subsite domains will be added as add-on domains to the main account in cPanel. So I will need a multi domain SSL, and the Wildcard SSL won’t work?
Forum: Plugins
In reply to: [My Private Site] Some warningsYou can get rid of the CMB2.php notice by editing that file in the plugin:
Locate line 1544. You need to wrap the switch() function in an isset() function:if(isset($field['type'])) { switch ( $field['type'] ) { /* switch code */ } }Obviously it’s not a long term solution but will until it is permanently fixed.
Forum: Plugins
In reply to: [My Private Site] My Private Site: Some notices and malfunctionFor anyone who wants to stay with this plugin, you can get rid of these notices by editing that file in the plugin:
Locate line 1544. You need to wrap the switch() function in an isset() function:if(isset($field['type'])) { switch ( $field['type'] ) { /* switch code */ } }Obviously it’s not a long term solution but will until it is permanently fixed.
Forum: Plugins
In reply to: [Dashboard To-Do List] Could be great – is notHarsh words, but thank you for the criticism. Please understand that this is a part time project for me as I am too busy with other projects. I do always make time though to keep it updated when new version of WP is released.
Anyway, I appreciate your feedback. I do have plans to add AJAX functionality so you’ll be able to quickly add, edit and delete tasks. Making it collapsible and responsive are also great suggestions so they’ll be added.
Please keep subscribed to this topic/plugin and I will aim to release an improved update soon.