Solved

Remove caption from banner element

Posted on 2013-01-25
11
309 Views
Last Modified: 2013-01-25
Dear experts,

I am trying to remove a caption from the first image of my nivo slide banner. Could you please help me out? Attached goes the image where I highlighted the element I wish to remove.

Thanks in advance,

Winter
Captura-de-pantalla-2013-01-25-a.png
0
Comment
Question by:glepiza
  • 6
  • 5
11 Comments
 
LVL 82

Expert Comment

by:leakim971
ID: 38820436
$(document).ready(function() {
       $(".nivo-caption").replaceWith( $(".nivo-caption").html() );
})

Open in new window

or :
$(document).ready(function() {
       $(".nivo-caption").remove();
})

Open in new window

0
 

Author Comment

by:glepiza
ID: 38820469
Thanks expert,

Would that remove only the first caption or all of them?

Thanks
0
 
LVL 82

Expert Comment

by:leakim971
ID: 38820471
All
0
 

Author Comment

by:glepiza
ID: 38820475
Is there a way to remove only the first one? the one that says "Presentación"?

Thanks in advance

Winter
0
 
LVL 82

Expert Comment

by:leakim971
ID: 38820487
$(document).ready(function() {
       $(".nivo-caption:eq(0)").remove();
})
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 82

Expert Comment

by:leakim971
ID: 38820491
$(document).ready(function() {
       $(".nivo-caption:first").remove();
})
0
 

Author Comment

by:glepiza
ID: 38820545
nothing yet, it keeps removing all of them :(
0
 
LVL 82

Expert Comment

by:leakim971
ID: 38820551
You are not using the right code. Clear you cache if needed
0
 

Author Comment

by:glepiza
ID: 38820576
ok, I am trying to remove it by selecting the node path that contains that caption, but still it does not work:

                   jQuery(document).ready(function() {
                     if (jQuery('a[href*="/node/59"]')){
                        jQuery(this).parent().remove();
                }
            })
0
 
LVL 82

Accepted Solution

by:
leakim971 earned 500 total points
ID: 38820596
my code work : http://jsfiddle.net/VrudA/

the way you want to achieve : http://jsfiddle.net/VrudA/1/
$("a[href='/node/58']").parent().remove();

Open in new window

0
 

Author Closing Comment

by:glepiza
ID: 38820662
Thanks!!!
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now