Here, we will discuss on how to include a Javascript and CSS Content Slider on to your Blogger Site. All you have to do is to follow this article carefully and you will be able to add a Slider on to your account. Let's see on how to do this.
Note: Wherever, there is need of "Image Url", just copy and paste the img src attributes. You can get the attributes right from the HTML Button. Save the blog post.
<link href="https://googledrive.com/host/XXXXXXXXXXXXXXXXXXXXXXXXXXXX" rel="stylesheet" />
<script src="https://googledrive.com/host/YYYYYYYYYYYYYYYYYYYYYYYYYYYY" type="text/javascript"></script>
At first, you need to download these two files.
Part:1
- Go to your blogger account and create a new post and enter Test in the Title Box.
- Now, insert the images which you want to use as Slider in your account.
- Once, you have inserted the images, make sure that you have chosen the HTML rather than Toggle Button.
- In Blogger, focus your cursor below the existing markup and paste the below written code in to the HTML. If you preview the blog post at this point the slider will not be rendered properly because the CSS and JavaScript have not yet been included.
The Codes to be Entered:
<div class="slider" id="my-slider">
<ul>
<li>
<img src="First Image Url" />
<div class="ism-caption ism-caption-0">First Image</div>
</li>
<li>
<img src="Second Image Url" />
<div class="ism-caption ism-caption-0">Second Image</div>
</li>
<li>
<img src="Third Image Url" />
<div class="ism-caption ism-caption-0">Third Image</div>
</li>
</ul>
</div>
Note: Wherever, there is need of "Image Url", just copy and paste the img src attributes. You can get the attributes right from the HTML Button. Save the blog post.
Part: 2
- Open a new browser tab, go to Google Drive and sign in if you need to.
- Click on the New button and select File upload from the drop-down menu.
- Select the JavaScript file which you have downloaded at the beginning of this article.
- Follow the above steps again to upload the CSS file.
- Now, locate the two files in your Google Drive.
- Either click on My Drive or Recent in the left-hand menu.
- Right-click on CSS_file and select Share from the context menu.
- The "Share with others" options popup will appear. Make sure the "Anyone with the link can view" option is selected.
- Click "Get shareable link", located towards the top right of the panel.
- The URL of the file should now be copied to your clipboard.
- Either paste the copied URL into a text file or make a note of it, because we are going to need it later.
- Repeat steps 7, 8, 9 and 10 for Java_file.
Part: 3
- Go back to Blogger, make sure you're signed in and click through to your blog's Overview page.
- Select "Template" from the left-hand menu.
- You may need to select a template before continuing.
- There should be a template preview near the top of the page.
- Click the Edit HTML button, which will open a HTML editor for you edit your blog's template.
- Enter the following two lines above the closing </head:> tag:
<link href="https://googledrive.com/host/XXXXXXXXXXXXXXXXXXXXXXXXXXXX" rel="stylesheet" />
<script src="https://googledrive.com/host/YYYYYYYYYYYYYYYYYYYYYYYYYYYY" type="text/javascript"></script>
For the link tag, which we use to include the CSS file, replace the 28-character identifier with the one you copied from Google Drive.
https://drive.google.com/open?id=0B0Lx6QimWZErUUVXS0Ytd1huRVE
Here, in this case, we will replace the XXXXXXXXXXXXXXXXXXXXXXXXXXXX with 0B0Lx6QimWZErUUVXS0Ytd1huRVE Similarly, for the script tag, which includes the JavaScript file, replace the 28-character identifier with the one you copied from the Google Drive. Save the template.
Conclusion
This is it. I hope you get your own Java Slider on your Blogger Site. If you still have any doubt, you can ask us in the comment section.
Comments
Post a Comment