Solved

Remove caption from banner element

Posted on 2013-01-25
11
310 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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 

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
 
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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

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.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
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…

813 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

12 Experts available now in Live!

Get 1:1 Help Now