How To Create Sticky Floating Footer Bar In GeneratePress?

In this article, we are going to see how to create sticky floating footer bar in GeneratePress theme. I have seen that multiple website owners face problems in creating a sticky floating footer bar in GeneratePress theme and this is one of the most common issues seen on GeneratePress’s official forum.

There is a simple method of accomplishing this in the GeneratePress premium version. For those who are running the GeneratePress free version, they need to do this via downloading a plugin.

How to create sticky footer in GeneratePress?

  1. Install & activate WPFront Notification Bar plugin
  2. Go to its settings page
  3. Check mark on “Enabled” and “Preview mode”
  4. Select position as Bottom
  5. Mark “Fixed at Position”
  6. Optionally you can also write your own custom text and create buttons
  7. Hit on “Save Changes”

GeneratePress is a multi-purpose WordPress theme that is fast, flexible and has tons of customization options. If you want to know all the differences in detail, please go through our article GeneratePress free vs premium. I have given a detailed comparison between both versions.

If you are interested in understanding why GeneratePress is so popular and want to have a look at its most crucial features, I’d suggest you click here to go through a detailed review of GeneratePress Theme.

Before we head into creating a sticky floating footer in GeneratePress theme, let us first understand why do we need a sticky floating footer bar on a website.

Why To Create Sticky Floating Footer Bar?

A sticky floating footer bar is a fixed footer bar at the bottom end of your browser’s window. As the name says “Sticky”, it will always remain at the end of your browser’s window, no matter how long the user keeps scrolling down on the page. This is to predominantly display the most important information/content of your website, to your visitors.

with and without sticky footer wordpress
Sticky Floating Footer Bar sticks to the bottom of your browser’s window

As it remains visible to your users at all times, there is a higher possibility of them clicking on it to find out better content.

A WordPress sticky footer is good to offer deals to your customers, create social sharing buttons, have your visitors to opt-in for email subscriptions, or even promote discount coupons.

Remember, to use this only for content that turns out to be more useful to your audience.

What Can You Expect From A Sticky Floating Footer Bar?

A floating footer bar can…

  • Get you more clicks to pages that weren’t getting enough traffic
  • Increase your email list of subscribers as Opt-Ins in a sticky floating footer bar work very well
  • Showcase discounts and coupons that you’ve always wanted to promote on your site. Bringing in more sales and revenue.

Just like creating a GeneratePress sticky header, there are two methods to create sticky GeneratePress footer.

  • Method 1: By using a Plugin – Recommended for GeneratePress Free users
  • Method 2: By using small amount of Code – Recommended for GeneratePress Premium users

Note:- If you are not comfortable with coding I recommend using the plugin, even if you are running the GeneratePress premium theme.

I will be demonstrating method 1 using WPFront Notification Bar plugin on BloggingIdol

Create Sticky Floating Footer Bar In GeneratePress Using Plugin

Below is an image of how my website, BloggingIdol looks like, before creating a sticky floating footer bar

before create sticky floating footer bar in generatepress theme
BloggingIdol – without sticky floating footer bar in GeneratePress theme

Now we will accomplish method 1, by downloading a plugin called WPFront Notification Bar.

  • Go to your WordPress Dashboard, hover your mouse on Plugins and click on Add New.
add new plugins in WordPress
  • Type in WPFront Notification Bar in the search box, and later click on Install and Activate.
WPFront Notification Bar to create sticky floating footer bar in GeneratePress theme
Search WPFront Notification Bar, then Install & Activate
  • Once you’ve installed and activated the plugin, it will automatically take you to its Settings page.
setting WPFront Notification Bar to create sticky floating footer bar in GeneratePress theme
WPFront Notification Bar Settings Page
  • You will need to check mark Enabled, Preview Mode, and Fixed at Position. Also select Bottom as position.
  • Further below you have an option to write your own Custom Text and create Buttons. Moreover, it also offers color customization options to match the theme of your website.
  • Don’t forget to hit the Save Changes button at the bottom end of the WPFront Notification Bar Settings page.
create sticky floating footer bar in GeneratePress theme using WPFront Notification Bar plugin
Sticky Floating Footer Bar In GeneratePress Theme

That’s it, this is how you create sticky floating footer bar in GeneratePress theme using a plugin.

Note:- This floating footer bar will stay above the GeneratePress footer menu.

Also Read: How to Add Social Sharing Buttons

Create Sticky Floating Footer Bar In GeneratePress Theme Using Code

This method needs you to have GeneratePress premium plugin installed on your WordPress website.

The reason being, you will need a module for accomplishing this task, that only gets bundled with GP Premium plugin.

Note: I will remove WPFront Notification Bar Plugin, before demonstrating this method.

