Tagged: x
-
AuthorPosts
-
January 3, 2017 at 10:07 am #1314266
poyser7ParticipantHi there and Happy New Year!
URL: http://newbodyosteo.staging.wpengine.com/wp-admin/
Wordpress version: 4.6.1
X version: Child Theme (Integrity)
Cornerstone: 1.3.3Ive attached a screen grab of the top bar in the my website.
I would like to make the phone number on the right hand side of the Social media icons, sit on the left hand side of the social media icons.
The number will then be clickable to make a call when in Mobile view.
Is there any way you can look and provide me with some code I can copy and paste please?
Im using Cornerstone to edit the majority of the site.
Many thanks
Jay
January 3, 2017 at 10:09 am #1314274
poyser7ParticipantThis reply has been marked as private.January 3, 2017 at 10:45 am #1314353
RupokMemberHi Jay,
Thanks for writing in and happy new year! You can add this under Custom > CSS in the Customizer.
body .x-topbar .p-info { float: left; margin-left: 70%; }If you want to make it clickable, you should use within anchor tag :
<a href="tel:0207-177-0207">0207-177-0207</a>Hope this helps.
January 3, 2017 at 11:07 am #1314391
poyser7ParticipantThank you Rupok!
I’ll try this when I can get out of the office. 🙂
January 3, 2017 at 11:26 am #1314415
Prasant RaiModeratorYou are most welcome. Let us know how it goes. 🙂
January 3, 2017 at 3:01 pm #1314790
poyser7ParticipantHi there, this such a good solution, only problem is, its not close enough to the icons. It also goes on to multiple lines when in mobile view and floats to the left. See attachments.
Is there a way to make it sit closer to icons so the gap between the number and the Facebook icon is the same size as the gap between all 3 icons?
Also, keeping the phone number on 1 line, centre aligned above the icons when in mobile view?Many thanks for your help.
January 3, 2017 at 3:03 pm #1314794
poyser7ParticipantHi there, this such a good solution, only problem is, its not close enough to the icons. It also goes on to multiple lines when in mobile view and floats to the left. See attachments.
Is there a way to make it sit closer to icons so the gap between the number and the Facebook icon is the same size as the gap between all 3 icons?
Also, keeping the phone number on 1 line, centre aligned above the icons when in mobile view?
There is also a thin line under the phone number. Do you know how to remove this please?This is a lot to ask but really appreciate it.
Many thanks for your help.January 3, 2017 at 7:31 pm #1315125
FriechModeratorHi There,
Please remove the suggested custom CSS above, and add this instead.
@media (min-width: 768px) { .x-topbar .p-info { float: right; margin-left: 7px; margin-top: 17px; } } body .x-topbar .p-info {background-color: #fff;padding-bottom: 0;} body .x-topbar .p-info a { border-bottom: none; border-radius: 10px; background-color: #33cccc; color: #fff; padding: 5px; } .x-topbar .p-info a:hover { background-color: #157f90; }Hope it helps, Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1314266 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
