Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 320
  • Last Modified:

Remove caption from banner element

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
glepiza
Asked:
glepiza
  • 6
  • 5
1 Solution
 
leakim971PluritechnicianCommented:
$(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
 
glepizaAuthor Commented:
Thanks expert,

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

Thanks
0
 
leakim971PluritechnicianCommented:
All
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
glepizaAuthor Commented:
Is there a way to remove only the first one? the one that says "PresentaciĆ³n"?

Thanks in advance

Winter
0
 
leakim971PluritechnicianCommented:
$(document).ready(function() {
       $(".nivo-caption:eq(0)").remove();
})
0
 
leakim971PluritechnicianCommented:
$(document).ready(function() {
       $(".nivo-caption:first").remove();
})
0
 
glepizaAuthor Commented:
nothing yet, it keeps removing all of them :(
0
 
leakim971PluritechnicianCommented:
You are not using the right code. Clear you cache if needed
0
 
glepizaAuthor Commented:
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
 
leakim971PluritechnicianCommented:
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
 
glepizaAuthor Commented:
Thanks!!!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 6
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now