<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Evrig_Solutions</title>
    <description>The latest articles on DEV Community by Evrig_Solutions (@evrig_solutions_).</description>
    <link>https://dev.to/evrig_solutions_</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1823790%2Ff44e906b-c701-4dbf-8ad4-928b5db56d25.png</url>
      <title>DEV Community: Evrig_Solutions</title>
      <link>https://dev.to/evrig_solutions_</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/evrig_solutions_"/>
    <language>en</language>
    <item>
      <title>Hyva : How to create Read More Read Less Button</title>
      <dc:creator>Evrig_Solutions</dc:creator>
      <pubDate>Wed, 18 Dec 2024 09:32:50 +0000</pubDate>
      <link>https://dev.to/evrig_solutions_/hyva-how-to-create-read-more-read-less-button-mi8</link>
      <guid>https://dev.to/evrig_solutions_/hyva-how-to-create-read-more-read-less-button-mi8</guid>
      <description>&lt;p&gt;In this tutorial, we’ll walk you through how to easily create a “Read More Read Less” button in your Hyva Magento2 theme using Tailwind CSS and Alpine JS. This functionality enhances user experience by allowing users to toggle content visibility, making your page cleaner and more interactive.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step-1. You just copy and paste the below code into your PHTML File, CMS block, or CMS Page.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;You have two options for implementing the “Read More Read Less” button: with or without specifying height. Choose the approach that best fits your requirements.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Option: 1 WITHOUT height&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;div x-data="{ isCollapsed: false, maxLength: 20, originalContent: '', content: '' }"
   x-init="originalContent = $el.firstElementChild.textContent.trim(); content = originalContent.slice(0, maxLength)"
&amp;gt;
   &amp;lt;span x-text="isCollapsed ? originalContent : content"&amp;gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed&amp;lt;/span&amp;gt;
   &amp;lt;button
       @click="isCollapsed = !isCollapsed"
       x-show="originalContent.length &amp;gt; maxLength"
       x-text="isCollapsed ? 'Show less' : 'Show more'"
       class="cursor-pointer uppercase font-bold"
   &amp;gt;
   &amp;lt;/button&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Option: 2 WITH height&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;div x-data="{ expanded: false }"&amp;gt;
   &amp;lt;div class="relative" x-bind:class="{'max-h-48 overflow-hidden': !expanded}" x-ref="container" x-bind:style="expanded ? 'max-height: ' + ($refs.container.offsetHeight + 20) + 'px; padding-bottom: 40px;' : ''"&amp;gt;
       &amp;lt;p class="pb-10" x-bind:class="{'pb-0': expanded}"&amp;gt;Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.&amp;lt;/p&amp;gt;
       &amp;lt;p&amp;gt;Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.&amp;lt;/p&amp;gt;
       &amp;lt;p&amp;gt;Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.&amp;lt;/p&amp;gt;
       &amp;lt;div class="text-primary-500 text-center cursor-pointer uppercase font-bold absolute left-0 right-0 z-20 mx-auto bottom-0" @click="expanded = !expanded"&amp;gt;
           &amp;lt;span x-text="expanded ? 'Read Less' : 'Read More'"&amp;gt;&amp;lt;/span&amp;gt;
       &amp;lt;/div&amp;gt;
   &amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step-2. Run the below commands to see your changes&lt;/strong&gt;&lt;br&gt;
Once you’ve added the code, you need to run the following commands to see the changes in your Magento2 theme.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1.Clear the cache:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;bin/magento cache:clean
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;2.Build your Tailwind CSS:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm run build-prod
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;These commands ensure that the changes take effect on your site.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Advantages to adding the Read More Read Less Button:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Achieve this without adding any external JS/CSS.&lt;/li&gt;
&lt;li&gt;Minimal use of Tailwind classes and Alpine.&lt;/li&gt;
&lt;li&gt;Customizable: You can change the design to meet your requirements.&lt;/li&gt;
&lt;li&gt;Responsive: This code adapts its layout to different screen sizes, ensuring your code looks great on all devices.&lt;/li&gt;
&lt;li&gt;Customers can’t scroll more if they don’t want to read the full content&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;We hope this tutorial makes it easy for you to integrate a “Read More Read Less” button into your&lt;a href="https://www.evrig.com/magento-2-hyva-theme-development-company/" rel="noopener noreferrer"&gt; Hyva&lt;/a&gt; Magento 2 theme. It’s a simple yet effective way to enhance content visibility and improve the user experience on your site.&lt;/p&gt;

&lt;p&gt;At &lt;a href="https://www.evrig.com/" rel="noopener noreferrer"&gt;Evrig&lt;/a&gt;, we specialize in creating high-quality Magento stores that are both functional and user-friendly. If you’re implementing custom features like the “Read More Read Less” button or need any other &lt;a href="https://www.evrig.com/magento-development-company/" rel="noopener noreferrer"&gt;Magento development assistance&lt;/a&gt;, our team of experts is ready to support you every step of the way.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.evrig.com/contact-us/" rel="noopener noreferrer"&gt;Get in touch with us&lt;/a&gt; today to discuss how we can help you elevate your e-commerce website with custom Magento solutions, tailored design and optimal performance.&lt;/p&gt;

