Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #422214

    Can anyone help me on the following issues? I am using Woocommerce 2.3.7 and WordPress 4.1.1

    1. How do I disable the light box on the product pages? I have tried methods suggested from Google searches but doesn’t seem to be working.

    2. How do I replace the page title text “Shop” on the product pages?

    3. How do I resize the image sizes on the catalog page, product page main image, product page gallery images, and related product images on the product page?

    #422733

    Hey!

    1. Paste this to your theme / child theme functions.php:

    if(!function_exists('avia_header_class_string'))
    {
    	function avia_header_class_string($necessary = array() , $prefix = "html_"){
    		
    		$no_lightbox = is_singular("product") ? "av-custom-lightbox" : "";
    
    		if(empty($necessary)) $necessary = array(	'header_position', 
    													'header_layout', 
    													'header_size', 
    													'header_sticky',
    													'header_shrinking', 
    													'header_topbar', 
    													'header_transparency',
    													'header_mobile_activation',
    													'header_mobile_behavior',
    													'header_searchicon',
    													'layout_align_content',
    													'header_unstick_top',
    													'header_stretch',
    													'header_style'
    												);
    
    		$settings  	= avia_header_setting();
    		$class		= array();
    		$post_id 	= function_exists('avia_get_the_id') ? avia_get_the_id() : get_the_ID();
    		
    		foreach($necessary as $class_name)
    		{
    			if(!empty($settings[$class_name]))
    			{
    				$result = array_filter(explode(' ', $settings[$class_name]));
    				$class = array_merge($class, $result);
    			}
    		}
    		
    		if($post_id) $class[] = "entry_id_".$post_id;
    		
    		$class = apply_filters('avf_header_classes', $class, $necessary, $prefix);
    		
    		if(!empty($class))
    		{
    			$class = array_unique($class);
    			$class = " ".$prefix.implode(" ".$prefix, $class);
    		}
    
    		
    		return $no_lightbox.$class;
    	}
    }

    2. Paste this to your theme / child theme functions.php:

    function change_title_in_wc($args) {
    	if(is_woocommerce()) $args['title'] = "Custom Title";
    	return $args;
    }
    add_filter('avf_title_args', 'change_title_in_wc');

    3. Use this plugin to change the WC image sizes:
    https://wordpress.org/plugins/simple-image-sizes/

    Best regards,
    Josue

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.