Archive for June, 2012
I don’t understand. use_desc_for_title in wp_list_categories does not work!
I do not understant.. May be it’s a bug. I try to disable a tooltip on mouse hover on category links by using use_desc_for_title parameter for the wp_list_categories function. It isn’t working! I try to use 0 (false) value as a parameter but it doesn’t matter.
wp_list_categories('show_count=1&title_li=&use_desc_for_title=0'); |
Anybody knows what is happening?
I’ve just found a workaround but it’s looked like a hack. I don’t like that. The meaning of this workaround is that you add a filter for the wp_list_categories function that removes title attribute from the each link.
function wp_list_categories_filter($value) { $value = preg_replace('` title="(.+)"`', '', $value); return $value; } add_filter('wp_list_categories', 'wp_list_categories_filter'); |
CSS z-index doesn’t work
Hi! Very often I get cool welcome from z-index :-/ and I know that many developers meet some problems with css z-index property. Why css z-index does not work??
The roots of all problems with z-index is in misunderstanding its work. The most of web designers understand that z-index controls visual overlapping of elements but don’t understand details and depths of this property. If you don’t know the terms “z-axis”, “stacking order”, “rendering layer”, “stacking rules”, “stacking context”, “hierarchy of stacking contexts”, you may add yourself to the group of developers who does not understant z-index property. Because of this misunderstanding there are lots of questions in stackoverflow, forums and other places. Sometimes it’s really hard to understand z-index, but if you know the concepts it will be not so hard for you.
My advice, find some time and investigate this question deeply and you will be saved from the headache in the future and help your friends web developers to solve their problems with z-index.
In this article, some useful links will be provided to help you to figure out the principles of z-index.