Solved

Remove caption from banner element

Posted on 2013-01-25
11
311 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

 

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

Independent Software Vendors: 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!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
TypeError jquery issues with site - CSS conflicts 3 28
what should i learn? javascript or typescript? 3 38
JSON/JQuery/AJAX Error Identification 2 32
Boolean 13 24
When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
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…
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 …

733 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