Add blog category menu or filter with tags as submenu or subfilter in shopify.

First create menu in shopify navigation and then add below code in liquid file.

<ul class="ctg">
   {% for link in linklists.blog.links %}
   <li class="{% if link.active or link.child_active %}active{% endif %}">
      <a href="{{ link.url }}">{{ link.title }}</a>
      {% if blog.all_tags != blank %}
      <ul class="tag">
         {% for tag in blog.all_tags %}
         <li class="tag">
            <a href="{{ shop.url}}/blogs/{{ blog.handle }}/tagged/{{ tag | handleize }}">{{ tag }}</a>
         </li>
         {% endfor %}
      </ul>
      {% endif %}
   </li>
   {% endfor %}
</ul>

Why you should hire website developer from india?

Hiring a website developer from India offers several advantages that make it an attractive option for businesses worldwide. Here are some compelling reasons:

  1. Cost-Effective Solutions:
    • One of the primary reasons companies hire developers from India is the cost advantage. Indian developers typically charge lower rates compared to their counterparts in North America or Europe, allowing businesses to get high-quality development services at a fraction of the cost.
  2. Skilled Talent Pool:
    • India is home to a vast pool of highly skilled and experienced developers. Many Indian developers have degrees in computer science or engineering and are proficient in various technologies, frameworks, and programming languages.
  3. High-Quality Work:
    • Despite the lower costs, Indian developers are known for delivering high-quality work. They are often well-versed in the latest industry standards and best practices, ensuring robust, efficient, and scalable website development.
  4. Strong Communication Skills:
    • English is widely spoken and understood in India, which facilitates clear and effective communication. This minimizes the risk of misunderstandings and ensures that project requirements are accurately conveyed and executed.
  5. Time Zone Advantage:
    • The time zone difference can be leveraged to ensure round-the-clock productivity. While your in-house team is off-duty, Indian developers can continue working on the project, leading to faster turnaround times and the ability to meet tight deadlines.
  6. Diverse Expertise:
    • Indian developers offer a wide range of expertise, from front-end and back-end development to specialized skills in e-commerce platforms, CMS, mobile app development, and more. This diversity allows you to find developers with the exact skill set needed for your project.
  7. Focus on Innovation:
    • Many Indian developers are passionate about technology and innovation. They keep themselves updated with the latest trends and advancements in the tech world, which can bring fresh ideas and innovative solutions to your project.
  8. Scalability:
    • Hiring from India provides the flexibility to scale your team up or down as per your project requirements. This is particularly beneficial for startups and growing businesses that need to adapt to changing project scopes and budgets.
  9. Strong Work Ethic:
    • Indian developers are known for their strong work ethic and dedication. They often go the extra mile to ensure that projects are completed on time and meet or exceed client expectations.
  10. Global Client Experience:
    • Many Indian developers have experience working with international clients. They are familiar with different cultures, business practices, and expectations, which helps in delivering projects that align with global standards.
  11. Support and Maintenance:
    • Post-development support and maintenance are crucial for the smooth functioning of a website. Indian developers often provide reliable ongoing support services, ensuring that any issues are promptly addressed and the website remains up-to-date.

By hiring a website developer from India, businesses can benefit from cost savings, access to a talented and diverse pool of developers, high-quality work, and effective communication, making it a smart choice for many companies looking to enhance their digital presence.

Difference between B.Tech and B.Tech Integrated

The difference between a regular B.Tech (Bachelor of Technology) and a B.Tech Integrated program lies primarily in their structure, duration, and curriculum:

  1. B.Tech (Bachelor of Technology):
    • B.Tech is typically a four-year undergraduate degree program offered by various universities and colleges.
    • It focuses on specialized technical fields such as Computer Science, Mechanical Engineering, Electrical Engineering, Civil Engineering, etc.
    • The curriculum usually includes core engineering courses along with elective courses, practical labs, and a final-year project.
    • Students typically join B.Tech programs after completing their higher secondary education (12th grade) or an equivalent qualification.
  2. B.Tech Integrated (Bachelor of Technology Integrated):
    • B.Tech Integrated programs are often structured as combined undergraduate and postgraduate degree programs.
    • These programs typically span five years or more and integrate undergraduate and postgraduate studies into a single curriculum.
    • Students may obtain both a bachelor's and a master's degree upon completion of the program.
    • The integrated curriculum may offer students a seamless transition from undergraduate to postgraduate studies within the same field of specialization.
    • B.Tech Integrated programs may provide students with opportunities for advanced coursework, research projects, and internships throughout their studies.

