Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1412784

    ermitag
    Participant

    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

    #1413245

    Rue Nel
    Moderator

    Hello 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.

    #1413374

    ermitag
    Participant
    This reply has been marked as private.
    #1413685

    Lely
    Moderator

    Hi 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.

    #1414158

    ermitag
    Participant

    Thank you!
    But it works for only one page.
    How to get dashed underline on tabs with name (for example) “strany-tabs” class?

    #1414607

    Friech
    Moderator

    Hi 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!

    #1420589

    ermitag
    Participant

    It 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

    #1420591

    ermitag
    Participant
    This reply has been marked as private.
    #1420690

    Thai
    Moderator

    Hi 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 🙂

    #1420855

    ermitag
    Participant

    It works! Thank you!

    #1421162

    Paul R
    Moderator

    You’re welcome! 🙂