</description>
      <category>ecommerce</category>
      <category>hyva</category>
      <category>magneto</category>
      <category>magentodevelopment</category>
    </item>
    <item>
      <title>Hyva release version: 1.3.10 for performance and User experience</title>
      <dc:creator>Evrig_Solutions</dc:creator>
      <pubDate>Fri, 13 Dec 2024 09:39:00 +0000</pubDate>
      <link>https://dev.to/evrig_solutions_/hyva-release-version-1310-for-performance-and-user-experience-4p3i</link>
      <guid>https://dev.to/evrig_solutions_/hyva-release-version-1310-for-performance-and-user-experience-4p3i</guid>
      <description>&lt;p&gt;Hyva Themes continues to lead the way in Magento front-end development with the release of version 1.3.10, focusing on enhanced performance and user experience. This update brings exciting features, including PageBuilder improvements and experimental page transitions, designed to streamline workflows and create dynamic e-commerce experiences.&lt;/p&gt;

&lt;p&gt;In this blog, we’ll explore the key enhancements and guide you on how to implement them for your Magento store.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;PageBuilder Improvements:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Magento 2 Page Builder is a powerful content creation tool that simplifies the process of designing and managing content pages for Magento stores. &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;It’s intuitive drag-and-drop interface.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;PageBuilder allows users to create dynamic and visual layouts without requiring extensive technical knowledge or coding skills. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;PageBuilder allows users a wide range of customizable content types, including banners, sliders, product carousels, and static blocks. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;We can integrate directly into the Magento admin panel&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Page Builder ensures seamless workflow and real-time previews and  op&lt;br&gt;
timizing site performance.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Image SRC&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Previously we were unable to add dimensions and Lazy loading in the image src which one upload via PageBuilder. After upgrading to the latest Hyva we can easily add image dimensions and enable Lazy loading from admin configuration. You just need to follow the following steps.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Login to the admin panel and create a new CMS static block.&lt;/li&gt;
&lt;li&gt;Drag image from the left panel and upload mobile and desktop images&lt;/li&gt;
&lt;li&gt;Enable Lazy Loading.&lt;/li&gt;
&lt;li&gt;If you want to use native image dimensions, enable it.&lt;/li&gt;
&lt;li&gt;If youwant to use different image height and width just disable Use native image dimensions and add your image dimensions.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbuuhkrk8lhcooe6f13ip.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbuuhkrk8lhcooe6f13ip.png" alt="Image description" width="800" height="337"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Background Image&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Previously we were unable to add Lazy loading in the background images which one upload via PageBuilder. After upgrading to the latest Hyva we can easily enable Lazy loading from admin configuration. You just need to follow the following steps.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Login to the admin panel and create a new CMS static block.&lt;/li&gt;
&lt;li&gt;Drag row from the left panel and upload background images for mobile and desktop.&lt;/li&gt;
&lt;li&gt;Enable Lazy Loading.&lt;/li&gt;
&lt;li&gt;After enable you can see below attribute in your background image div data-ba
ckground-lazy-load="true"&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F26jh1nldm48afibrlazo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F26jh1nldm48afibrlazo.png" alt="Image description" width="800" height="763"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can also enable by default to do below configuration from the admin &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Login to the admin panel&lt;/li&gt;
&lt;li&gt;Store-&amp;gt; Configuration -&amp;gt; Hyvä Themes -&amp;gt; PageBuilder -&amp;gt; Enable lazy-loading by default for background images -&amp;gt; set value Yes&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9ypdi7umniktskwtddln.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9ypdi7umniktskwtddln.png" alt="Image description" width="800" height="220"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Experimental Page Transitions:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Experimental page transitions are a cutting-edge feature designed to create smooth, immersive navigation experiences on the web. By leveraging technologies like the Page Transition API and advanced animations, these transitions allow developers to animate elements between pages. They can reduce the abruptness of traditional page reloads by blending visual elements or fading content in and out, offering a more dynamic and polished interaction. You just need to follow the following steps to enable it.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Login to the admin panel&lt;/li&gt;
&lt;li&gt;Store -&amp;gt; Configuration -&amp;gt; Hyvä Themes -&amp;gt; Experimental -&amp;gt; Enable View Transitions&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg326cujkumuohs8qow6o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg326cujkumuohs8qow6o.png" alt="Image description" width="800" height="381"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Ready to upgrade and unlock the full potential of your Magento store? Explore the official &lt;a href="https://docs.hyva.io/hyva-themes/upgrading/changelog-default-theme.html#1310-2024-12-06" rel="noopener noreferrer"&gt;Hyva release notes&lt;/a&gt; for detailed insights. Need expert assistance?&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.evrig.com/contact-us/" rel="noopener noreferrer"&gt;Contact Evrig today&lt;/a&gt;! Our team specializes in &lt;a href="https://www.evrig.com/magento-development-company/" rel="noopener noreferrer"&gt;Magento development&lt;/a&gt; and &lt;a href="https://www.evrig.com/magento-2-hyva-theme-development-company/" rel="noopener noreferrer"&gt;Hyva implementations&lt;/a&gt;, ensuring seamless upgrades and personalized solutions tailored to your business needs.&lt;/p&gt;

