How to fix Avada themes WP Memory Limit using Godaddy cpanel.

If you encountered the same error just like the image above, just follow this instructions.
Open your wp-config.php in cpanel and add this code.
define( 'WP_MEMORY_LIMIT', '128M' );
jQuery( '.nav-primary .menu' ).children().each( function( index ){ jQuery( this ).children().not( 'ul' ).css({ 'float': 'left', 'padding-left': '0', 'padding-right': '0' }); }); jQuery( '.nav-primary .menu' ).css({ 'float': 'left' }); setTimeout( function(){ var wrap_width = jQuery( '.nav-primary .wrap' ).width(); var menu_width = jQuery( '.nav-primary .menu' ).width(); var remainder_width = parseInt( wrap_width ) – parseInt( menu_width ); var count_child…
How to Zoom in effects in hover? Copy the HTML / CSS structure and paste it into your editor. Example: HTML <a class="zoom-in-hover" href="#"> <span class="group"> <img src="https://www.anthonypagaycarbon.com/wp-content/plugins/wordpress-popular-posts/no_thumb.jpg" alt="Zoom in effects in hover" /> </span> </a> CSS .zoom-in-hover { overflow: hidden; display: inline-block; text-align: center; } .zoom-in-hover .group { -webkit-transition: all 0.3s ease-in-out; -moz-transition: all…
How to get current post/page/custom post type post data (ID, Post Name, Post Title, Etc.) in init action? If you have something to get in your current page and don’t know how to get the current post ID, post name, post type, post content, and many more, the codes below is the solution. Using init…
jQuery('.wdes-popup-title').click(function(){ jQuery(jQuery(this).attr('content-id') + ' iframe' ).attr('src', id[jQuery(this).attr('content-id').replace('#','')] ); }); var id = {}; jQuery('.wdes-popup-close').click(function(){ console.log(jQuery(this).closest('.wdes-popup-main').attr('id')); if( ! id[jQuery(this).closest('.wdes-popup-main').attr('id')] ){ id[jQuery(this).closest('.wdes-popup-main').attr('id')] = jQuery('#' + jQuery(this).closest('.wdes-popup-main').attr('id') + ' iframe' ).attr('src'); } jQuery('#' + jQuery(this).closest('.wdes-popup-main').attr('id') + ' iframe' ).attr('src', ''); });
How to add, remove, replace a classes in image using the_post_thumbnail()? Let’s say we have this classes in image object. <img class="attachment-to-be-replace size-to-be-replace wp-post-image" src="https://www.anthonypagaycarbon.com/wp-content/uploads/image.jpg" alt="" width="800" height="600" > To replace the class name “to-be-replace”, copy this code to your functions.php add_filter( 'wp_get_attachment_image_attributes', function($attr){ $attr['class'] = str_replace( 'to-be-replace', 'hello-world', $attr['class'] ); return $attr; }); Output…
function woocommerce_shop_ordering_add_option( $sort_args ){ $orderby_value = isset( $_GET['orderby'] ) ? woocommerce_clean( $_GET['orderby'] ) : apply_filters( 'woocommerce_default_catalog_orderby', get_option( 'woocommerce_default_catalog_orderby' ) ); if ( 'alphabetical' == $orderby_value ) { $sort_args['meta_key'] = 'property_priority'; $sort_args['orderby'] = 'meta_value'; $sort_args['order'] = 'DESC'; } return $sort_args; } add_filter( 'woocommerce_get_catalog_ordering_args', 'woocommerce_shop_ordering_add_option' ); function woocommerce_catalog_orderby_add_option( $sortby ) { $sortby['alphabetical'] = 'Sort by STC'; return…