WordPress.org

Ready to get started?Download WordPress

Forums

(Help in removing text box/when hovering over) (4 posts)

  1. parkermax
    Member
    Posted 3 years ago #

    Hello,

    I'm somewhat new to this, but I was able to make some headway with just one thing holding me back from perfection. When hovering over my Categories there would be a "box" that contained the words "view all posts filed under" and then it would say the category name. You can imagine how frustrating it is when you have a drop down menu that was being blocked because of this.

    *Below I have provided a solution that gave me a 90% fix, I just need some of you smart people to help me with the last 10% as I just want a normal cursor on the screen without anything popping up when hovering over the categories.

    CODE that helped me 90%
    ------------------------------------------------------------------------------------------------------------------------------------
    Go to /wp-includes/classes.php, Edit classes.php file and around line 1332.
    Here is the code you want to change.

    $link .= 'title="' . sprintf(__( 'View all posts filed under %s' ), $cat_name) . '"';
    If you just want the category name to show simply remove everything before the %s.

    This line should now look like
    $link .= 'title="' . sprintf(__( '%s' ), $cat_name) . '"';
    ------------------------------------------------------------------------------------------------------------------------------------
    See the code worked great for me to remove the "View all posts filed under", but how can I get rid of that pesky box that still pops up where the text once was?

    Take a look at my site to get a better idea if you would like, when you hover over a category.

    My site: http://thepartnersource.com

    *If you do find a solution, if you can, please net it out in beginners terms like what to replace, what file etc.

    ANY HELP WOULD BE AWESOME AND I WILL DO A GOOD DEED FOR SOMEONE TO PAY FORWARD FOR YOUR HELP

  2. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    if you want to mess in core wordpress files - which is not advisable as the edits will be overwritten with the next upgrade - then you could remove all this:

    if ( $use_desc_for_title == 0 || empty($category->description) )
    			$link .= 'title="' . sprintf(__( 'View all posts filed under %s' ), $cat_name) . '"';
    		else
    			$link .= 'title="' . esc_attr( strip_tags( apply_filters( 'category_description', $category->description, $category ) ) ) . '"';

    however, a plugin might be a cleaner solution; for instance:
    http://wordpress.org/extend/plugins/remove-title-attributes/

    or web search for 'remove title attributes from category list'

  3. parkermax
    Member
    Posted 3 years ago #

    It works perfect, honestly, if I was a bar right now you would be drinking free the rest of the night. Thanks again!

  4. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    thanks, you are welcome ;-)

Topic Closed

This topic has been closed to new replies.

About this Topic