Skip to content

Instantly share code, notes, and snippets.

@mrkapable007
Created February 17, 2020 08:49
Show Gist options
  • Save mrkapable007/906ebb81700ee11f268c4328aa18b5a9 to your computer and use it in GitHub Desktop.
Save mrkapable007/906ebb81700ee11f268c4328aa18b5a9 to your computer and use it in GitHub Desktop.
/**replacing the default oceanwp top bar section with this**/
<div class="topbar">
<div class="topbar-content">
<div class="topbar-links">
<div class="top-contact-links">
<a href="https://wa.me/yourmobile" class="whatsapp-icon"><i class="fa fa-whatsapp" aria-hidden="true"></i></a>
<a href="tel:+yourmobile"><i class="fa fa-volume-control-phone" aria-hidden="true"></i>+yourmobile</a>
<a href="You Link" target="_blank"><i class="fa fa-map-marker" aria-hidden="true"></i><span>Flagship</span>Your Text</a>
<a href="You Link" target="_blank"><i class="fa fa-map-marker" aria-hidden="true"></i><span>New</span>You Text (New)</a>
</div>
<?php
if(!is_user_logged_in()){ ?>
<div class="user-links logged-in-links">
<a href="#opl-login-form" class="opl-link"><i class="fa fa-sign-in" aria-hidden="true"></i>Login</a>
</div>
<?php } ?>
<?php
if(is_user_logged_in()){ ?>
<div class="user-links logged-out-links">
<a href="/wp-login.php?action=logout"><i class="fa fa-sign-out" aria-hidden="true"></i>Logout</a>
</div>
<?php } ?>
</div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment