Many have installed plugins to have a bar at the top of their website to ask a question, whether this is to get feedback from readers, look for writers with expertise in the content or other links. I wasn’t interested in adding a plugin to handle a small one time configuration so I built a quick code set which is customizable with CSS to allow anyone to add a bar with a button to their site.
This will require the [ Code Snippets ] plugin which allows you to add small chunks of code and is a core way I add functionality to the site. This along with [ HFCM ] are installed on every website I build onto for their abilities to change settings without child themes or specialized, one off, plugins.
The core reason for myself is I find lots of nice limited time deals or have quality plugins I would like everyone to have a chance to see. One day it may become a button specifically to hire writers for the site so I can start to have people apply who love writing about the subject.
The options are only limited by your imagination, the button could route to a store, a page specifically for email sign ups, anything you deem valuable to your site that you would like to present to users who come to the page.
function build_Announcediv_function() {
echo'<div id="AnnouncementDiv" class="FloatAnnounce">';
echo'<h3 class="myAnnounceHeader">Affiliate Link: Interested In a Useful Tables For Amazon Products and More? Check Out:</h3><a class="AnnounceButton" href="https://amalinkspro.com/ref/68/">Amalinks Pro</a>';
echo'</div>';
}
add_action('wp_head', 'build_Announcediv_function');
add_action( 'wp_head', function () { ?>
<style>
#AnnouncementDiv {
position: sticky;
top: 0;
left: 0;
width: 100%;
display: flex;
background-color: #38b449;
justify-content: center;
align-items: center;
}
h3.myAnnounceHeader {
padding-right: 50px;
font-size: small;
padding-bottom: 10px;
font-family: "Roboto Condensed", "Arial Narrow", Arial, Helvetica, sans-serif;
}
a.AnnounceButton {
border: 1px solid transparent;
border-radius: 3px;
background: #363940;
color: #fff !important;
font-family: "Roboto Condensed", "Arial Narrow", Arial, Helvetica, sans-serif;
line-height: 1;
padding: 8px 18px;
text-transform: uppercase;
text-decoration: none;
transition: all .2s;
font-weight: bold;
letter-spacing: 1px;
font-size: small;
font-style: normal;
}
</style>
<?php } );
The purpose of this for anyone running Acabado is to give a specific call to action you would like to have show on each page for your visitors. The uses of this are limited only by your imagination, if you have a course you could list it, if slow in sales change this to a “special” 15% off coupon.
I would love to hear in the comments how you use it and if it helps get your site some added benefit as maybe it can then help others out too!
You can't go wrong starting to learn page builders with Elementor Free, it can help you understand what the builder experience is like!
I get irritated when I link back to my old posts and I get a pingback I have to delete from within comments, this will help you disable them overall.
This is a core plugin that I run on every site as it increases the ability to keep people on the site as long as possible, you should too!
If you are building an Amazon Affiliate niche website then having a feature rich plugin to partner on that journey is a MUST!
Scriptless Social Sharing is a simple and easy way to add the main social sharing icons to your blog without causing the hated slow loading.