Marc_J
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] double taxWe just had the same issue and after a lot of troubleshooting at some point (maybe a plugin update or the browser of some admin reset the dropdown) the country of the shop at WooCommerce → Settings must have been changed. This was the reason for us and correcting the setting helped.
- This reply was modified 3 years, 3 months ago by Marc_J.
To reproduce the error you can use the following combination of plugins:
– LearnPress
– WooCommerce
– Woo Discount RulesThis will happen:
[25-Sep-2020 04:53:57 UTC] PHP Fatal error: Uncaught Error: Call to undefined function wp_get_current_user() in /wp-includes/capabilities.php:668 Stack trace: #0 /wp-content/plugins/learnpress/inc/admin/class-lp-admin.php(838): current_user_can('manage_options') #1 /wp-includes/class-wp-hook.php(287): LP_Admin->get_course_items_of_user_backend(Object(WP_Query)) #2 /wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(Object(WP_Query), Array) #3 /wp-includes/plugin.php(544): WP_Hook->do_action(Array) #4 /wp-includes/class-wp-query.php(1779): do_action_ref_array('pre_get_posts', Array) #5 /wp-includes/class-wp-query.php(3448): WP_Query->get_posts() #6 /wp-includes/post.php(2053): WP_Query->query(Array) #7 /wp-content/plugins/woo-discount-rules/woo-discount-rules.php(35): get_posts(Array) #8 in /wp-includes/capabilities.php on line 668Forum: Plugins
In reply to: [Profile Extra Fields by BestWebSoft] Bug: Field propertiesSo administrators can see all fields if at least one is set to editable and visible? This is a little weird but would explain the behavior.
Forum: Plugins
In reply to: [Advanced Access Manager – Access Governance for WordPress] Hide admin barHi @noelalvarez,
thank you for the link, but I actually tried it according to that article.
After digging into your code the plugin seems to work fine, but the show_admin_bar function won’t work in my install. A quick web search revealed that there may be problems with it.
See https://codex.ww.wp.xz.cn/Function_Reference/show_admin_bar for example: “With newer version of WordPress you may need to use the following which will leave the Toolbar available in the Dashboard but hide it on all front facing pages.
The following additional code (which could replace your use of the show_admin_bar function) works for me now:
if ( ! current_user_can( ‘show_admin_bar’ ) ) {
add_filter( ‘show_admin_bar’, ‘__return_false’, PHP_INT_MAX );
}Best,
MarcForum: Plugins
In reply to: [Easy Table of Contents] Seems not to be compatible with AvadaThat should solve the issue as well. Thank you very much!
Forum: Plugins
In reply to: [Easy Table of Contents] Seems not to be compatible with AvadaSame problem here and after a little digging: For the general functionality the plugin doesn’t need the waypoint library, does it?
Removing the two waypoint functions from front.js and preventing enqueuing the library solved it for me.
Maybe you can consider adding an option to deactivate these features.
Forum: Fixing WordPress
In reply to: second comment textfield “id=hash”: problem on mobile devicesHi there,
I stumbled over the same problem. Did you have any further information? I’m still not able to reproduce this behavior and currently think, it’s based on some plugin.
Best,
MarcForum: Plugins
In reply to: [Variation Swatches for WooCommerce] How can I change the size of the image?Hi @rizaldi160497,
you can add the following CSS property to the code mentioned above:
border-radius: 0;The images will now be displayed as rectangles.
Best,
MarcForum: Plugins
In reply to: [Variation Swatches for WooCommerce] How can I change the size of the image?Hi @rizaldi160497,
maybe your images are smaller and only display at their original size. Can you provide a direct link to your website? Maybe I can provide a CSS code solution.
Best,
Marc- This reply was modified 8 years, 7 months ago by Marc_J.
Forum: Plugins
In reply to: [Easy Google Fonts] Programatically create controls?Hi,
I’m currently doing the following within a theme: Adding a post of type “tt_font_control” and the needed post meta “control_id”, “control_selectors”, “control_description” and “force_styles” whether the plugin is installed or not, so these controls are present and can be used after installing the plugin.
Since the control IDs currently are generated randomly by the plugin between 1 and 100, I simply start with 101.
Best,
MarcForum: Plugins
In reply to: [Variation Swatches for WooCommerce] How can I change the size of the image?Hi @justinvdhoek,
I’m using line-height for the labels:
.variations .tawcvs-swatches .swatch { width: 70px; height: 70px; line-height: 64px; }Best,
MarcForum: Plugins
In reply to: [Variation Swatches for WooCommerce] WC 2.6.14 creates new attributes …Sorry, but the matter was already discussed here: https://ww.wp.xz.cn/support/topic/bug-creating-empty-numbered-attribute-valuescolor-swatches/
Forum: Plugins
In reply to: [Variation Swatches for WooCommerce] Vertical Vs. Horizontal displayIn most cases the CSS of other plugins or your theme interferes with the layout. A direct link to the problematic site would help figuring it out.
Forum: Plugins
In reply to: [Variation Swatches for WooCommerce] Breaks Quote Request ButtonCurrently it’s working. Do you have any plugin related info for us?
Forum: Plugins
In reply to: [Variation Swatches for WooCommerce] enlarge image on hoverThis additional CSS code would produce a funny effect 😉
.variations .tawcvs-swatches .swatch:hover { width: 100px; height: 100px; }