• Resolved haddlyapis

    (@haddlyapis)


    Hi,
    on my website download page link next to the service pack numbers on the left e.g. 0130, there is a small “v” which stands for version. I actually want to get rid of this v and either replace it with other text or no text, as this number is not a version of our software but a service pack number.
    In the downloads part, all i can do is enter the number, but the “v” appears automatically.
    Can you help please?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi, in the custom CSS you can enter this code to remove it :

    .dl-version.apis-dl-column {
    display: none;
    }

    Alessandro

    Hello @haddlyapis,

    It’s hard to confirm without checking the templates. Can you please confirm what shortcode you are using to display the downloads and have you customized any of our templates?

    Thread Starter haddlyapis

    (@haddlyapis)

    Hi, adding the css above doesn’t work. This is strange because when i inspect the element, the div class above is correct. I don’t know if we have customized any templates: how would i be able to check this?
    This is the shortcode we use to display the whole page.
    [downloads template=”software” category=”current-versions”]
    I was thinking maybe it would be better to use jQuery to fix this. I am a learner though and my attempt is not working:
    jQuery(“v0130”).find(‘div’).html(“service pack 0130”);

    any help would be appreciated.

    Thread Starter haddlyapis

    (@haddlyapis)

    Hi,
    I have managed to change it with some correct jQuery:
    jQuery(document).ready(function(){
    jQuery(‘.dl-version.apis-dl-column’).each(function() {
    var text = jQuery(this).text();
    jQuery(this).text(text.replace(‘v0130’, ‘Service Pack 0130’));
    });});

    any easier suggestions would be great though

    Thread Starter haddlyapis

    (@haddlyapis)

    I would prefer to use:
    jQuery(this).text(text.replace(‘v’, ‘Service Pack 0130’));
    });});
    Whereby the ‘v’ would cover the 4 download items on this page with one jQuery (i have used 4) function. The problem with this is that if this class: “dl-version.apis-dl-column” appears any where else on the website, then any “v” will be changed. I don’t know how to change this. any help?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Need help not displaying a letter’ is closed to new replies.