sabecs
asked on
Remove the hyphen(-) and filesize from the document list and open in a new window?
Hi,
is it possible to remove the hyphen(-) and filesize from the document name below and also make document open in a new window?
Can this be done with CSS, Javascript or jQuery.
Thanks in advance.
is it possible to remove the hyphen(-) and filesize from the document name below and also make document open in a new window?
Can this be done with CSS, Javascript or jQuery.
Thanks in advance.
<ul class="mmm-easy">
<li><a href="/Articles_of_interest_for_your_clients/A-few-interesting-facts-about-retirement.doc"><span class="filename">A-few-interesting-facts-about-retirement.doc</span><span class="filesize">(138.5 Kb)</span></a></li>
<li><a href="/Articles_of_interest_for_your_clients/Are-you-getting-the-most-out-of-your-SMSF-this-EOFY.doc"><span class="filename">Are-you-getting-the-most-out-of-your-SMSF-this-EOFY.doc</span><span class="filesize"> (63 Kb)</span></a></li>
</ul>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for your feedback, I am just trying to work out how to test on my WordPress site.
You can install a plugin in which you can install custom js and custom stylesheets.
https://wordpress.org/plugins/custom-css-js/
https://wordpress.org/plugins/custom-css-js/
ASKER
thanks, that works perfectly.
Second for removing the (-) try to use the following code:
Open in new window
First you get all the objects (elements) with ul tag name.
And for the first element a[0] you replace the '-' with blankspace ''.If you have two elements correspondingly a[1] etc..
To remove the file size follow the JQuery code below:
Open in new window
It sets the text as blank