Forum Replies Created
-
AuthorPosts
-
Try this in your child theme functions file instead…
add_filter( 'avf_google_heading_font', 'avia_add_heading_font'); function avia_add_heading_font($google_fonts) { $google_fonts['Your Font Here'] = 'Your Font:300,400 etc'; return $google_fonts; }
(Obviously change the ‘your font’ text depending on which Google font you need to add)
- This reply was modified 6 years, 6 months ago by Dunc R.
October 9, 2017 at 11:47 am in reply to: Items with zero price or out of stock still showing the buy button #861852Hi Victoria, thanks for the quick reply.
Yes, the code does work in that clicking the ‘Add to Cart’ button opens a pop-up window saying “this product is unavailable, please choose a different combination” but I’m trying to get it to remove the Add to Cart button completely when the product has a price of zero.
Any tips on how I can add a filter in the functions to remove the Cart button and quantity selector, please?
Many thanks
DuncanOctober 8, 2017 at 10:02 pm in reply to: Items with zero price or out of stock still showing the buy button #861679Hi, I’m having a similar issue to Ganubis. The add to cart button is shown even products are out of stock. When I change the theme to TwentySeventeen, the cart button is greyed out for products that are unavailable – which is correct – but when Enfold is activated is doesn’t get greyed out/hidden.
Ideally, I’d like to remove the add to cart and quantity selector when products are out of stock or zero priced.
Enfold team – please can you help modify this function/filter to work with Enfold:
function remove_add_to_cart_on_0 ( $purchasable, $product ){ if( $product->get_price() == 0 ) $purchasable = false; return $purchasable; } add_filter( 'woocommerce_is_purchasable', 'remove_add_to_cart_on_0', 10, 2 );
Many thanks
DuncanHi Nikko,
Thanks for taking a look. I’ve managed to fix the issue. The old jQuery version that you mentioned is actually loaded by the Layer Slider as part of Enfold theme files:
enfold / config-layerslider / LayerSlider / wp / scripts.php (Lines 24 and 121)
// Use Gogole CDN version of jQuery if(get_option('ls_use_custom_jquery', false)) { wp_deregister_script('jquery'); wp_enqueue_script('jquery', '//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js', array(), '1.8.3'); }
I’ve turned off the “Use Google CDN version of jQuery” setting in Layer Slider which has solved the conflict with the other plugins.
Perhaps Enfold should be updated to use a newer CDN version of jQuery in the Layer Slider config files?
Thanks for your help
Duncan- This reply was modified 7 years, 8 months ago by Dunc R.
Hi Nikko,
Details attached. From looking at the Javascipt console, it appears to be an issue with JQuery?Thanks for your help
DuncanJuly 28, 2016 at 10:11 am in reply to: Remove sidebar on Portfolio Item pages only with functions.php #666098Perfect, thanks Ismael; that function has worked!
Please can you log a new feature request…
• A separate ‘default’ sidebar setting for Portfolio items in the main theme options.Thanks again
DuncanJuly 26, 2016 at 10:48 am in reply to: Remove sidebar on Portfolio Item pages only with functions.php #665224Hi Josue,
Thanks. Yes, I understand that, but I need single post sidebars to be on by default and portfolio item sidebars to be off by default.
Is there a filter/action that can be used in the functions file to recognise when a post is a portfolio item and turn the sidebar off?
Best regards
Duncan- This reply was modified 8 years, 4 months ago by Dunc R.
July 25, 2016 at 11:24 pm in reply to: Remove sidebar on Portfolio Item pages only with functions.php #664931Details below. It would be great if a future version of the Enfold theme could have separate dafault options for single posts and portfolio items in the sidebar settings!
- This reply was modified 8 years, 4 months ago by Dunc R.
July 25, 2016 at 11:02 pm in reply to: Remove sidebar on Portfolio Item pages only with functions.php #664904Thanks Josue; I’ve tried that but the sidebar still appears (please see the link below).
Best regards
DuncanOk, thanks Elliott. I presumed it would just be a fairly simple change/addition to the loop to split out the categories and products.
Hi Andy,
Thanks, but I think you’ve misunderstood.
1) The settings at [WooCommerce->Settings->Products->Display->Product Images] changes the product image thumbnail size as well. What I’d like is to keep the product images at 450 x 450px square, but have the category thumbnails a different size, (eg. 450px width x 200px height).
2) [Private link below] What I’m trying to achieve is to separate the categories and products. At the moment they are all together in one loop. Ideally I’d like a heading that says “Categories” with the category thumbnails below, then a dividing line <hr>, then another title saying “Products” followed by the single product thumbnails. (see very crude layout below)
Categories
[__] [__] [__]
—————
Products
[__] [__] [__]
[__] [__] [__]
[__] [__] [__]Thanks
DuncAugust 28, 2015 at 1:21 am in reply to: WooCommerce Product Grid with tags instead if categories? #494582Yeah, I could really do with the ability to show WooCommerce products by custom taxonomy instead of just category as well. Or even better would be the ability to filter by product category and custom taxonomy!
June 3, 2015 at 10:33 pm in reply to: Remove Single Shortcodes Elements – in both 'Post' and 'Page' #454117Hi Yigit, I’d like to know the answer to this as well.
Also, is it possible to remove elements by user role (eg, hide certain elements in the layout builder for Editors, but show them for Admins)
Thanks
DuncMay 5, 2015 at 11:11 am in reply to: Masonry / blog post list with custom post type and custom fields #439631Thanks Josue, I’ll have a go at including the meta key into the shortcode.
Ideally I’d like to create a function which does this, so that future updates of Enfold don’t overwrite the changes to the shortcode. Would that be possible? I’ll have a play and will reply back if I can’t get it work properly.
I know this may come under ‘customisation’ rather then theme support, but I’d really like to learn how to do it myself.
Thanks again for your help!
Duncan———-
UPDATE
———-
Ok, working with the masonry shortcode (masonry_entries.php), I can see that I need to add the meta values to $items (around line 620). Please can you tell me how I can create a function in my child theme which adds the meta values to that variable on line 620?- This reply was modified 9 years, 6 months ago by Dunc R.
Hi,
The Dot Mailer plugin devs are going work on an update. As a temporary fix, I’ve just commented out that jQuery call and it seems to be working fine. Drag and Drop works and the email signups work as well, so it’s all good… for now :)
For anyone else with the same issue, it’s line 83 in the file “dm_signup_form.php”
// wp_enqueue_script(‘pickerUI’, plugins_url(“/js/jquery-ui-1.10.3.custom.min.js”, ( __FILE__)));
Thanks
Dunc- This reply was modified 9 years, 9 months ago by Dunc R. Reason: updated tags
Hi team,
The developer of Gravity Forms has taken a look and advised that it’s an issue with the Dot Mailer plugin:
—-
This is being caused by the dotmailer Signup Form plugin, it is including its own copy of the jQuery UI scripts<script type=’text/javascript’ src=’../wp-content/plugins/dotmailer-sign-up-widget/js/jquery-ui-1.10.3.custom.min.js?ver=4.1.1′></script>
It shouldn’t do this as it goes against WordPress best practices. It should ask WordPress to include its copy, which is what the theme and other plugins are doing. This is resulting in two copies of jQuery UI being included which is causing JavaScript errors resulting in the issue you are seeing.
—-I haven’t heard anything back from Dot Mailer support, but hopefully they can get it fixed. I’ll try and find a workaround in the short term.
I think Dot Mailer are only using jquery-ui in the admin panel, so perhaps commenting out the jquery-ui call in the Dot Mailer plugin files will solve the drag and drop issue without breaking the email signup functionality?
This reply has been marked as private.This reply has been marked as private.UPDATE:
It’s ok, I’ve found the answer here: https://kriesi.at/support/topic/priviousnext-links-in-single-portfolio-items-dissapears/#post-237351
Cheers
Dunc3.0.4 will be along shortly…
http://themeforest.net/item/enfold-responsive-multipurpose-theme/4519990/comments#comment_8414808
Another update with a patch to fix the buttons is in the queue with Envato and should be released soon:
http://themeforest.net/item/enfold-responsive-multipurpose-theme/4519990/comments#comment_8414808
The latest version has now been released (Enfold v3.0.3):
http://themeforest.net/item/enfold-responsive-multipurpose-theme/4519990
UPDATE:
The patched version of Enfold (v3.0.3) has now been released on ThemeForest. This should fix WP 4.0.1 related compatibility issues…
http://themeforest.net/item/enfold-responsive-multipurpose-theme/4519990
You can roll back by downloading WordPress 4.0 from here: https://wordpress.org/download/release-archive/
And following these instructions:
—-
But make sure you update WordPress again as soon as Kriesi and team release a patch for Enfold.- This reply was modified 10 years ago by Dunc R.
Yes, I’ve rolled back to version 4.0 and it works fine again. You can download it from here:
https://wordpress.org/download/release-archive/
Apparently Kriesi and team are on the case and hope to have an urgent update for the theme in the next few hours once they’ve solved the problem:
http://themeforest.net/item/enfold-responsive-multipurpose-theme/4519990/comments#comment_8413780
If you’re getting complaints, the quickest and best thing to do is roll back to version WordPress 4.0 until Kriesi and team release a compatible version of Enfold.
You can download version 4.0 from the WP release archive: https://wordpress.org/download/release-archive/
-
AuthorPosts