Forum Replies Created

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • in reply to: Enfold Shortcode on AutomateWoo Emails #1259289

    Hi,

    Screenshot-2020-11-09-21-25-54
    This is AutomateWoo email template editor, where Enfold shortcode is also available.

    Screenshot-2020-11-09-21-26-18
    This is me adding Enfold’s button to the top of the template.

    Screenshot-2020-11-09-21-26-34
    This is the email preview, which doesn’t show a button, instead the shortcode.

    Thanks!

    in reply to: social buttons broken with WP 5.3.1 update #1165808

    This works, thanks @jvingerhoets for sharing!

    I hope you’re working on this Enfold, invisible social icons are not nice..

    in reply to: Move mobile burger menu to the left side #1115098

    Hi,

    Sorry, as you can see, it’s very different from the screenshot I sent you. The burger menu should be the first icon from the left side, followed by the logo, and the other icons is on the right side.

    Thanks in advance.

    Hi Rikard,

    Thanks for the reply. We’re currently using 2 CPU, 2 GB setup for WordPress, and a separated server (1 CPU, 2GB) handling MySQL. Our current config is as follows:

    define( 'WP_MEMORY_LIMIT', '1024M' );
    define( 'WP_MAX_MEMORY_LIMIT', '2047M' );

    I have tried to increase the WP_MEMORY_LIMIT to 2047M, and still the same error. When I look at the error log, I get a new error saying:

    PHP Fatal error: Unknown: Cannot use output buffering in output buffering display handlers in Unknown on line 0

    Not sure what that means?

    Thanks.

    I’m not asking for customization or modification of the theme, I’m doing the modification myself. What I’m asking is how to hook on that function of yours (which I already point out at my previous post) to another element, in this case, a button.

    Thanks.

    Guys, it’s been 3 days now, no one? Really? I’m told you’re the best, that’s why I bought this theme for the support. So far my questions always got a “please hire a freelance” standard reply. Come on!

    For this question, surely you’ll have the answer, since I’ve checked with your files, and the loading sequence is in fact from Enfold, I just can’t get it to work with my custom button since I don’t know where to hook it at.

    This is from Enfold’s woocommerce-mod.js

    function product_add_to_cart_click()
    {
    	var jbody 		= jQuery('body'),
    		catalogue 	= jQuery('.av-catalogue-item'),
    		loader		= false;
    		
    	if(catalogue.length) loader	= jQuery.avia_utilities.loading(); 
    
    	jbody.on('click', '.add_to_cart_button', function(e)
    	{
    		var button = jQuery(this);
    		button.parents('.product:eq(0)').addClass('adding-to-cart-loading').removeClass('added-to-cart-check');
    		
    		if(button.is('.av-catalogue-item'))
    		{
    			loader.show();
    		}
    		
    		var $html = jQuery('html');
    		if( ! $html.hasClass( 'html_visible_cart' ) )
    		{
    			$html.addClass('html_visible_cart');
    		}
    		
    		//e.preventDefault();
    	});
    	
    	jbody.on( 'added_to_cart', function()
    	{
    		jQuery('.adding-to-cart-loading').removeClass('adding-to-cart-loading').addClass('added-to-cart-check');
    		
    		if(loader !== false)
    		{
    			loader.hide();
    		}
    	});
    	
    }

    I have tried adding my button class into that function, but still no loading sequence.

    Any help is appreciated.

    Thanks.

    in reply to: Add custom social icons not working #1015400

    Hi, please disregard the above issues, as I’ve manage to solve them. One last request, can you help me to switch my social icons position in the burger menu? (screenshot attached)

    And is there any way for me to force reload style.css? I’m currently in the development stage, and will be making a lot of css changes. Even after I disable caching, it still won’t reload style.css fast enough. I used to do it via quick css, but after a while, it’s easier to manage via a separate file.

    Thanks.

    in reply to: Add custom social icons not working #1015367

    Hi, I manage to get it to work, but I have new issue now. I’m trying to put Whatsapp link there, so it automatically open a chat window directly to my Whatsapp account. The problem is, the link should be different for desktop or mobile. I’ve found this code, but not sure where to put it:

    <?php
    $iphone = strpos($_SERVER['HTTP_USER_AGENT'],"iPhone");
    $android = strpos($_SERVER['HTTP_USER_AGENT'],"Android");
    $palmpre = strpos($_SERVER['HTTP_USER_AGENT'],"webOS");
    $berry = strpos($_SERVER['HTTP_USER_AGENT'],"BlackBerry");
    $ipod = strpos($_SERVER['HTTP_USER_AGENT'],"iPod");
    
    // check if is a mobile
    if ($iphone || $android || $palmpre || $ipod || $berry == true)
    {
     header('Location: https://api.whatsapp.com/send?phone=YOURNUMBER&text=YOURTEXT');
     //OR
     echo "<script>window.location='https://api.whatsapp.com/send?phone=YOURNUMBER&text=YOURTEXT'</script>";
    }
    
    // all others
    else {
     header('Location: https://web.whatsapp.com/send?phone=YOURNUMBER&text=YOURTEXT');
     //OR
     echo "<script>window.location='https://web.whatsapp.com/send?phone=YOURNUMBER&text=YOURTEXT'</script>";
    }
    ?>

    Basically, for mobile it should use api.whatsapp.com, but for desktop, it should use web.whatsapp.com, can you help?

    Thanks.

    in reply to: Add custom social icons not working #1015290

    One more thing, I see the custom social icon links won’t be opened to a new window, like the “default” social icons, is there any way I can make the custom ones to open in a new tab (target = _blank)?

    Thanks.

    in reply to: Search icon, logo and cart hover for mobile #1014971

    Hi,

    Thanks for the help.

    I finally use this solution to disable cart mouseover / hover event on mobile device. Might be useful to others who wants to preview their mini carts on mobile. Modify the end of “woocommerce-mod.js” file (around line 310) which is located in “config-woocommerce” folder.

    //small function that improves shoping cart hover behaviour in the menu
    function cart_dropdown_improvement()
    {
    	var dropdown = jQuery('.cart_dropdown'), subelement = dropdown.find('.dropdown_widget').css({display:'none', opacity:0});
    	var windowWidth = window.innerWidth;
    	
    	if (windowWidth > 767){
      	dropdown.hover(
      	function(){ subelement.css({display:'block'}).stop().animate({opacity:1}); },
      	function(){ subelement.stop().animate({opacity:0}, function(){ subelement.css({display:'none'}); }); }
      	);
      } else {
      	var clicked = 0;
      	dropdown.click(
      	function(){
      		if(clicked === 0){
      			jQuery('.cart_dropdown_link').attr('href', 'javascript:void(0)');
      			subelement.css({display:'block'}).stop().animate({opacity:1});
      			clicked = 1;
      		} else if(clicked === 1){
      			jQuery('.cart_dropdown_link').attr('href', 'javascript:void(0)');
      			subelement.stop().animate({opacity:0}, function(){ subelement.css({display:'none'}); });
      			clicked = 0;
      		}
      	});
      }
    }

    Might be a good idea to integrate this to Enfold too? As many of us expect our customers to open our site from mobile device.

    Thanks.

    in reply to: Search icon, logo and cart hover for mobile #1014393

    Hi,

    Yes, regarding point 1, I’m able to find a solution for it.

    Regarding point 2, I’ve added 2 custom links for the social bookmarks to the burger menu, can you tell me how to display the social icons side by side (like in the desktop version), and what’s the “Navigation Label” value for Facebook and Instagram icon? I think they’re entypo font?

    Regarding point 3, switching onmouseover to onclick on mobile, can you at least point me in the right direction? I’ve done some searching, but can’t find a decent solution for this.

    Thanks.

Viewing 11 posts - 1 through 11 (of 11 total)