<?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: MozzamShahid</title>
    <description>The latest articles on DEV Community by MozzamShahid (@mozzamshahid).</description>
    <link>https://dev.to/mozzamshahid</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2167117%2F3420f9e7-8239-4d56-94f4-475c52c3f1fe.png</url>
      <title>DEV Community: MozzamShahid</title>
      <link>https://dev.to/mozzamshahid</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mozzamshahid"/>
    <language>en</language>
    <item>
      <title>Shopify Custom Section Announcement Bar with Scrolling</title>
      <dc:creator>MozzamShahid</dc:creator>
      <pubDate>Thu, 19 Dec 2024 13:39:05 +0000</pubDate>
      <link>https://dev.to/mozzamshahid/shopify-custom-section-announcement-bar-with-scrolling-31n7</link>
      <guid>https://dev.to/mozzamshahid/shopify-custom-section-announcement-bar-with-scrolling-31n7</guid>
      <description>&lt;p&gt;Hi, My name is Mozzam. You can learn more about me on Upwork.&lt;/p&gt;

&lt;p&gt;Today we are going to build a manageable announcement bar for updating our customers. Due to Christmas holidays, shipments can arrive late.&lt;/p&gt;

&lt;p&gt;Here are the details.&lt;/p&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%2Fd2z3bjkaus0khhy2vor8.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%2Fd2z3bjkaus0khhy2vor8.png" alt="Image description" width="800" height="88"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here are the complete details.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Go Shopify Code Editor&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%2F2z9imgx31w4ujtgzc01r.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%2F2z9imgx31w4ujtgzc01r.png" alt="Image description" width="800" height="432"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Then open Section &amp;gt; Create Liquid File By AnyName (In my case, I name it announcement.liquid.)&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%2F9ym4lykhrpssvm84lqtg.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%2F9ym4lykhrpssvm84lqtg.png" alt="Image description" width="800" height="432"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Paste the Code&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{{ 'abar.css' | asset_url | stylesheet_tag }}
&amp;lt;div class="main-div"&amp;gt;
&amp;lt;div class="main-text"&amp;gt;{{ section.settings.bar }}&amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;

{% schema %}
  {
    "name": "Bar", "tag": "section", "class": "section",
    "settings": [
      {
        "type": "text",
        "id": "bar",
        "label": "Bar Text"
      }
    ],
    "presets": [
      {
        "name": "Bar",
      }
    ],
    "enabled_on": {
      "templates": ["*"],
      "groups": ["header"],
    },
  }
{% endschema %}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Then in the asset folder create a CSS file.&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%2Fgscspvm96ccsmjw8t5fy.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%2Fgscspvm96ccsmjw8t5fy.png" alt="Image description" width="800" height="432"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.main-div{
  display: flex;
  justify-content: center;
  height: 40px;
  background-color: black;
  color: white;
  text-align: center;
  align-items: center;
}

.main-text{
  font-family: sans-serif;
  font-weight: semi-condensed;
}

.main-text{
  animation: textscroll 25s linear 1s reverse infinite;
}

@keyframes textscroll {
  0%{
    transform: translateX(-100vw);
  }
  100%{
    transform: translateX(100vw);
  }
}

@media screen and (max-width: 769px){
  .main-text{
  width: 100vw;
     white-space: nowrap;
      animation: textscroll 15s linear 1s reverse infinite;

}
} 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here it is, and you can directly make changes in your theme.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Shopify Custom Coded: Vimeo/Youtube Review Section</title>
      <dc:creator>MozzamShahid</dc:creator>
      <pubDate>Wed, 18 Dec 2024 18:48:06 +0000</pubDate>
      <link>https://dev.to/mozzamshahid/shopify-custom-coded-vimeoyoutube-review-section-1m40</link>
      <guid>https://dev.to/mozzamshahid/shopify-custom-coded-vimeoyoutube-review-section-1m40</guid>
      <description>&lt;p&gt;Here is the End Result&lt;/p&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%2Fmywmcf9hbaczatbh4n4q.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%2Fmywmcf9hbaczatbh4n4q.png" alt="Image description" width="800" height="432"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Hi, My Name is Mozzam Shahid. An Information Technology Graduate, Based in Lahore, running a brand name cosmeticmoon.com.pk Who I'm Why you should take interest in this Blog. I've been doing Shopify E-commerce consultation and marketing for the past 5 years. during this time most of the top brands in the e-commerce space that in the UK, CA, USA, EU, AU, Bulgaria, Morocco, Dubai, NL, and Germany. Honestly, I forget half of there names. People from 500 Fortune Inc. Standford, Howard Enterpenures to Enterpenures from the Streets I worked with everyone. Yes, Even the Enterpenure that is from the Pacific.&lt;/p&gt;

&lt;p&gt;This year Finding a Shopify Developer is getting though as we are busy, spending time in inventory, marketing, and designing. I always listen that something is not possible, time taking this and that. &lt;/p&gt;

&lt;p&gt;So I've decided to make some boxes that are from scratch Special Thanks to the Howard CS50X Course By David J. Malan. His teaching is very helpful.&lt;/p&gt;

