Forum Replies Created
-
AuthorPosts
-
I’ve cleaned the cache, reloaded the page, used two different browsers in incognito mode. I also used another machine to open the page and it’s still not displaying ‘Roboto’.
I’m attaching a screenshot:
Screenshot: https://imgur.com/a/8qT0Jy9
- This reply was modified 6 years, 5 months ago by Andrius.
November 24, 2017 at 6:01 am in reply to: Product Category Pages Full width page banner and description (updated) #881063@ismael, yes, that’s correct
November 21, 2017 at 9:12 pm in reply to: Product Category Pages Full width page banner and description (updated) #879929Hi @victoria, which server log should I check and for what kind of error? the problem is clearly in the code snippet provided by @ismael as the site works once it’s commented out and worked with previous versions of his snippet. However, I really need to be able change the category page banners per category yet keep the main shop banner (set in Enfold > Shop). I provided the admin logins in the post below.
November 17, 2017 at 5:52 pm in reply to: Product Category Pages Full width page banner and description (updated) #878218Hi @ismael, I’ve added your adjusted code and it completely stopped the website from rendering (no error, but renders a blank white page). Could you please log in to the site and have a look? I have commented out the code snippet so the site loads now.
November 16, 2017 at 12:35 pm in reply to: Product Category Pages Full width page banner and description (updated) #877483Hi @ismael, many thanks for your response. However, the issue persists. The banners are still doubled on the category page.
Here’s the full code I’m using:
// Fix Enfold from using 1500px wide image and use the full-size image instead add_action( 'init', 'ssi_woocommerce_full_width_category_images', 50 ); function ssi_woocommerce_full_width_category_images() { if( is_tax( 'product_cat' ) && ! is_shop() ) { remove_action( 'ava_after_main_container', 'avia_woocommerce_shop_banner', 11 ); } add_action( 'ava_after_main_container', 'avia_woocommerce_parallax_banner_child_theme', 11); function avia_woocommerce_parallax_banner_child_theme($bg, $overlay, $opacity, $description, $font) { if(is_numeric($bg)) { $bg = wp_get_attachment_image_src($bg, 'full'); if(is_array($bg) && $bg[0] != "") $bg = $bg[0]; } if($font) $font = "style='color:{$font};'"; if($bg) $bg = "background-image: url(".$bg.");"; $output = ""; $output .='<div id="av_product_description" class="avia-section main_color avia-section-large avia-no-border-styling avia-full-stretch av-parallax-section av-section-color-overlay-active avia-bg-style-parallax container_wrap fullsize" data-section-bg-repeat="stretch" '.$font.'>'; $output .='<div class="av-parallax avia-full-stretch" data-avia-parallax-ratio="0.3">'; $output .='<div class="av-parallax-inner" style="'.$bg.' main_color background-attachment: scroll; background-position: 50% 50%; background-repeat: no-repeat;">'; $output .='</div>'; $output .='</div>'; $output .='<div class="av-section-color-overlay-wrap">'; if(!empty($overlay)) { $output .='<div class="av-section-color-overlay" style="opacity: '.$opacity.'; background-color: '.$overlay.'; "></div>'; } $output .='<div class="container">'; $output .='<main class="template-page content av-content-full alpha units">'; if($description) $output .= "<h1>".$description."</h1>"; $output .='</main></div></div></div>'; return $output; } remove_action( 'ava_after_main_container', 'avia_woocommerce_big_cat_banner', 11 ); add_action( 'ava_after_main_container', 'avia_woocommerce_big_cat_banner_child_theme', 11 ); function avia_woocommerce_big_cat_banner_child_theme() { if(is_product_category()) { global $wp_query, $avia_config; if(isset($wp_query->query_vars['taxonomy'])) { $term = get_term_by( 'slug', get_query_var($wp_query->query_vars['taxonomy']), $wp_query->query_vars['taxonomy']); if(!empty($term->term_id)) { $description = term_description() ; $style = get_woocommerce_term_meta($term->term_id, 'av_cat_styling'); $attachment_id = get_woocommerce_term_meta($term->term_id, 'thumbnail_id'); $overlay = get_woocommerce_term_meta($term->term_id, 'av-banner-overlay'); $font = get_woocommerce_term_meta($term->term_id, 'av-banner-font'); $opacity = get_woocommerce_term_meta($term->term_id, 'av-banner-overlay-opacity'); if(!empty($style)) { remove_action( 'woocommerce_before_shop_loop', 'woocommerce_taxonomy_archive_description', 11 ); echo avia_woocommerce_parallax_banner_child_theme($attachment_id, $overlay, $opacity, $description, $font); $avia_config['woo-banner'] = true; } } } } } }
November 15, 2017 at 7:32 pm in reply to: Product Category Pages Full width page banner and description (updated) #877195Hi @Ismael, I was just wondering if you have any updates on my message above?
November 14, 2017 at 1:54 pm in reply to: Product Category Pages Full width page banner and description (updated) #876563Hi @Ismael,
thanks for your reply. However, removing the line seems to duplicate the banners. On the main shop page I get a single shop banner (set in Enfold > Shop), but in the category pages I get both – the main shop banner as well as the category banner. I’d like to have the main banner (Enfold > Shop) only displayed on the main shop page and on category pages I’d like to see only the category-specific banner.- This reply was modified 7 years ago by Andrius.
November 9, 2017 at 2:24 pm in reply to: WooCommerce default shop page – ordered by product categories #874649Many thanks for your reply, Mike. Neither of the solutions actually solve my issue as I do not want to display categories as headings, but instead only want the products from a specific category always displayed at the top of the shop page.
Hi Yigit, I managed to fix it with your code snippet. Just had to change the class. Thanks!
That worked. Thanks!
Hi Yigit, I got slightly mixed up in terminology. What I want is to hide the 2nd level primary menu items on desktop and show them on mobile.
Hi @Rikard, unfortunately this doesn’t seem to work. I’ve added the code to ‘Quick CSS’ yet I see no effect. Could you please have a look at http://dev.ritosgeles.lt/ ?
Hi @Rikard, unfortunately this doesn’t seem to work. I’ve added the code to ‘Quick CSS’ yet I see no effect. Could you please have a look at http://dev.ritosgeles.lt/ ?
September 14, 2017 at 11:36 am in reply to: WPML language switcher displayed over the logo on mobile in Arabic #851992Hi, the website is behind a firewall at this stage so I can’t give you access.
The problem is that on smaller screen sizes in the Arabic version of the site the dropdown menu and the WPML language switcher flags are overlayed on top of the logo. This seems to be a bug in Enfold and/or WPML. The problem is only in the Arabic (RTL) version of the site.
Screenshot – https://imgur.com/a/8YAvd
- This reply was modified 7 years, 2 months ago by Andrius.
It works. Thank so much!
Thanks for the info and your help, Yigit.
This reply has been marked as private.many thanks. It does the job. I would also like to hide related products and, if exist, show cross-sells instead.
This reply has been marked as private.This reply has been marked as private.November 2, 2014 at 9:48 am in reply to: How to remove (or translate) the 'Show details' link on each product? #344823brilliant! many thanks for the answer
-
AuthorPosts