Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Issue with Enfold one-page restaurant demo on mobile #595087

    Just as a tip, I found out is also possible to use this as a workaround within your custom javascript (should be placed within a jQuery document ready block):

        var deviceAgent = navigator.userAgent.toLowerCase(),
             agentID = deviceAgent.match(/(windows phone|iemobile)/);
    
        if(agentID) {
            $(".av-parallax-inner").unwrap();
        }  

    Tested on lumia 640, seems to work. It removes the parallax element but keeps the image.

    in reply to: How to hide Content elements in Avia Layout Builder? #476924

    There might be situations where you (or a certain user of your site) need only half of the content builder elements, and the complete content builder with all of the amazing elements is somewhat too overwhelming to a certain group of users. By limiting the amount of options, the mental ‘stress’ on the abundance of options is reduced, thereby improving the usability for a certain group of users. While this is an uncommon situation, it occurs in client practice.

    in reply to: How to hide Content elements in Avia Layout Builder? #476559

    In Addition to Elliots solution, there is an easy way to remove it programmaticaly (thereby really removing a shortcode).

    This example removes the button shortcode:

     function remove_shortcodes() {
    /**
     * Array of shortcodes you want to remove
     * The values of this array should match the shortcode under which the elements are registered
     * Usually, you can find them in your shortcode files under $this->config['shortcode'].
     */
    $shortcodes = array('av_button');
    
    /**
     * Accepts an array of shortcodes and whether to remove these shortcodes (true) or not (false)
     */
    if( class_exists('ShortcodeHelper') ) {
      ShortcodeHelper::allowed_shortcodes($shortcodes, true); 
    }
    }
    add_action('init', 'remove_shortcodes');
    
    

    However, this does not work in all contexts, so make sure to hook the function on init (or later)

    • This reply was modified 8 years, 10 months ago by Make it WorkPress. Reason: Preventing fatal error when Enfold is removed, but the child theme or child code remains active
Viewing 3 posts - 1 through 3 (of 3 total)