In summary, while both B.Tech and B.Tech Integrated programs focus on technical education, B.Tech Integrated programs offer a more integrated approach, combining undergraduate and postgraduate studies into a single curriculum and providing students with a broader and more comprehensive educational experience.

Easy way to learn website development

Learning website development can be an exciting journey, and there are several approaches to make the process easier and more enjoyable:

  1. Start with the Basics: Begin by learning HTML (Hypertext Markup Language) and CSS (Cascading Style Sheets). These are the building blocks of web development and provide the foundation for creating web pages.
  2. Online Tutorials and Courses: Take advantage of the vast array of online tutorials and courses available. Websites like Codecademy, freeCodeCamp, and Udemy offer comprehensive courses on web development for beginners.
  3. Practice, Practice, Practice: Apply what you learn by building simple projects. Start with static web pages and gradually move on to more complex projects as you gain confidence.
  4. Learn JavaScript: Once you're comfortable with HTML and CSS, dive into JavaScript. JavaScript adds interactivity and dynamic behavior to web pages, making them more engaging for users.
  5. Utilize Developer Tools: Familiarize yourself with browser developer tools. They allow you to inspect and debug your code, helping you understand how web pages are constructed and how to troubleshoot issues.
  6. Follow Coding Standards and Best Practices: Adopt good coding practices early on. This includes proper indentation, commenting your code, and following naming conventions. It will make your code more readable and maintainable.
  7. Work on Real-world Projects: Collaborate with others or contribute to open-source projects. Real-world projects provide valuable experience and help you apply your skills in practical scenarios.
  8. Stay Updated: The field of web development is constantly evolving. Stay updated with the latest trends, technologies, and best practices by following blogs, attending webinars, and participating in online communities.
  9. Seek Feedback: Don't hesitate to seek feedback from peers or more experienced developers. Constructive feedback can help you identify areas for improvement and grow as a developer.
  10. Be Patient and Persistent: Learning web development takes time and patience. Don't get discouraged by challenges or setbacks. Stay persistent, keep practicing, and celebrate your progress along the way.

By following these tips and staying dedicated to your learning journey, you'll be well on your way to mastering website development. Remember, the key is to keep learning, experimenting, and enjoying the process!

The most common keyboard shortcuts in macOS

macOS includes a variety of keyboard shortcuts that can help you perform tasks more efficiently. Here are some commonly used macOS keyboard shortcuts:

