Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Adding buttons in the topbar

Home / Forums / Virtue Theme / Adding buttons in the topbar

This topic is: Resolved
[Resolved]
Posted in: Virtue Theme
July 29, 2021 at 11:36 pm

Hi Team,
Please could you help? I’m using Virtue Theme on this site.
I have added a login/logout button using the following HTML in a topbar widget:
<button type="button" id="login_button" class="kad-btn btn-shortcode kad-btn-primary sm-kad-btn clearfix">[frmmodal-content label="Login"][frm-login class="frm_style_login-form-style" layout=v show_lost_password="1" label_lost_password="I forgot my password"][/frmmodal-content]</button>
<button type="button" id="logout_button" class="kad-btn btn-shortcode kad-btn-primary sm-kad-btn clearfix"><a href="https://your_domain/wp-login.php?action=logout&quot; >Logout</a></button>

You can see that the “Member Login” button is quite close to the top – only a few pixels away.
On the other hand ponce you are logged in, the “Logout” button has a healthy 25px margin.
Can you explain why they are different and how I can get the 2 buttons to behave the same?
Very many thanks,
Phil.

  • The forum ‘Virtue Theme’ is closed to new topics and replies.