&lt;p&gt;Let’s transform your e-commerce experience together. &lt;/p&gt;

</description>
      <category>upgrade</category>
      <category>hyva</category>
      <category>magneto</category>
      <category>ecommerce</category>
    </item>
    <item>
      <title>Hyva: Display PDP Sections as Tabs on Desktop and Accordion on Mobile</title>
      <dc:creator>Evrig_Solutions</dc:creator>
      <pubDate>Tue, 10 Dec 2024 07:45:56 +0000</pubDate>
      <link>https://dev.to/evrig_solutions_/hyva-display-pdp-sections-as-tabs-on-desktop-and-accordion-on-mobile-4c59</link>
      <guid>https://dev.to/evrig_solutions_/hyva-display-pdp-sections-as-tabs-on-desktop-and-accordion-on-mobile-4c59</guid>
      <description>&lt;p&gt;In this tutorial, Today We will explain How to make PDP Sections display as Tabs in Desktop View and Accordion in Mobile View instead of Cards.&lt;/p&gt;

&lt;p&gt;**Step 1: Add the Code&lt;br&gt;
**You just copy and paste the below code into your PHTML File, CMS block, or CMS Page.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;div x-data="{ tab: 'tab1' }" id="tab_wrapper"&amp;gt;
   &amp;lt;div class="text-center border-gray-300 border-b hidden md:flex md:justify-cente`r"&amp;gt;
       &amp;lt;div :class="{ 'text-red-800': tab === 'tab1' }" @click.prevent="tab = 'tab1'" class="text-xl mx-4 font-bold text-black cursor-pointer"&amp;gt;TAB-1&amp;lt;/div&amp;gt;
       &amp;lt;div :class="{ 'text-red-800': tab === 'tab2' }" @click.prevent="tab = 'tab2'" class="text-xl mx-4 font-bold text-black cursor-pointer"&amp;gt;TAB-2&amp;lt;/div&amp;gt;
   &amp;lt;/div&amp;gt;
   &amp;lt;div&amp;gt;
       &amp;lt;div class="md:hidden text-xl font-bold cursor-pointer p-2 text-black bg-gray-100 border border-gray-300"
            @click="tab = 'tab1'"
            :class="{ 'active text-red-800': tab === 'tab1' }"&amp;gt;
           TAB-1
       &amp;lt;/div&amp;gt;
       &amp;lt;div x-show="tab === 'tab1'" class="p-3"&amp;gt;
           &amp;lt;h2&amp;gt;TAB-1 Content&amp;lt;/h2&amp;gt;
           &amp;lt;p&amp;gt;Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries,&amp;lt;/p&amp;gt;
       &amp;lt;/div&amp;gt;
   &amp;lt;/div&amp;gt;
   &amp;lt;div&amp;gt;
       &amp;lt;div class="md:hidden text-xl font-bold cursor-pointer p-2 text-black bg-gray-100 border border-gray-300"
            @click="tab = 'tab2'"
            :class="{ 'active text-red-800': tab === 'tab2' }"&amp;gt;
           TAB-2
       &amp;lt;/div&amp;gt;
       &amp;lt;div x-show="tab === 'tab2'" class="p-3"&amp;gt;
           &amp;lt;h2&amp;gt;TAB-2 Content&amp;lt;/h2&amp;gt;
           &amp;lt;p&amp;gt; but also the leap into electronic typesetting, remaining unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. &amp;lt;/p&amp;gt;
       &amp;lt;/div&amp;gt;
   &amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
```



**Step 2: Run the Commands
**Run the below commands to see your changes
`bin/magento cache:clean`



```
npm run build-prod
```



- Thebin/magento cache:clean command clears your Magento cache.

- The npm run build-prod command builds your Tailwind styles in the theme directory:
 app/design/frontend/Vendor/default/web/tailwind

**Advantages of This Approach
**
- Achieve this without adding any external JS/CSS.
- Minimal use of Tailwind classes and Alpine.
- Customizable: You can change the design to meet your requirements.
- Mobile friendly: It will convert accordion in the mobile view.
- Responsive: This code adapts its layout to different screen sizes, ensuring your code looks great on all devices.

**_[Get in Touch
](https://www.evrig.com/contact-us/)_**If you’re looking to optimize your PDP for better functionality, speed and user experience, reach out to us today! Whether it’s [Hyva](https://www.evrig.com/magento-2-hyva-theme-development-company/), custom development or performance optimization, we can help you achieve your business goals.

Contact Evrig for a free consultation and see how we can help you create seamless, engaging e-commerce solutions!
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>hyvathemes</category>
      <category>magneto</category>
      <category>magentodevelopment</category>
      <category>hyva</category>
    </item>
  </channel>
</rss>
