Hi there,
this would be the HTML you require:
<div class="top-bar-cta">
<span class="top-bar-cta-text">My call to action text</span>
<a class="button top-bar-cta-button" href="full_url_for_the_button_link">My button</a>
</div>
Then you can add this CSS to style it:
/* Align text and button horizontally */
.top-bar-cta {
display: flex;
align-items: center;
}
/* Add space to right of text */
.top-bar-cta-text {
margin-right: 20px;
}
/* Style button */
a.top-bar-cta-button {
border-radius: 4px;
padding: 8px 16px;
background-color: #f00;
color: #fff;
}
/* Style button on hover */
a.top-bar-cta-button:hover {
background-color: #000;
color: #fff;
}
In the Customizer > Layout > Top Bar – you can set the alignement to center and add some top and bottom padding to stop the button from touching the edges.
And you can change the background color of the Top Bar in Customizer > Colors > Top Bar.