&lt;p&gt;The Blog is starting from this point&lt;/p&gt;

&lt;p&gt;Open Shopify &amp;gt; Online Store &amp;gt; "Make a Duplicate of your theme" &amp;gt; Click on 3 Dots &amp;gt; Edit Code&lt;/p&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%2Fltbau3abq2q8jagvsaux.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%2Fltbau3abq2q8jagvsaux.png" alt="Image description" width="800" height="432"&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;Go to Sections &amp;gt; Click on Add a Section &amp;gt; Choose Liquid &amp;amp; Name a section&lt;/p&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%2F5zbjua9rdehhsp3rtxk3.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%2F5zbjua9rdehhsp3rtxk3.png" alt="Image description" width="800" height="432"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In My Case, I've named head-video.liquid&lt;/p&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%2Frc0gxxsul9pipkvuccbx.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%2Frc0gxxsul9pipkvuccbx.png" alt="Image description" width="800" height="432"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Following is the code&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{{ 'head-video.css' | asset_url | stylesheet_tag }}
&amp;lt;div class="main-video"&amp;gt;
        &amp;lt;div class="heading-video"&amp;gt;{{ section.settings.headline }}&amp;lt;/div&amp;gt;
        &amp;lt;p class="description-video"&amp;gt;{{ section.settings.description }}&amp;lt;/p&amp;gt;

            &amp;lt;div class="video-section"&amp;gt;
              {% for block in section.blocks %}
            &amp;lt;iframe class="player-videos" src="{{ block.settings.main-video }}" frameborder="0" allow="autoplay; fullscreen; picture-in-picture; clipboard-write" title="Basket of Love"&amp;gt;
            &amp;lt;/iframe&amp;gt;
              {% endfor %}
            &amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;

{% schema %}
  {
    "name": "VideoReview", "tag": "section", "class": "section",
    "disabled_on": {
      "groups": ["header", "footer"]
    },
    "settings": [
      {
        "type": "inline_richtext", "id": "headline", "label": "Video Section Headline"
      },
      {
        "type": "text",   "id": "description", "label": "Description"
      }
    ],
    "max_blocks": 3,
    "blocks": [
      {
        "name": "Video",
        "type": "video",
        "settings": [
          {
          "type": "video_url", "id": "main-video", "label": "Video URL",
            "accept": [
          "youtube",
          "vimeo"
        ]
          }
        ]
      },
    ],
    "presets": [
      {
        "name": "VideoReviews",
        "blocks": [
      {
        "type": "video",
      }
      ]
      }
    ]
  }
{% endschema %}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here is the CSS Code &lt;br&gt;
Now go to assets and create a CSS file same name&lt;/p&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%2Fz178m93ye7ap4xuvjxyp.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%2Fz178m93ye7ap4xuvjxyp.png" alt="Image description" width="800" height="432"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.player-videos{
    height:600px;
}

.main-video{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2px;
    padding: 20px;
}

.heading-video{
    font-size: 32px;
    font-weight: semi-condensed;
}

.description-video{
    font-size: 18px;
    text-align: center;
}

.video-section {
  display: flex;
  justify-content: center;
  align-content: center;
  gap: 20px;
  border-radius: 5px;
}

@media screen and (max-width:769px){
  .video-section {
  flex-direction: column;

}

}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now we will talk about it in detail&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Facebook Page Invite Code 2024 | Work for People that Like Your Post</title>
      <dc:creator>MozzamShahid</dc:creator>
      <pubDate>Mon, 25 Nov 2024 10:43:05 +0000</pubDate>
      <link>https://dev.to/mozzamshahid/facebook-page-invite-code-2024-work-for-people-that-like-your-post-25e9</link>
      <guid>https://dev.to/mozzamshahid/facebook-page-invite-code-2024-work-for-people-that-like-your-post-25e9</guid>
      <description>&lt;p&gt;Here is the Code Paste that in the Console&lt;br&gt;
Make Sure first you scroll down to the bottom of the invite tab so that every invite button is shown. Then, paste the code and sit back and relax.&lt;/p&gt;

&lt;p&gt;`let mozzam = function() {&lt;br&gt;
    let buttons = document.querySelectorAll('[aria-label="Invite"]:not([data-clicked])');&lt;br&gt;
    let index = 0;&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;let interval = setInterval(() =&amp;gt; {
    if (index &amp;lt; buttons.length) {
        buttons[index].click();
        buttons[index].setAttribute('data-clicked', 'true'); // Mark button as clicked
        index++;
    } else {
        window.scrollBy(0, window.innerHeight); // Scroll down
        buttons = document.querySelectorAll('[aria-label="Invite"]:not([data-clicked])'); // Update buttons
        index = 0;

        if (buttons.length === 0) {
            clearInterval(interval); // Stop when no buttons remain
            console.log("No more buttons to click!");
        }
    }
}, 3000); // Click every 3 seconds
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;};&lt;/p&gt;

&lt;p&gt;mozzam();&lt;/p&gt;

&lt;p&gt;`&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
