gkarmas
Forum Replies Created
-
Hey Drazen, any updates on this? Did you get the time to figure this out?
Oooooh thank you so much @titodevera – you are a genius, I didn’t even see that ??
- This reply was modified 5 years, 9 months ago by gkarmas.
Forum: Plugins
In reply to: [Perfect Brands for WooCommerce] Custom template for brands pageThe above solution worked just fine for my needs @gardensoil – I have separate pages for each brand, with the brand’s name on each. I used Divi and WooCommerce Builder from DiviKingdom. That allowed me to customize the brands page as a layout. So this is the result: https://mantravape.com/brand/advken/
Forum: Plugins
In reply to: [Perfect Brands for WooCommerce] Custom template for brands pageThanks so much.
I uploaded an instructional screenshot of my issue: https://ibb.co/d0QmWqp
I created a code snippet for myself. Although, it always sits above the element I place the shortcode. It becomes a parent of the element.
if ( is_plugin_active( 'perfect-woocommerce-brands/main.php' ) ) { function product_brand_name_in_single_page_function() { global $product; $brands = wp_get_object_terms( $product->get_id(), 'pwb-brand' ); ob_start(); ?> <?php foreach( $brands as $brand ): ?> <?php $brand_id = $brand->term_id; $brand_name = $brand->name; $brand_link = get_term_link($brand_id); $brand_logo = get_term_meta( $brand->term_id, 'pwb_brand_image', true ); $brand_logo = wp_get_attachment_image( $brand_logo, 'thumbnail' ); ?> <div id="pwb_product-brand-name"> <a href="<?php echo $brand_link;?>"><?php echo $brand_name;?></a> <?php if( !empty($brand->description) ) echo '<div>'.do_shortcode($brand->description).'</div>';?> <?php if( !empty($brand_logo) ) echo '<span>'.$brand_logo.'</span>';?> </div> <?php endforeach; ?> <?php echo ob_get_clean(); } add_shortcode( 'product_brand_name_in_single_page', 'product_brand_name_in_single_page_function'); }
Forum: Plugins
In reply to: [Perfect Brands for WooCommerce] only brand name shortcodeAny updates on the “push to live” function Rene ?
Forum: Plugins
In reply to: [Surbma | Divi & Gravity Forms] Does this work with Extra?Unfortunately it doesn’t seem to work with Extra. Any updates on that sir @surbma ?
Forum: Plugins
In reply to: [WC Fields Factory] Admin Fields Not Showing in Front Endwhere did you paste this code?
Forum: Fixing WordPress
In reply to: Visual Editor Not Working – Urgent Help Please!OK. Problem solved. Sometimes it’s the most stupid thing that comes last in mind.
Go to Users, Admin and make sure ‘Disable the visual editor when writing’ box is NOT ticked.
It automatically went off somehow with the WP update.Forum: Fixing WordPress
In reply to: Visual Editor Not Working – Urgent Help Please!Thank you so much robinanonymous for your detailed reply.
So, my question is, are you on 4.4.1 now or back to 4.4.0? Because I am starting to think that this is an incompatibility issue with my current theme or visual composer.Forum: Fixing WordPress
In reply to: Visual Editor Does Not Loadsame here. any solution yet?
Forum: Fixing WordPress
In reply to: Visual Editor Not Working – Urgent Help Please!Same issue. Tried every possible solution. No luck. Any updates ?