Solved

Remove caption from banner element

Posted on 2013-01-25
11
307 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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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.
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

747 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

10 Experts available now in Live!

Get 1:1 Help Now