header ads

How to Add a Responsive Hero section in Blogger website

How to Add a Responsive Hero section in Blogger website., How to create a Responsive Hero section in Blogger website. conversion-tools, C-Tools

Discover how to add a responsive hero section to your Blogger website, giving it a sleek and professional look.

Most Blogger themes lack a dedicated hero section, leaving users with a conventional blog post list that feels outdated.

To upgrade the aesthetics of your Blogger website, I've created a custom hero section that seamlessly integrates into any Blogger theme.

For this, you need to create a blank HTML widget below the navigation header.

What is a hero section and why is it important?

A hero section is the area that appears immediately after the navigation menu, typically set to full width and containing the key elements of a website.

It includes information about:

  • What you have to offer
  • Why people should trust you
  • The benefits of working with you
  • What action they should take next
  • It helps your brand stand out from others and users can easily navigate to the important sections of your website. It also helps boost your website's conversions.

    Let's suppose you are running a blog and you want your users to sign up for a newsletter. In this case, you can add a newsletter form or button in the hero section and encourage your visitors to sign up for your newsletter.

    How to Design a Great Hero Section

  • Create a Powerful Headline
  • Follow It Up with a Strong Subheading
  • Include a Call-to-Action
  • Use a Captivating Hero Image or Video
  • Let's check how you can add the newsletter button on your Blogger website.

    Steps to Add a Responsive Hero Section in Blogger

    To add the hero section in Blogger, follow the steps below:

    1. Go to the Blogger layout section and find the hero section.

    2. Now click on add Gadgets option and select the custom HTML/JavaScript option

    3. Now paste the below HTML code in the box and edit the content. 

    <div class='hero'>
    <div class='hero-items'>
    <h2> Develop Your Creative Skill with <br/> Free Design Tutorials</h2>
    <p>Our blog helps to Provide Latest Graphic design Tips, Trends, Resources that <br/> you need to start your new projects.  Get Daily Inbox by subscribe <br/> our newsletter.</p>
    <div class='butto'>
    <button id='full'
        onclick="window.location.href = '#';">
            Click Here
        </button>
    
    <button id='outline'
        onclick="window.location.href = 'https://example.com';">
            Wordpress
        </button>
    </div>
    </div>
    </div>

    4. Now copy the below CSS code and paste it just below the HTML code. 

    <style>
    /* hero items */
    .hero {
    background-color: inherit;
    }
    .hero-items {
    display: flex;
    padding: 1rem 0;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 1rem;
    }
    .hero-items h2 {
    font-size: 50px;
    font-weight: 800;
    width: 850px;
    }
    .hero p {
    font-size: 17px;
    font-weight: 500;
    margin: 1rem 0;
    }
    .hero button{
    padding: 1rem 4rem;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    border-radius: 3px;
    transition: all 0.2s ease-in;
    margin: 1rem 0;
    border-color: #204ecf;
    }
    .hero button:hover{
    cursor: pointer;
    background: rgb(80, 148, 252);
    transition: all 0.2s ease-in;
    }
    .butto{
    display: flex;
    gap: 1rem;
    }
    #full{
    background: rgb(49, 172, 255);
    }
    #outline{
    background: none;
    border: 1px solid rgb(49, 173, 255);
    color: inherit;
    }
    #outline:hover{
    background: rgb(49, 173, 255);
    color: #fff;
    }
    @media(max-width: 780px){
    .hero h2{
    font-size: 40px;
    width: 100%;
    }
    }
    @media(max-width: 400px){
    .hero-items{
    align-items: flex-start;
    text-align: left;
    }
    .hero h2{
    font-size: 30px;
    }
    .hero p{
    font-size: 16px;
    }
    .hero button{
    padding: 9px 15px;
    }
    }
    </style>

    5. Now save the code and the hero section is added to your Blogger website.

    If you still have doubts, feel free to ask me in the comment section.

    Post a Comment