custom button in header
-
I recently switched to Responsive Menus. Prior to switching, I had a button on the right side of the header (see https://www.saltlakecitymarathon.com to see an example of the button on our current site).
This is the code I added to the header section for the button.
<script> jQuery( document ).ready(function() { jQuery('#et-top-navigation').append('<div class="et_pb_button et_pb_module et_pb_bg_layout_dark" id="regbutton"><a href="https://register.chronotrack.com/r/24153" target="_blank">REGISTER</a></div>'); }); </script>
This is the styling I added to the custom CSS for my WP theme.
/* Properties for Button in Main Nav */ #regbutton, #regbutton { background-color: #a1cd6d; border: 1px solid #a1cd6d; float: right; padding-bottom: 0; padding-top: 0; } /* Keeps Button in Main Nav to Right */ #regbutton.et_pb_button { position: absolute; } /* Button Text Color in Main Nav */ #regbutton a {color: #fff; }
[Moderator note: code fixed. Please wrap code in the backtick character or use the code button.]
Can you help me modify the code to add this button to the Responsive Menu header?
The page I need help with: [log in to see the link]
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘custom button in header’ is closed to new replies.