New Landing How can we help? Atelier Moving Related Products On-Top of Addition Info Accordion

Viewing 11 posts - 1 through 11 (of 11 total)
  • Posted in: Atelier
  • #243149
    afaraji
    Member
    Post count: 72

    Hello,

    Hope everyone’s having a nice weekend. ๐Ÿ™‚

    Would you mind telling me how to move my related products over the Additional Info accordion on my product pages. (image attached)

    Thanks,

    AF

    Attachments:
    You must be logged in to view attached files.
    #243247
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    Go to atelier/woocommerce/content-single-product.php and move:

    <?php
    	/**
    	 * Product Related
    	 */
    	if ($sidebar_config == "no-sidebars") { ?>
    	<div class="container product-related-wrap">
    	<?php } ?>
    
    		<?php
    			/**
    			 * woocommerce_after_single_product_summary hook
    			 *
    			 * @hooked woocommerce_output_related_products - 20
    			 */
    			do_action( 'sf_after_single_product_reviews' );
    		?>
    
    	<?php if ($sidebar_config == "no-sidebars") { ?>
    	</div>
    	<?php } ?>

    above:

    <?php
    	/**
    	 * Product Tabs
    	 */

    – Kyle

    #243395
    afaraji
    Member
    Post count: 72

    Thanks Kyle. Worked like a charm.

    While we’re still on this topic, would you be able to tell me how I can reduce some of the padding space between the related product and the product details (image attached)?

    Attachments:
    You must be logged in to view attached files.
    #243402
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Add this to your custom css:

    .single-product .product-carousel {
      padding-top: 20px;
    }

    – Kyle

    #243413
    afaraji
    Member
    Post count: 72

    Great thanks!

    #243417
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    No problem ๐Ÿ™‚

    #243502
    SomeChick
    Member
    Post count: 231

    If I use this method to move related products, will I have to change it every time there’s an update? Thanks!

    #243579
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    You can save the file in your child theme

    – Kyle

    #256504
    afaraji
    Member
    Post count: 72

    Hi,

    The lines you refered to have disappeared from my functions.php file (theme child), perhaps it was after an update. Is there a new way we’re supposed to implement this?

    Thanks,

    AF

    #256505
    afaraji
    Member
    Post count: 72

    My mistake, I was looking in the wrong files and my child theme was also deactivated.

    Thanks,

    AF

    #256655
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Its ok ๐Ÿ™‚ .
    Thanks
    Mohammad

Viewing 11 posts - 1 through 11 (of 11 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