-
AuthorPosts
-
April 15, 2014 at 1:34 pm #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
April 16, 2014 at 6:51 pm #252268Hi 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!
YigitApril 16, 2014 at 9:07 pm #252300Hi – 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
April 16, 2014 at 9:57 pm #252318Hi 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
April 17, 2014 at 9:25 am #252523Hey!
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,
IsmaelApril 17, 2014 at 9:55 am #252543Hi – 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
April 22, 2014 at 12:11 pm #254278Hi – 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!
April 23, 2014 at 1:52 pm #254900Hi!
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,
PeterApril 23, 2014 at 4:23 pm #255036Hi, 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
April 25, 2014 at 7:42 am #255948Hi!
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 BrisketThus 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!
PeterApril 25, 2014 at 12:24 pm #256052Hi – 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
April 27, 2014 at 10:23 am #256760Hi!
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 -
AuthorPosts
- You must be logged in to reply to this topic.