General Shortcuts:

  1. Command (⌘) + C: Copy
  2. Command (⌘) + X: Cut
  3. Command (⌘) + V: Paste
  4. Command (⌘) + Z: Undo
  5. Command (⌘) + Shift + Z: Redo
  6. Command (⌘) + A: Select All
  7. Command (⌘) + F: Find
  8. Command (⌘) + Space: Spotlight Search
  9. Command (⌘) + Tab: Switch between open applications
  10. Command (⌘) + `, (comma): Cycle through open windows in the active application
  11. Command (⌘) + W: Close the active window
  12. Command (⌘) + Q: Quit the active application
  13. Command (⌘) + Option + Esc: Force Quit
  14. Command (⌘) + H: Hide the active application
  15. Command (⌘) + M: Minimize the active window

File and Folder Shortcuts:

  1. Command (⌘) + N: New Finder window
  2. Command (⌘) + O: Open a file or folder
  3. Command (⌘) + S: Save
  4. Command (⌘) + P: Print
  5. Command (⌘) + W: Close a Finder window
  6. Command (⌘) + I: Get Info for selected item
  7. Command (⌘) + Delete: Move selected item to Trash

Text Editing Shortcuts:

  1. Command (⌘) + B: Bold
  2. Command (⌘) + I: Italic
  3. Command (⌘) + U: Underline
  4. Command (⌘) + T: Show Fonts
  5. Option + Delete: Delete the word to the left of the cursor

Screenshot Shortcuts:

  1. Command (⌘) + Shift + 3: Capture the entire screen
  2. Command (⌘) + Shift + 4: Capture a selected portion of the screen
  3. Command (⌘) + Shift + 4, then Spacebar: Capture a specific window

Mission Control and Spaces Shortcuts:

  1. F3 (or Control + Up Arrow): Mission Control (Exposé)
  2. Control + Left/Right Arrow: Switch between desktop spaces

System Preferences:

  1. Command (⌘) + , (comma): Open System Preferences

Spotlight Shortcuts:

  1. Command (⌘) + Space: Open Spotlight search

Safari Shortcuts:

  1. Command (⌘) + T: Open a new tab
  2. Command (⌘) + W: Close the active tab
  3. Command (⌘) + Shift + T: Reopen the last closed tab

These are some of the most common keyboard shortcuts in macOS. Keep in mind that different applications may have their own unique shortcuts, and you can often customize shortcuts in macOS to suit your preferences. To view and customize keyboard shortcuts for a specific application, go to the "App Name" menu > Preferences > Keyboard.

Add current date using javascript

<span id="current_date"></span>
const month = ["January","February","March","April","May","June","July","August","September","October","November","December"];
const d = new Date();
let name = month[d.getMonth()];
year = d.getFullYear();
mnth = d.getMonth() + 1;
day = d.getDate() + 3;
document.getElementById("current_date").innerHTML = name + ", " + day + " " + year;

Show different style of div for mobile and desktop using css

Certainly! Here's an example of how you can apply different styles to a <div> for mobile and desktop devices using CSS:

/* Styles for mobile devices */
@media (max-width: 767px) {
  .my-div {
    background-color: lightblue;
    color: white;
  }
}

/* Styles for desktop devices */
@media (min-width: 768px) {
  .my-div {
    background-color: lightgreen;
    color: black;
  }
}

In the example above, we use media queries to target different screen widths. The first media query targets devices with a maximum width of 767px, representing mobile devices. Within this media query, the .my-div class is styled with a light blue background color, white text color, a font size of 16 pixels, and a padding of 20 pixels.

The second media query targets devices with a minimum width of 768px, representing desktop devices. Within this media query, the .my-div class is styled with a light green background color, black text color, a font size of 20 pixels, and a padding of 30 pixels.

By applying different styles within each media query, you can create distinct visual presentations for mobile and desktop versions of the <div>. Feel free to adjust the styles and properties according to your specific design needs.

Send email using php

HTML Code:

<form action="contactform.php" name="contactForm" method="post" id="contactForm">
  <div class="row form-group">
    <div class="col-md-6">
      <label for="fname">First Name</label>
      <input type="text" id="fname" name="fname" class="form-control" placeholder="Your firstname" required />
    </div>
    <div class="col-md-6">
      <label for="lname">Last Name</label>
      <input type="text" id="lname" name="lname" class="form-control" placeholder="Your lastname" required />
    </div>
  </div>
  <div class="row form-group">
    <div class="col-md-12">
      <label for="email">Email</label>
      <input type="text" id="email" name="email" class="form-control" placeholder="Your email address" required />
    </div>
  </div>
  <div class="row form-group">
    <div class="col-md-12">
      <label for="subject">Subject</label>
      <input type="text" id="subject" name="subject" class="form-control" placeholder="Your subject of this message" required />
    </div>
  </div>
  <div class="row form-group">
    <div class="col-md-12">
      <label for="message">Message</label>
      <textarea name="message" id="message" cols="30" rows="10" class="form-control" placeholder="Say something about your project" required /></textarea>
    </div>
  </div>
  <div class="form-group">
    <input type="submit" value="Send Message" class="btn btn-primary">
  </div>
</form>

PHP Code:

<?php
ini_set("display_errors", 1);
error_reporting(E_ALL);
ini_set("SMTP", "smtp.secureserver.net");
ini_set("smtp_port", 25);
?>
<?php
$to = "demo@demo.com";
$firstname = $_POST["fname"];
$lastname = $_POST["lname"];
$email = $_POST["email"];
$subjects = $_POST["subject"];
$message = $_POST["message"];

$subject = "Inquiry Received";
if ($email != "") {
    function get_client_ip()
    {
        $ipaddress = "";
        if (getenv("HTTP_CLIENT_IP")) {
            $ipaddress = getenv("HTTP_CLIENT_IP");
        } elseif (getenv("HTTP_X_FORWARDED_FOR")) {
            $ipaddress = getenv("HTTP_X_FORWARDED_FOR");
        } elseif (getenv("HTTP_X_FORWARDED")) {
            $ipaddress = getenv("HTTP_X_FORWARDED");
        } elseif (getenv("HTTP_FORWARDED_FOR")) {
            $ipaddress = getenv("HTTP_FORWARDED_FOR");
        } elseif (getenv("HTTP_FORWARDED")) {
            $ipaddress = getenv("HTTP_FORWARDED");
        } elseif (getenv("REMOTE_ADDR")) {
            $ipaddress = getenv("REMOTE_ADDR");
        } else {
            $ipaddress = "UNKNOWN";
        }
        return $ipaddress;
    }
    $IPAddress = get_client_ip();
    $header = "From: $email \r\n";
    $header .= "MIME-Version: 1.0\r\n";
    $header .= "Content-type: text/html\r\n";
    $header .= "X-Mailer: PHP \r\n";
    $message = "<table width='900' style='border:1px solid #798eea;' cellpadding='5' cellspacing='0' align='center'><tr><td width='150' style='margin:0; padding:0 0 0 10px; background-color:#798eea; color:#FFFFFF;'>First Name</td><td width='8' style='margin:0; padding:0 0 0 10px; background-color:#798eea; color:#FFFFFF;'>:</td><td style='padding-left:15px; margin:0; color:#000000; border-bottom:1px solid #798eea'>$firstname</td></tr><tr><td width='150' style='margin:0; padding:0 0 0 10px; background-color:#798eea; color:#FFFFFF;'>Last Name</td><td width='8' style='margin:0; padding:0 0 0 10px; background-color:#798eea; color:#FFFFFF;'>:</td><td style='padding-left:15px; margin:0; color:#000000; border-bottom:1px solid #798eea'>$lastname</td></tr><tr><td width='150' style='margin:0; padding:0 0 0 10px; background-color:#798eea; color:#FFFFFF;'>Email</td><td width='8' style='margin:0; padding:0 0 0 10px; background-color:#798eea; color:#FFFFFF;'>:</td><td style='padding-left:15px; margin:0; color:#000000; border-bottom:1px solid #798eea'>$email</td></tr><tr><td width='150' style='margin:0; padding:0 0 0 10px; background-color:#798eea; color:#FFFFFF;'>Subject</td><td width='8' style='margin:0; padding:0 0 0 10px; background-color:#798eea; color:#FFFFFF;'>:</td><td style='padding-left:15px; margin:0; color:#000000; border-bottom:1px solid #798eea'>$subjects</td></tr><tr><td width='150' style='margin:0; padding:0 0 0 10px; background-color:#798eea; color:#FFFFFF;'>Message</td><td width='8' style='margin:0; padding:0 0 0 10px; background-color:#798eea; color:#FFFFFF;'>:</td><td style='padding-left:15px; margin:0; color:#000000; border-bottom:1px solid #798eea'>$message</td></tr></table>";
    if (mail($to, $subject, $message, $header)) {
        echo "<script>alert('Thank you for Applying. We will contact you as a possible');window.location = '/';</script>";
    }
} else {
    header("Location: http://{$_SERVER["SERVER_NAME"]}/");
    die();
}
?>

The mail() function is a built-in PHP function for sending email. It requires a working email server configuration on your server to send the email successfully. Note that the mail() function may not work properly on all systems or configurations.

Which is best option for responsive website? Custom css media query or framework?

The choice between using custom CSS media queries or a framework for building a responsive website depends on various factors, including your project requirements, development expertise, and personal preference. Both options have their advantages and considerations:

Custom CSS Media Queries:

Frameworks:

Ultimately, the best option depends on your specific project requirements, your familiarity with CSS, and your development approach. If you prefer maximum control and have the necessary expertise, custom CSS media queries can offer a tailored solution. On the other hand, if you prioritize efficiency, consistent design, and a faster development process, using a framework may be a suitable choice.

Freelance Website Designer and Developer
Indoc Web Design

Copyright © 2024 All rights reserved
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram