Shopify Hover problem

Over the years of Shopify development, me and my team has dealt with a lot of unique client requirements. Most of the times, these requirements don’t fall in or out of the box it’s just there because everybody is doing it. One of those requirements were of quick view functionality on products.

This quick view enables the user to hover over a product to quickly view the close up of the product or whatever image is placed second on the image carousel.

The description of the functionality sounds easy-peasy but the implementation however is difficult.

Couple of ways you can do it. Here you can set an offset and a limit to specifically grab the 2nd image:

{% for image in product.images offset:1 limit: 1%}
{{ image | img_url: ‘400×400’ | img_tag }}
{% endfor %}
Where 400×400 is, use whatever size you need.

Or a more straightforward approach would be:

{{ product.images[1] | img_url | img_tag }}
product.images gives you an array of all the images for the product, the number inside the brackets refers to the index of the image. Array indexes start with 0, so 1 would be the 2nd image.

If both of the aforementioned methods don’t work, you can try adding the functionality from scratch. Just follow these steps

1.Add CSS to your stylesheet

To add a hover effect, you will need to add some CSS code to your theme’s stylesheet:

From your Shopify admin, go to Online Store > Themes.
Find the theme you want to edit, and then click Actions > Edit code.

In the Assets directory, click theme.css.liquid. If your theme doesn’t have a theme.css.liquid file, then click styles.css.liquid, or another file with a .css.liquid file extension.

At the very bottom of the file, paste this code hosted on GitHub.

Click Save.

2. Edit the code for your product images

To edit the code for your product images:

In the Snippets directory, click product-grid-item.liquid.

If your theme doesn’t have a product-grid-item.liquid file, then look for one of the following:

product-card.liquid
product-card-grid.liquid
product-loop.liquid
Find the HTML img tag for your product images by searching for:

<img

The code for the tag varies theme to theme, but always starts with <img, and ends with either > or />. It might look similar to this:

 

<img src=”{{ featured.featured_image.src | img_url: ‘450×450’ }}” alt=”{{ featured.featured_image.alt | escape }}”>

On a new line above the img tag, paste the following code:

 

<div class=”reveal”>

On a new line below the img tag, paste the following code:

 

</div>

On a new line below the img tag, paste the following code:

The result should look like this:

<div class=”reveal”>

 <img src=”{{ featured.featured_image.src | img_url: ‘450×450’ }}” alt=”{{ featured.featured_image.alt | escape }}”>

</div>

On a new line below the img tag and above the closing

tag, add the code that changes what is shown on hover. The code that you add will vary depending on whether you want to show an alternate product image, custom text, or a combination of the two. Follow the steps for the customization of your choice:

3. Show an alternate product image on hover

On a new line below the img tag and above the closing

tag, paste the following code:

<img class=”hidden” src=”{{ product.images.last | img_url: ‘450×450’ }}” alt=”{{ product.images.last.alt | escape }}” />

Your code should look like this:

<div class=”reveal”>

 <img src=”{{ featured.featured_image.src | img_url: ‘450×450’ }}” alt=”{{ featured.featured_image.alt | escape }}”><!– this is your original image tag –>

 <img class=”hidden” src=”{{ product.images.last | img_url: ‘450×450’ }}” alt=”{{ product.images.last.alt | escape }}” />

</div>

Click Save.

A word of caution
As the Murphy’s law states that ‘Anything that can go wrong will go wrong’. This tutorial is meant for shopify experts with proficiency in web design languages such as HTML, CSS, Javascript and Liquid. So it’s highly recommended that you hire Shopify professionals like us.

We are able to change or customize shopify at any level. if your required above mention customization in your store please contact us or write a email on ecommercewebguru@gmail.com

Add To Cart button doesn’t open Cart Drawer (Brooklyn Theme)

This question has been asked numerous times in the shopify but you didn’t find good answer, so I’ll post again. I’m working in the Brooklyn theme, but this seems to be a recurring issue for a lot of themes.

How can the click action of “Add To Cart” buttons on pages other than the product page (i.e. collection) open the cart drawer rather than jumping to the cart page?

The goal is to allow customers to look at a product grid and quickly and easily add multiple items to the cart. All without navigating to individual product pages.

We are able to change or customize shopify at any level. if your required above mention customization in your store please contact us or write a email on ecommercewebguru@gmail.com

How to add product video instead of product image?

Are looking for help on this. Here some common question comes from our client.

  • Is there a way to have a video show up in the main products slider instead of images?
  • How to add product video instead of product image? (Supply theme)
  • I am struggling trying to add videos to my product pages instead of product images.

