andresjacobowitz
Forum Replies Created
-
Forum: Plugins
In reply to: [Click to Chat - HoliThemes] Error with Pre-Filled MessageThank you, i did not think of checking polylang, yes it was a string that had not been updated in the database. Thanks again.
Forum: Plugins
In reply to: [Click to Chat - HoliThemes] Error with Pre-Filled MessagePD. No CDN cache, incognito shows same result the old message, console shows no issues
Forum: Plugins
In reply to: [Click to Chat - HoliThemes] Error with Pre-Filled MessageThe changes seem to save when changed, but the hover text never worked I wanted it to say Whatsapp, not Whatsapp us, but the changes did not take place, so I just disabled it. The problem is the pre filled message, I miss read the explanation, thought it was an auto response, so the text reads as “we’ll get back to you as soon as possible” message. I deleted the object cache, the front end cache, even used an option that is not recommended to be used oftenly by litespeed cache which is called empty entire cache, it tends to cause problems sometimes because it is quite harsh and nothing seems to change the old pre filled message to the new.
If you are working with a child theme, which I strongly suggest you do, enque a custom js file on the functions.php file of your child theme with this function:
function my_theme_scripts() { wp_enqueue_script( 'my-script-name', get_template_directory_uri() . '/js/my-script-name', array( 'jquery' ), '1.0.0', true ); } add_action( 'wp_enqueue_scripts', 'my_theme_scripts' ); Example: function my_theme_scripts() { wp_enqueue_script( 'custom.js', get_template_directory_uri() . '/custom.js', array( 'jquery' ), '1.0.0', true ); } add_action( 'wp_enqueue_scripts', 'my_theme_scripts' );After or before you add this script to functions.php create the custom.js file, the order really doesn’t matter, also if you’re not using a folder for the js, delete the /js from the file name.
You only have to change the my-script-name, it appears twice in the function, to the actual file name with the extension e.g. custom.js… then open the custom.js file and add the jQuery function from this thread there.
If you don’t have a child theme, and you add a js file to your regular theme or parent theme, when you update it you will lose the changes. You can google if your current theme has already a child theme that you can just download, upload it and activate it in that case. Otherwise you can create one in very few steps, keep in mind you will have the child theme active but the parent will run in the background so do not delete it.
Here’s a guide on creating your own child theme: https://developer.ww.wp.xz.cn/themes/advanced-topics/child-themes/Though I’m sure if you’re using a popular theme you’ll be able to download one easily.
- This reply was modified 3 years, 1 month ago by andresjacobowitz.
- This reply was modified 3 years, 1 month ago by andresjacobowitz.
- This reply was modified 3 years, 1 month ago by andresjacobowitz.
Forum: Plugins
In reply to: [WooCommerce] Trying to create a Subscription product, easiest way possibleHi, thanks for the reply, can you tell me one thing, if I want user registration, does this plugin include that? Or do I need to install WP Forms or something similar to it?
Thanks again
Forum: Developing with WordPress
In reply to: Subscriptions Issue with WoocommerceYeah that’s what I’m afraid of, I don’t think it’s possible without wp forms and woocommerce subscriptions, I was just really trying to figure out if I’m overlooking a simpler way, but what if a customer wants to manage their subscription… They would need a user in the system, I was thinking of a non-refundable, non-cancelable yearly payment… but that doesn’t seem very attractive to anyone.
Thanks I got it done using:
jQuery( document ).ajaxComplete(function() { jQuery("p.wfs-pricing-option-label").replaceWith("<h6 class='wfs-addon-category-title'>Size</h6>"); });Its resolved.
Hi,
No its not, I forgot that I had made a change in fact in the PHP, to change the text of “Select Price Option” to “Size” since jQuery wasn’t doing it, so I deleted and reinstalled the plugin and it was working fine but for some reason I couldn’t get the replaceWith function to work. Yesterday someone in StackOverFlow pointed out that the plugin works with Ajax and I should include it in the js script instead of the document.ready function as so:
jQuery( document ).ajaxComplete(function() { jQuery("p.wfs-pricing-option-label").replaceWith("<h6 class='wfs-addon-category-title'>Size</h6>"); });and it worked. In the end I was finally able to switch out that text.
Thanks.
Thank you very much, that did it.
Thank you Kharis @kharisblank , it worked great, I searched but never found that thread or any other answer. I appreciate it a lot. Thanks again.