Tagged: x
-
AuthorPosts
-
March 19, 2017 at 9:38 am #1412784
Hi
I try to get dashed underline in tabs title and insert in inline style “text-decoration: underline;text-underline-style: dotted;”
But title now have underline without dashed
Please help
March 20, 2017 at 12:51 am #1413245Hello There,
Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.
Regards.
March 20, 2017 at 4:11 am #1413374This reply has been marked as private.March 20, 2017 at 9:43 am #1413685Hi There,
Unfortunately, that style is not widely supported by browsers anymore. One workaround is to add border. But due to structure it will not be exactly as you want.
The best option we have now is to add this code on Appearance > Customize > Custom > Edit Global JS
jQuery ( function( $ ) { $(".page-id-5824 .x-nav-tabs-item a").wrapInner("<span style='border-bottom: 1px dashed #0099ff;'></span>"); });
You can add this
border-bottom: 1px dashed #0099ff;
on the style field of the element on VC so just you can see why we need to use javascript instead.Hope this helps.
March 20, 2017 at 3:30 pm #1414158Thank you!
But it works for only one page.
How to get dashed underline on tabs with name (for example) “strany-tabs” class?March 21, 2017 at 12:57 am #1414607Hi There,
Update the JS code to this:
jQuery ( function( $ ) { $(".x-nav-tabs-item.strany-tabs a").wrapInner("<span style='border-bottom: 1px dashed #0099ff;'></span>"); });
Hope it helps, Cheers!
March 26, 2017 at 6:47 am #1420589It works for only one page:
jQuery ( function( $ ) {
$(“.page-id-5824 .x-nav-tabs-item a”).wrapInner(“<span style=’border-bottom: 1px dashed #ffffff;’></span>”);
});It not works:
jQuery ( function( $ ) {
$(“.x-nav-tabs-item.strany-tabs a”).wrapInner(“<span style=’border-bottom: 1px dashed #0099ff;’></span>”);
});please help
March 26, 2017 at 6:49 am #1420591This reply has been marked as private.March 26, 2017 at 10:20 am #1420690Hi There,
Please try with this code:
jQuery ( function( $ ) { $(".x-nav-tabs-item a").wrapInner("<span style='border-bottom: 1px dashed #0099ff;'></span>"); });
Hope it helps 🙂
March 26, 2017 at 3:29 pm #1420855It works! Thank you!
March 26, 2017 at 11:37 pm #1421162You’re welcome! 🙂
-
AuthorPosts