Home › Forums › WoodMart support forum › Product Name Issue
Product Name Issue
- This topic has 2 replies, 2 voices, and was last updated 4 years, 7 months ago by lavitasarim.
Viewing 3 posts - 1 through 3 (of 3 total)
-
AuthorPosts
-
September 11, 2019 at 6:06 am #143069
lavitasarimParticipantHello there.
I used the <br> code to make the product names look good.
But this time it appeared Member code back and forth button on the product page.How do we hide this? We need to remove this (<br>).
Thanks.
Attachments:
You must be logged in to view attached files.September 11, 2019 at 4:35 pm #143088
Artem TemosKeymasterHi,
Try to add the following PHP code snippet to the child theme functions.php
function woodmart_products_nav() { $next = get_next_post(); $prev = get_previous_post(); $next = $next ? wc_get_product( $next->ID ) : false; $prev = $prev ? wc_get_product( $prev->ID ) : false; ?> <div class="woodmart-products-nav"> <?php if ( ! empty( $prev ) ): ?> <div class="product-btn product-prev"> <a href="<?php echo esc_url( $prev->get_permalink() ); ?>"><?php esc_html_e('Previous product', 'woodmart'); ?><span class="product-btn-icon"></span></a> <div class="wrapper-short"> <div class="product-short"> <div class="product-short-image"> <a href="<?php echo esc_url( $prev->get_permalink() ); ?>" class="product-thumb"> <?php echo apply_filters( 'woodmart_products_nav_image', $prev->get_image() );?> </a> </div> <div class="product-short-description"> <a href="<?php echo esc_url( $prev->get_permalink() ); ?>" class="product-title"> <?php echo $prev->get_title(); ?> </a> <span class="price"> <?php echo wp_kses_post( $prev->get_price_html() ); ?> </span> </div> </div> </div> </div> <?php endif ?> <a href="<?php echo apply_filters( 'woodmart_single_product_back_btn_url', get_permalink( wc_get_page_id( 'shop' ) ) ); ?>" class="woodmart-back-btn"> <span> <?php esc_html_e('Back to products', 'woodmart') ?> </span> </a> <?php if ( ! empty( $next ) ): ?> <div class="product-btn product-next"> <a href="<?php echo esc_url( $next->get_permalink() ); ?>"><?php esc_html_e('Next product', 'woodmart'); ?><span class="product-btn-icon"></span></a> <div class="wrapper-short"> <div class="product-short"> <div class="product-short-image"> <a href="<?php echo esc_url( $next->get_permalink() ); ?>" class="product-thumb"> <?php echo apply_filters( 'woodmart_products_nav_image', $next->get_image() ); ?> </a> </div> <div class="product-short-description"> <a href="<?php echo esc_url( $next->get_permalink() ); ?>" class="product-title"> <?php echo $next->get_title(); ?> </a> <span class="price"> <?php echo wp_kses_post( $next->get_price_html() ); ?> </span> </div> </div> </div> </div> <?php endif ?> </div> <?php }
Regards
September 11, 2019 at 7:04 pm #143275
lavitasarimParticipantThanks. Ok.
-
AuthorPosts
Tagged: code product name
Viewing 3 posts - 1 through 3 (of 3 total)
The topic ‘Product Name Issue’ is closed to new replies.
- You must be logged in to create new topics. Login / Register