Here’s a simple way to set a video as your product image.

1. In your admin – select a product you would like to add a video to.
2. Hover over a product image you would like to add your youtube video to.
3. Select “Edit Alt Text”
4. Paste your Youtube embed link in the dialog box.
5. Save your changes!

I hope that works for you, please let me know!

We are able to change or customize shopify at  any level. if your required any customization in your store please contact us or write a email on ecommercewebguru@gmail.com

 

How to change brooklyn theme slideshow image for mobile device ?

Are you using the brooklyn theme for your shopify store and want to change the image in the mobile? Or Did you facing the some below listed proble with the brooklyn theme.

  • Brooklyn Theme – Hero image doesn’t resize in mobile view.
  • How to change the slideshow height to automatically adjust in mobile view?
  • How to edit the hero slideshow size in brooklyn theme.
  • How to change Brooklyn Theme / Hero sliding image mobile version
  • Brooklyn blurry hero image on device?

Brooklyn theme is responsive, this cropping is a natural feature of the theme. On mobile or smaller screens for example, the slides here are resized so that their height is the same as the height of your mobile/ device screen.

New images for mobile device

Did you required completely new solution for this. We can add the a new slider or new images for the mobile device. So you have the option to add different different images for the mobile and desktop device.

We are able to change slider or customise it any level. if your required this customization in your store please contact us or write a email on ecommercewebguru@gmail.com

How to configure multiple images as per variants in shopify

This article will show you how to add multiple variant images to product pages in the Shopify theme. The code may need to be required some adjusted to suit the theme you are working on.

To get started, I have loaded my variant images but now I want to associate additional images with each variant. I only want to display the associated images as thumbnails when the variant option is changed on my product pages.

For example: I only want the yellow chair image, and the yellow pillow image to show as thumbnails when “Option 2” is selected.
sample

I will be using alt tags to associate the additional images (alt tags don’t need to be applied to the feature images).

Apply the matching variant option title to each of the additional images:

sample2

We will begin our changes in the product.liquid file. Find the code for the image thumbnails, it should look like this:

{% for image in product.images %}
Above this line add:

{% assign featured_alt = product.selected_or_first_available_variant.option1 %}

Just after the for loop add an if statement (featured image should have already been defined above):

{% if image.alt == featured_alt or image == featured_image %}

We then need to add the script from the first file in this gist (the second file is the thumbnail code from the above screenshot). Add the code to to the bottom of the product.liquid template.

This is an example of what the switchImage function from the gist could look like:

var switchImage = function(newImageSrc, newImage, mainImageDomEl) {
jQuery(mainImageDomEl).attr('src', newImageSrc);
$(mainImageDomEl).parents('a').attr('href', newImageSrc);
};

All done now.just enjoy it.

When users land on website and then leave without clicking on anything, the term used to define this scenario is called Bounce Rate of website. Well, there are multiple reasons possible but one of the most prominent ones seems to be unnecessary popups concealing the content the users want to read, page taking long to load or simply users couldn’t find what they were seeking for.

Following are the few but worth implementing ways which can certainly be helpful to decrease your website bounce rate and increase conversion rate arrow.

Make Your Website Content Legible

If you lack in producing readable and engaging content then this could be the primary reason your customer would leave the website. Users will love to stay on website if content makes sense. Large chunks of text may look creepy so try to avoid it.

Go through the below few helpful tips to format readable content:

[checklist style=”3″]

  • Focus on subheadings as well.
  • Use bullet points to show benefits or points worth reading.
  • Make use of charts, images, quotes, memes, and screenshots to keep your users engaged.
  • Try to ask questions in your content to give readers an opportunity to interact.
  • Make your conclusion actionable.

[/checklist]

Impactful Landing Pages

If you are getting right traffic but if your landing page doesn’t meet the users’ expectations then they will be likely to say good bye to your website. If you are running a campaign for specific product or service, make sure that your visitors land on page that is optimised and built for campaign. Try to keep same imagery, fonts, language, and wording for the marketing ads, emails and posts.

Keep Your Website Blog Fresh & Updated

According to statistics, businesses that continuously update their blogs with unique and fresh content will likely to gain more traffic. By consistently adding readable content, you are gradually building the momentum and establishing trust, which means you can generate more revenue from repeat users because you have already established a level of trust with them.

No Popups Please

Suppose if you are reading good content and suddenly you see a pop up window distracting your momentum again and over again and irrelevant ads appear from left and right side, what will you do? Of course, you switch off the window. By taking this into consideration, it is worth avoiding attention diverting things such as pop ups and ads. No one like pop ups, do don’t use them.

