Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

In my modified Twenty Twelve theme, when I'm hovering onto the calender widget's date, there is a acronym-like balloon showing that date's post titles. Thing really is an anchor title:

<td>
   <a href="http://www.example.com/2013/01/23/" title="post title 1<br/>post title 2<br/>">23</a>
</td>

So when I'm hovering onto date 23, it's echoing like an acronym:

23
---------------
 post title 1
 post title 2
---------------

Problem is: My client doesn't want this.

If I can modify the default calendar widget, then I can delete the anchor title, and it will solve the problem. But I can't edit the default calendar widget.

  • QUESTION 1: HOW TO EDIT WORDPRESS DEFAULT CALENDAR WIDGET?

Otherwise, I can make CSS for the specific title like this one. I did this like:

a[title]:hover:after {
  content: attr(title);
  display: none;
}

and/or

a[title]:hover:after {
      content: attr(title);
      visibility: hidden;
    }

But failed. So, alternatively, the second question can be:

  • QUESTION 2: HOW TO HIDE THE ANCHOR TITLE USING CSS?

Thanks in advance.

share|improve this question

1 Answer 1

Third choice: I suggest using jQuery to handle this. <script>$('a[title]').attr('title', '');</script> will remove all anchor titles on the page. You could put that in the page template or build a widget that echos it.

share|improve this answer
    
Sorry, it's not working. Not disabling anchor title's from the widget. I tried it using before wp_head() once and then tried after wp_head() - not working. :( –  Mayeenul Islam Oct 15 '13 at 9:51

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.