Forum Replies Created
-
AuthorPosts
-
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.
- This reply was modified 8 years, 2 months ago by Make it WorkPress.
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 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
-
AuthorPosts