Need help with top banner and menu again

Hi, recently I got the code from you guys to put a banner into my header.

But after putting the code, i cannot click on my menu anymore.
Please help, urgent.

the code is:

// Add Ad above the navbar
// =============================================================================
function ad_leatherboard(){ ?>
  
  <div class="custom-ad x-container max width center-text pam">
    <!-- Ad Leatherboard -->
    <a href="http://www.aftershockpc.com" target="_blank"><img src="http://www.thepcshow.com.sg/wp-content/uploads/AfterShock.png" alt="Ad Image" class="right"></a>
  </div>

<?php }
add_action('x_after_view_global__nav-primary', 'ad_leatherboard');

Hi Suleen,

Could you please try updating your custom code as follows and see if that helps.

// Add Ad above the navbar
// =============================================================================
function ad_leatherboard(){ ?>
  
  <div class="custom-ad max width center-text pam">
    <!-- Ad Leatherboard -->
    <a href="http://www.aftershockpc.com" target="_blank"><img src="http://www.thepcshow.com.sg/wp-content/uploads/AfterShock.png" alt="Ad Image" class="right"></a>
  </div>

<?php }
add_action('x_after_view_global__nav-primary', 'ad_leatherboard');

Let us know how it goes.
Thanks!

It works! Thank you so much!

You’re welcome!
Thanks for letting us know that it has worked for you.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.