titodevera
Forum Replies Created
-
Forum: Plugins
In reply to: [Perfect Brands for WooCommerce] Show TinyMCE?Forum: Plugins
In reply to: [Perfect Brands for WooCommerce] Problem Sidebar ResponsiveThanks for using Perfect WooCommerce Brands. Don’t forget to leave a review of the plugin.
??
Forum: Plugins
In reply to: [Perfect Brands for WooCommerce] Problem Sidebar ResponsiveHi nakamuraagatha.
If this problem only occurs on responsive layout you should check if there′s some css rule that hides the element. If you can provide us a public link of your site maybe we can help you
??
Forum: Plugins
In reply to: [Perfect Brands for WooCommerce] Cannot select custom sidebar for brand pagesHi knifecreative.
If you′re able to add a widget (any available widget) to one sidebar you should be able to add it to any other sidebar…
You can register a new sidebar with the
register_sidebar
function and then display it into your theme using another function calleddynamic_sidebar
.You can see more details here:
register_sidebar
dynamic_sidebarThanks for using PWB
??
Hi Lukas Prelovsky.
The new version (1.4.7) includes this feature, now you can add a widget that allows you to filter by brands inside the product categories, I recommend you to try it!
??
- This reply was modified 8 years, 3 months ago by titodevera.
Hi akide!
This option is disabled by default, you should go to
WooCommerce > Settings > Brands
and configure “Show brands in loop” option.??
Forum: Plugins
In reply to: [Perfect Brands for WooCommerce] Brand Image in Loop pageHi oramweb.
Yes, here is the updated code, add it to your
functions.php
function pwb_show_brands_in_loop(){ global $product; $product_id = $product->id; $product_brands = wp_get_post_terms($product_id, 'pwb-brand'); if(!empty($product_brands)){ echo '<div class="custom-loop-brands">'; foreach ($product_brands as $brand) { echo '<span>'; $brand_link = get_term_link ( $brand->term_id, 'pwb-brand' ); $attachment_id = get_term_meta( $brand->term_id, 'pwb_brand_image', 1 ); $attachment_html = wp_get_attachment_image( $attachment_id, 'thumbnail' ); if(!empty($attachment_html)){ echo '<a href="'.$brand_link.'">'.$attachment_html.'</a>'; }else{ echo '<a href="'.$brand_link.'">'.$brand->name.'</a>'; } echo '</span>'; } echo '</div>'; } } add_action('woocommerce_before_shop_loop_item_title', 'pwb_show_brands_in_loop');
Don′t forget to leave a review of the plugin ??
Thanks
- This reply was modified 8 years, 3 months ago by titodevera.
Forum: Plugins
In reply to: [Perfect Brands for WooCommerce] Sidebar missing on brand pagesThe shop pages are regular pages, you can configure the sidebar for each them, as you can see in the next screenshot:
Divi page sidebarIf you need to see the sidebar in other pages that are not regular pages, is posible to do it by editing the previous code.
??
- This reply was modified 8 years, 4 months ago by titodevera.
- This reply was modified 8 years, 4 months ago by titodevera.
Forum: Plugins
In reply to: [Perfect Brands for WooCommerce] Sidebar missing on brand pagesAs i can see, your theme removes WooCommerce sidebar by default.
The next code adds the default sidebar to the brand pages, add it to your
functions.php
function my_et_divi_output_content_wrapper_end() { echo '</div> <!-- #left-area -->'; $queried_object = get_queried_object(); if(is_a($queried_object,'WP_Term') && $queried_object->taxonomy == 'pwb-brand'){ get_sidebar(); } echo ' </div> <!-- #content-area --> </div> <!-- .container --> </div> <!-- #main-content -->'; } function my_et_woocommerce_custom_sidebar() { remove_action( 'woocommerce_after_main_content', 'et_divi_output_content_wrapper_end', 10 ); add_action( 'woocommerce_after_main_content', 'my_et_divi_output_content_wrapper_end', 10 ); } add_action( 'after_setup_theme', 'my_et_woocommerce_custom_sidebar', 50 );
Remember that you can contact with the theme′s support too, maybe they tell you a better solution
??
- This reply was modified 8 years, 4 months ago by titodevera.
- This reply was modified 8 years, 4 months ago by titodevera.
Forum: Plugins
In reply to: [Perfect Brands for WooCommerce] Brand description HTML tagsWordPress does not allow HTML in taxonomy descriptions by default.
You can use a plugin like this: Visual Term Description Editor
??
Is not necessary to create any new page, you can modify the existing brand page.
If you want to have more than one banner in a certain brand page add this code to your
functions.php
:function pwb_extra_banner() { $queried_object = get_queried_object(); if( is_a($queried_object,'WP_Term') && $queried_object->taxonomy == 'pwb-brand' ) { $current_term_id = $queried_object->term_id; $term_id = 17; //term id of a specific brand if( $current_term_id == $term_id ) { $img = get_stylesheet_directory_uri().'/img.png'; //url of the banner echo '<div class="pwb-brand-banner pwb-brand-extra-banner pwb-clearfix">'; echo '<a href="#"><img src="'.$img.'"></a>'; echo '</div>'; } } } add_action('woocommerce_before_shop_loop', 'pwb_extra_banner', 10);
Don′t forget to set
$term_id
and$img
according to your needsI think this is the nicest solution… not the only one…
??
- This reply was modified 8 years, 6 months ago by titodevera.
PWB uses WordPress taxonomies for assign brands to products. By default, there are an archive page for each brand where you can see the products assigned to the mentioned brand. You can configure a specific banner (and a link) for each brand page (go to
Admin->Products->Brands
). Also you can customize each brand page separately adding some CSS to your theme, using some conditional tags, or using WordPress template hierarchy (creatingtaxonomy-pwb-brand-nike.php
for example)??
- This reply was modified 8 years, 6 months ago by titodevera.
- This reply was modified 8 years, 6 months ago by titodevera.
Forum: Plugins
In reply to: [Perfect Brands for WooCommerce] Brand positionDe nada suarezlopezd. Si te gusta el plugin no te olvides de dejar una review positiva, es realmente importante, un saludo ??
- This reply was modified 8 years, 6 months ago by titodevera.
Forum: Plugins
In reply to: [Perfect Brands for WooCommerce] Customize Brand Page DescriptionYou can do it with CSS:
.archive .pwb-brand-banner{ width: 70%; float: left; } .archive .pwb-brand-description{ width: 28%; float: right; } /* ·················· OPTIONAL: Better responsive ·················· */ @media (max-width: 580px){ .archive .pwb-brand-banner,.archive .pwb-brand-description{ float: none; width: 100%; } }
And add this to your
functions.php
for clear after the floated elements:function pwb_clear_after_desc(){ echo '<div class="pwb-clearfix"></div>'; } add_action('woocommerce_before_shop_loop', 'pwb_clear_after_desc', 9);
??
- This reply was modified 8 years, 6 months ago by titodevera.
Forum: Plugins
In reply to: [Perfect Brands for WooCommerce] Brand positionBien, podemos continuar en espa?ol ??
La solución fácil sería mover la línea 115
do_action( 'woocommerce_before_shop_loop_item_title' );
y situarla después de que imprima la imagen del producto (línea 140)*los números de línea pueden variar si utilizas otra versión diferente del tema
Un saludo