Let’s get started then…

Activate Elements Module

  • Go to your WordPress Dashboard, hover your mouse on Appearance and then click on GeneratePress.
wordpress dashboard appearance GeneratePress
  • Here you will need to activate the Elements module.
activate elements module in GeneratePress theme
Elements Module in GP Premium
  • For BloggingIdol, I have already activated the Elements module on my GeneratePress premium theme.

Create A Hook

For creating a Hook, you will need to Add New Element.

  • Go to your WordPress Dashboard, hover your mouse on Appearance, and this time click on Elements.
wordpress dashboard appearance elements
  • This will open the Elements Page. Click on Add New Element.
adding new element in GP premium
Add New Element in GeneratePress Premium Theme
  • Once you click on Add New Element, you will see a window to choose from. Select Element type as Hook and click on Create.
choose element type as hook
Create Hook for Sticky Floating Footer Bar
  • After creating the Hook you will need to add the code.
sticky floating footer bar hook code
<div class="sticky-floating-footer-bar">
    <div class="notice-inner grid-container">
        <span>Let's Make Your Blogging Journey Easy</span>
<a href="https://www.facebook.com/groups/823816958094089">
<button class="bloggingidol-button">Join FB Group</button></a>
    </div>
</div>
  • With the code you will also need to select the Hook – generate_after_footer. This will generate the hook after the GeneratePress footer menu copyright section.

Note: If you want to remove/modify GeneratePress footer credits read how to remove built with GeneratePress article.

  • Under Display Rules, select Location as Entire Site. Click on Save.
  • Now you will need to use those CSS classes under Additional CSS in GeneratePress Theme Customizer.
  • Go to your WordPress Dashboard, hover your mouse on Appearance, and this click on Customize.
  • Go to Additional CSS option and put the CSS code.
CSS for sticky floating footer bar in generatepress theme
CSS for Sticky Floating Footer Bar in GeneratePress Theme
.sticky-floating-footer-bar {
    position: fixed;
    bottom: 0;
    text-align: center;
    padding: 10px 0;
    z-index: 9999;
    background-color: #0f0f0f; /* Change the Color according to your choice */
    color: #ffffff;
    width: 100%;
}

.sticky-floating-footer-bar span {
    padding-right: 10px;
    font-size: 18px;
}

.bloggingidol-button {
	  background-color: #4267B2;
    border-radius: 50px;
    padding: 5px 10px;
	font-size: 18px;
  font-weight: bold;
	margin-left: 12px;
}

body {
    margin-bottom: 50px;    /*  Change to Match with body*/
}
sticky floating footer bar desktop and mobile view of BloggingIdol
Sticky Floating Footer Bar – Desktop & Mobile view

This is how the sticky floating footer bar looks on desktop and mobile view.

FAQs – GeneratePress Sticky Footer

What is a sticky floating footer bar in GeneratePress?

Sticky floating footer bar in GeneratePress is a bottom bar that sticks to your GeneratePress website even when your visitors scroll up or down the page.

Can I make sticky footer in GeneratePress?

Yes, you can make sticky footer in GeneratePress either by using WPFront Notification Bar plugin, or by using code.

How to enable GeneratePress sticky footer bar using plugin?

1. Install and activate WPFront Notification plugin
2. Go to settings
3. Activate “Enabled” and “Preview Mode”
4. Select position as “Bottom”
5. Mark “Fixed at Position”
6. Save your changes

How to create sticky footer bar in GeneratePress without plugin?

To create sticky footer in GeneratePress without plugin, you will need GP Premium.
1. Activate elements module
2. Create a GeneratePress hook
3. For customizing GeneratePress sticky footer add CSS codes to additional CSS

Can I customize the appearance of the sticky footer in GeneratePress?

If you have used WPFront Notification Bar plugin then you can customize thorough its settings page. But, if you have created sticky footer in GeneratePress without a plugin, then you need to customize the CSS to see the desired results.

How to disable the sticky floating footer bar in GeneratePress?

If you have used WPFront Notification Bar plugin, simply deactivate the plugin. But, if you have created a GeneratePress hook to create sticky floating footer bar in GeneratePress, just delete that GeneratePress hook, and clear the corresponding CSS codes from additional CSS.

Conclusion

That’s it, wasn’t it simple.

Basically, using the code is for users who have GeneratePress premium version.

Copy the code and change the color according to your theme style. If you still have any doubts regarding this guide, feel free to leave a comment.

Other GeneratePress Tutorials

Share and Enjoy !

Shares
I am in love with WordPress, building websites, doing SEO, and all that kind of stuff. I generally write about WordPress, Blogging, and SEO on BloggingIdol.

Leave a Comment

Shares