Customizing Instagram Feed with the help of CSS
You can easily adjust the appearance of Instagram Feed on the Layout, Post and Style tabs of your widget settings. However, if the available options are not enough for your use-case, we are happy to introduce the CSS selectors base. Using Cascading Style Sheets (CSS), you can adjust all the elements in detail so that they fully meet your website design requirements.
In this article
Please keep in mind that CSS writing requires strict adherence to the rules, otherwise, it can lead to unpredictable consequences or widget break.
Instagram Feed CSS classes
Here is the list of classes that can be used for customization of the widget elements:
- es-widget
- es-widget-title
- es-layout
- es-layout-grid
- es-layout-carousel
- es-layout-grid-content
- es-layout-carousel-content
- es-layout-carousel-arrow
- es-layout-carousel-arrow-prev
- es-layout-carousel-arrow-next
- es-load-more-button
- es-post
- es-post-type
- es-post-media
- es-post-media-image
- es-post-media-video
- es-post-text
- es-post-likes-count
- es-post-comments-count
- es-post-source
- es-post-follow
- es-post-share
- es-post-date
- es-post-location
- es-post-user-name
- es-post-user-picture
- es-post-media-carousel
- es-post-media-carousel-pagination-item
- es-post-media-carousel-pagination-item-active
- es-post-media-carousel-arrow
- es-post-media-carousel-arrow-prev
- es-post-media-carousel-arrow-next
- es-popup
- es-popup-close
- es-post-like-notification
How to add a CSS code
Once you have prepared the CSS code, navigate to the widget's settings and add it to the special field for CSS codes. To illustrate, let's say you wish to modify the widget's font using the following code:
.es-widget { font-family: Calibri; }
- 1
- Open the Style tab of the widget settings and click Custom CSS:
- 2
- Paste the code to the Custom CSS field and save the changes:
Done! You've successfully added your CSS code to the widget.
Feel free to customize your Instagram Feed widget with our public list of CSS codes! You can check it out here: CSS codes for Instagram Feed.