How to Fix Right-Aligned Product Descriptions in Debutify Theme

Published on Jul 26, 2024

By Liam Gallagher

#Shopify#Debutify#E-commerce
From above of appetizing fresh blueberries different sizes arranged even layer on grocery store stall

Are you using the Debutify theme for your Shopify store and finding that your product descriptions are all aligned to the right side of the page? This can be a frustrating issue that impacts the overall look and user experience of your product pages. In this comprehensive guide, we’ll explore how to resolve this problem and achieve a full-width product description layout that looks great on all devices.

Understanding the Issue

The Default Debutify Layout

The Debutify theme is a popular choice for Shopify merchants due to its clean design and powerful features. However, some users have reported that the product description section appears right-aligned by default, which may not be the desired layout for all stores.

Impact on User Experience

A right-aligned description can make your product information harder to read and may not utilize the available space effectively. This can potentially lead to a suboptimal shopping experience for your customers.

The Need for a Full-Width Solution

To improve the visual appeal and readability of your product pages, it’s often preferable to have the product description span the full width of the page underneath the product images.

The Solution: Modifying the Product Template

Accessing the Theme Code

To fix this issue, you’ll need to make changes to your theme’s code. Here’s how to do it:

  1. Log in to your Shopify admin panel
  2. Navigate to Online Store > Themes
  3. Find your current theme and click “Actions” > “Edit code”

Locating the Right File

The key to solving this problem lies in modifying the product-template.liquid file. This file controls the layout of your product pages.

Implementing the Fix

To achieve a full-width product description, replace the contents of your snippets/product-template.liquid file with the following code:

<div class="product-single{% if section.settings.product_photo_alignement == 'right' %} product-photos-right{% endif %}">
  <div class="box">
    <div class="wrapper">
      <div class="grid product-wrapper">
        <!-- Product images section -->
        <div class="product-photos grid__item medium--six-twelfths large--seven-twelfths">
          <!-- Your existing image code here -->
        </div>

        <!-- Product details section -->
        <div class="product-details grid__item medium--six-twelfths large--five-twelfths">
          <!-- Your existing product details code here -->
        </div>
      </div>

      <!-- Full-width product description -->
      <div class="product-description-full-width">
        {% unless product.description == blank or section.settings.show_description == false %}
          <div class="product-single__description rte" itemprop="description">
            {{ product.description }}
          </div>
        {% endunless %}
      </div>
    </div>
  </div>
</div>

This code restructures the product page layout to include a full-width description section below the product images and details.

Additional Customization Options

Adjusting Styles

After implementing the above solution, you may want to fine-tune the appearance of your product description. You can do this by adding custom CSS to your theme.

Adding Custom CSS

  1. In your theme editor, locate the theme.scss.liquid file under the “Assets” folder
  2. Add the following CSS at the bottom of the file:
.product-description-full-width {
  margin-top: 30px;
  padding: 0 15px;
}

@media screen and (min-width: 768px) {
  .product-description-full-width {
    padding: 0;
  }
}

This CSS will add some spacing above the description and ensure it’s properly padded on mobile devices.

Optimizing for Mobile

To ensure your full-width description looks great on mobile devices, consider the following tips:

  • Use responsive font sizes
  • Optimize images for mobile viewing
  • Break up long paragraphs for easier reading on small screens

Troubleshooting Common Issues

Description Not Appearing

If your product description isn’t showing up after making these changes, double-check that:

  1. You have actually entered a description for your product in the Shopify admin
  2. The show_description setting in your theme customizer is set to true

Layout Conflicts

If you’re experiencing layout issues after implementing this solution, it may be due to conflicts with other theme customizations. In this case, you might need to:

  1. Review any custom code you’ve added to your theme
  2. Temporarily disable other apps that modify your product pages
  3. Consult with a Shopify expert for personalized assistance

Conclusion

By following the steps outlined in this guide, you should now have a full-width product description that enhances the look and functionality of your Debutify theme. Remember to always back up your theme before making code changes, and test your modifications across different devices to ensure a consistent experience for all your customers.

With these improvements, your product pages will be more visually appealing and easier to read, potentially leading to better engagement and increased conversions for your Shopify store.

Take Our Quick Quiz:

Which primary product image do you think has the highest conversion rate?