Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #251580

    Hi – I’m just finishing off this website: http://www.littlefoxwebdesign.co.uk/manororganicfarm for my client but he would like a few last tweaks – could you help me?

    1) On this page http://www.littlefoxwebdesign.co.uk/manororganicfarm/farm-shop/ the background image starts half way down the page – it seems okay on all the other pages so not sure what’s wrong?
    2) When you view the site on an IPhone, the logo doesn’t look right. I have amended the size of the logo and added some custom CSS that you gave me – is that causing the problem? Is there any way to keep the logo size and get it to adapt to the IPhone layout?
    3) Is it possible to reduce the size of the Breadcrumbs bar? Not the length but the width to make it a bit narrower?
    4) How can I amend the breadcrumb links so they stop taking me back to Product Archive/Product Category pages when I click on them? I want to be able to link back to some custom pages that I’ve created.

    Thank you!

    Kathryn

    #252268

    Hi kathrynmichaud!

    That is because you chose “no-repeat” and centered the image. You have more content on this page than others so background image is centered and and uncovered sections are filled with background color.
    Please add following code to Quick CSS

    @media only screen and (max-width: 767px) {
    .responsive .mobile_slide_out .logo {
    margin-left: 35%;
    }
    .responsive .logo a, .responsive .logo img {
    height: auto !important;}}
    #top .title_container .container {
    padding: 0;
    min-height: 36px;
    }

    Cheers!
    Yigit

    #252300

    Hi – that’s brilliant thank you – 1, 2, and 3 are great – could you help me with 4) ? It’s just the breadcrumbs in the shop which seem to be a bit messed up – going back to product category pages instead of the new pages that I’ve created – how can I amend the links?

    Many thanks for your help.

    Kathryn

    #252318

    Hi again – I think the breadcrumb problem might be something to do with the Product Permalink Base but I’m not sure which setting it should be to not keep going back to the Product Category?

    Thank you!

    Kathryn

    #252523

    Hey!

    Thank you for the info.

    Can you please give us an example link of the product? Where do you want the breadcrumbs to go?

    Regards,
    Ismael

    #252543

    Hi – so at the moment I have a link like this: http://www.littlefoxwebdesign.co.uk/manororganicfarm/butchery/

    on that page you can, for example click on: http://www.littlefoxwebdesign.co.uk/manororganicfarm/product-category/butchery/beef/joints/

    then after somebody has added a joint of beef to their basket, I’d like them to be able to go back to:

    http://www.littlefoxwebdesign.co.uk/manororganicfarm/butchery/

    but instead they’re going to: http://www.littlefoxwebdesign.co.uk/manororganicfarm/product-category/butchery/ when they click on the butchery breadcrumb which takes them to an the product category overview page which is a bit confusing for the customer!

    Thank you!

    Kathryn

    #254278

    Hi – could you let me know if it’s possible to remove the product-category from the breadcrumbs to save customers confusion without using a plugin?

    Thank you!

    #254900

    Hi!

    Insert this code into the child theme functions.php file (or into enfold/functions.php at the very bottom if you don’t use a child theme):

    
    	add_filter('avia_breadcrumbs_trail','avia_woocommerce_breadcrumb_custom', 15);
    
    	function avia_woocommerce_breadcrumb_custom($trail)
    	{
    		global $avia_config;
    
    		if(is_woocommerce())
    		{
    
    			$home 		= $trail[0];
    			$last 		= array_pop($trail);
    			$shop_id 	= woocommerce_get_page_id('shop');
    
    			// on the product page single page modify the breadcrumb to read [home] [if available:parent shop pages] [shop] [if available:parent categories] [category] [title]
    			if(is_product())
    			{
    				//unset the trail and build our own
    				unset($trail);
    
    				$trail[0] = $home;
    				if(!empty($shop_id) && $shop_id  != -1)    $trail = array_merge( $trail, avia_breadcrumbs_get_parents( $shop_id ) );
    
    			}
    
    			if(!empty($last)) $trail[] = $last;
    		}
    
    		return $trail;
    	}
    

    Regards,
    Peter

    #255036

    Hi, I’ve inserted that code into the functions.php file (I’m not using a child theme, but unfortunately the breadcrumbs are still taking me back to the /productcategory/ page showing an overview of all products in the category – any other ideas?

    Many thanks.

    Kathryn

    #255948

    Hi!

    But when I go to the single product page: http://www.littlefoxwebdesign.co.uk/manororganicfarm/shop/beef-brisket/ the breadcrumb shows:
    You are here:Home / Shop Online / Beef Brisket

    Thus the user can’t go back to the category page but he/she can navigate back to the “home page” and to the “Shop” page. “Beef Brisket” is th name of the single product which is not clickable. If you still see a different breadcrumb on this page please clear your browser cache.

    Cheers!
    Peter

    #256052

    Hi – yes from the single product page that does work perfectly but this is what I’m doing:

    Start here: http://www.littlefoxwebdesign.co.uk/manororganicfarm/shop-online/

    Click on Butchery to go here: http://www.littlefoxwebdesign.co.uk/manororganicfarm/butchery/

    Click on Stewing & Diced to go here: http://www.littlefoxwebdesign.co.uk/manororganicfarm/product-category/butchery/beef/beef-stewing-and-diced/

    This is now how the breadcrumbs look: You are here:Home / Shop Online / Butchery / Beef / Stewing & Diced

    If I click on Butchery in the breadcrumbs I go back to here: http://www.littlefoxwebdesign.co.uk/manororganicfarm/product-category/butchery/ which is the overview page of all products in the Butchery rather than here: http://www.littlefoxwebdesign.co.uk/manororganicfarm/butchery/ which is where I would like to go. The same applies to all the other categories. I have cleared the cache just in case that was the problem but it’s still the same.

    Thanks.

    Kathryn

    #256760

    Hi!

    Oh, ok – if you want to change the breadcrumb of the categories to insert this code into the child theme functions.php file:

    
    	add_action('after_setup_theme','avia_change_shop_breadcrumb');
    	function avia_change_shop_breadcrumb()
    	{
    		add_filter('avia_breadcrumbs_trail','avia_woocommerce_breadcrumb_custom', 15);
    		remove_filter('avia_breadcrumbs_trail','avia_woocommerce_breadcrumb');
    	}
    	
    
    	function avia_woocommerce_breadcrumb_custom($trail)
    	{
    		global $avia_config;
    
    		if(is_woocommerce())
    		{
    			$home 		= $trail[0];
    			$last 		= array_pop($trail);
    			$shop_id 	= woocommerce_get_page_id('shop');
    			$taxonomy 	= "product_cat";
    
    			// on the shop frontpage simply display the shop name, rather than shop name + "All Products"
    			if(is_shop())
    			{
    				if(!empty($shop_id) && $shop_id  != -1)  $trail = array_merge( $trail, avia_breadcrumbs_get_parents( $shop_id ) );
    				$last = "";
    
    				if(is_search())
    				{
    					$last = __('Search results for:','avia_framework').' '.esc_attr($_GET['s']);
    				}
    			}
    
    			if(is_product() || is_product_category() || is_product_tag())
    			{
    				//unset the trail and build our own
    				unset($trail);
    
    				$trail[0] = $home;
    				if(!empty($shop_id) && $shop_id  != -1)    $trail = array_merge( $trail, avia_breadcrumbs_get_parents( $shop_id ) );
    
    			}
    
    			if(is_product_tag())
    			{
    				$last = __("Tag",'avia_framework').": ".$last;
    			}
    
    			if(!empty($last)) $trail[] = $last;
    		}
    
    		return $trail;
    	}
    

    Regards,
    Peter

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