New Landing How can we help? Themeforest Theme Support Neighborhood Change the accordion on product page

Viewing 4 posts - 1 through 4 (of 4 total)
  • #90149
    LouisaMel
    Member
    Post count: 46

    Hi there,

    I’am looking for a way to hide the “additional information” from the product page accordion, and another one to rename the “Description” into “Brand”.

    Could you help me with this issue please?

    Thanks a lot!

    #90157
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please insert given below code at functions.php of child theme :

    <?php 
    function sf_product_accordion() {
    			global $woocommerce, $product, $post;
    			
    			$options = get_option('sf_neighborhood_options');
    			if (isset($options['enable_pb_product_pages'])) {
    				$enable_pb_product_pages = $options['enable_pb_product_pages'];
    			} else {
    				$enable_pb_product_pages = false;
    			}
    			
    			$product_description = sf_get_post_meta($post->ID, 'sf_product_description', true);
    		?>
    			<div class="accordion" id="product-accordion">
    							
    				<div class="accordion-group">
    					<div class="accordion-heading">
    						<a class="accordion-toggle" data-toggle="collapse" data-parent="#product-accordion" href="#product-desc">
    							<?php _e("Brand", "swiftframework"); ?>
    						</a>
    			    	</div>
    			    	<div id="product-desc" class="accordion-body collapse in">
    			      		<div class="accordion-inner">
    			      			<?php 
    			      				if ($enable_pb_product_pages) {
    			       					echo do_shortcode(sf_add_formatting($product_description));
    			       				} else {
    			       					the_content();
    			       				}
    			       			?>
    			      		</div>
    			  		</div>
    				</div>
    							
    				
    				<?php if ( comments_open() ) : ?>
    				<div class="accordion-group">
    					<div class="accordion-heading">
    						<a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#product-accordion" href="#reviews">
    							<?php _e("Reviews", "swiftframework"); ?> (<?php echo comments_number( '0', '1', '%' ); ?>)
    						</a>
    					</div>
    					<div id="reviews" class="accordion-body collapse">
    				  		<div class="accordion-inner">			   						   			
    				   			<?php comments_template(); ?>
    				  		</div>
    					</div>
    				</div>
    				<?php endif; ?>
    			</div>
    		<?php 
    		} ?>

    Thanks ๐Ÿ™‚
    With Best Regards
    Swift Ideas

    #91074
    LouisaMel
    Member
    Post count: 46

    Hi,

    Thanks a lot!

    Best regards!

    #91084
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You most welcome. I’m glad that issue resolved .
    Thanks ๐Ÿ™‚
    With Best Regards
    Swift Ideas

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register