Tagged: x
-
AuthorPosts
-
April 16, 2016 at 4:51 pm #886116
lucrobinson11ParticipantHi,
I’d like to add a link to the header bar of my website, http://www.leaveatrace.co.
I don’t want to add it inline with the rest of the title menu, but rather below and in a slightly smaller font. I want the link to be right aligned with the furthest right menu item (“FAQ”), and a few pixels below.
How do I do that?
I’ve attached a screenshot of my homepage.
Thanks very much.
April 16, 2016 at 5:03 pm #886125
lucrobinson11ParticipantJust realized the screenshot wouldnt upload, but you can see the homepage at http://www.leaveatrace.co
April 17, 2016 at 8:11 am #886752
ChristopherModeratorHi there,
Please add following code in Customize -> Custom -> JavaScript :
jQuery("<span style='float:right;font-size:12px;display: inline-block;width: 100%;text-align: right;'>custom text</span>").insertAfter(".x-navbar .x-nav");Hope it helps.
April 17, 2016 at 2:09 pm #887057
lucrobinson11ParticipantThanks!
It’s almost perfect. I added that code, and a little extra css to shift the text to where I want it to be.
jQuery(“<div style=’float:right;font-size:12px;display: inline-block;width: 100%;text-align: right;margin-top:-20px;margin-right:15px;text-transform: uppercase;’>Never forget: Download the chrome extension</div>”).insertAfter(“.x-navbar .x-nav”);
The only issue not is that the link doesn’t work. I think because the nav bar links are not just text links, but rather extend up and down, my link is now showing up underneath the nav bar links. How can I fix that?
April 18, 2016 at 12:33 am #887534
ChristopherModeratorHi there,
Please update your code to :
jQuery("<div style='float:right;font-size:12px;display: inline-block;width: 100%;text-align: right;margin-top:-20px;margin-right:15px;text-transform: uppercase;position:relative;z-index:2000;'><a href='http://www.leaveatrace.co/'>Never forget: Download the chrome extension</a></div>").insertAfter(".x-navbar .x-nav");Hope it helps.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-886116 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