Give Importance To Call-To-Action Buttons

Your call-to-action button should be compelling and easy to find to click on. Once you have succeeded in attracting users with your heading and kept them engaged using your great content, don’t lose them with weak CTA. Ensure that you have placed CTA logically and strategically. When optimizing CTA, each and every element does matter even something as changing the text on a button. Certainly, it can engage users and send them to a resource page on your site, thus reducing bounce rate.

Reduce Your Page Load Time

The slower your website load, the higher your bounce rate will be. Even Google is so much concerned about site speed – you can slip down in ranking if your website is performing very poor. The bottom line is that a slow loading website can destroy your business completely and encourage your users to land on your competitor website.

There are ways to find out and improvise some factors such as optimizing images, cache any heavy information, minify your CSS & JS files and make sure that your server infrastructure is configured and capable enough to support high speed loading of your website.

Obtain Mobile Friendly Website

Do you own a responsive website? If your prospects visit your website on different devices such as iPhone, iPads and Tablets, will it perform perfectly?

With increasing use of mobile devices, it is worth taking your brand to mobile, because your customers have their mobile devices anywhere they go. Today, we are living in mobile age and more than 95 percent customers are on mobile so it is essential to optimise website for them.

Implementing above tips can certainly reduce your website bounce rate. Remember to analyse any change you make and keep record of results which will further gives you an idea about what works and what doesn’t.

If you run an eCommerce business, you’re probably well aware of the increasingly important role social media plays in the evolution of online shopping. With 93 percent of consumers turning to social media to help make buying decisions—and 90 percent of them saying they trust product recommendations from their peers—avoiding social media simply isn’t an option if you want to compete online.

In recent years social media has become more and more popular all around the world. The social platforms are a great opportunity for your eCommerce business to increase its customer base, learn more about their shopping habits and also build loyalty. Here we describe some of the advantages of using social networks for eCommerce in your business.
The use of social networks allows you to increase your customer base by building an online presence. Not only that, your marketing campaigns can include a target public that you would never be able to reach using local advertising.
Another advantage of social networks for eCommerce is that you can use your brand presence to tell your customers and followers what your business is about. And when you offer them great content, your followers are more likely to share what your brand is offering with their friends and family. In other words, the social networks will give your business more visibility.

Using the social networks can also be a way of announcing promotional campaigns and special offers, and you can use the online content to tell your public more about the personal side of your brand. In other words, the content can help you create a connection with your potential customers, increase your consumer base and also build loyalty towards your brand.

eCommerce can also benefit from the social networks through the participation and interaction with the customers. The social networks allow users to make comments, suggestions, requests and to share queries about your business. This can help you find exactly the type of product your potential customers are looking for.
The social networks enable you to set specific demographic goals so the products are displayed precisely to the target public at which you are aiming. As you are targeting a specific group of potential customers, you can achieve the maximum return on your marketing investment.

We all know the Minimal theme is one of the best and commonly used theme in shopify store . We are working on lot’s of store based on Minimal theme. Minimal Fashion is a responsive theme specifically designed to adapt its display according to the device in use. It’s packed with great features you can customize according to your brand including the background layout, typography, product and collection views, navigation, colour schemes and images.

Here we list out the common thing which is requested by the store owner for there store.

  • How to add list view in Minimal theme?
  • How to add product pages slider, with arrows right and left at the sides.
  • How to add Multi-Level Menu – Minimal Theme .
  • How to add Full Screen Slider on home page on Minimal Theme.

We are able to change or customize it any level. if your requried any customization in your store please contact us or write a email on ecommercewebguru@gmail.com

We all know the brooklyn theme is one of the best and commonly used theme in shopify store . We are working on lot’s of store based on brooklyn theme. Here we list out the common thing which is demanded by the store owner for there store.

  • How to add image slideshow on product details page.
  • How to Change the height of hero image.
  • How to Center logo and menu for Brookln theme.
  • How to change the product grid on collection page to be four in a row.

We are able to change or customize it any level. if your requried any customization in your store please contact us or write a email on ecommercewebguru@gmail.com

How can we change the product image in to slider on brooklyn theme in shopify ?

Brooklyn is the one of the popular theme and modern responsive theme for your Shopify store. But while looking the product details page many of the store owner want to change the product details page. They want to change the product image in the the better slider option.

We have recently customize this for one of our client. You need to modify the product template for this. and required the jquery customization for this.

If you want to change in your store feel free to contact me at ecommercewebguru@gmail.com and we happy to work for you.

CONTACT US