• Resolved euphonywho

    (@euphonywho)


    I’m having a problem with the hover affects with the class widget_categories. Really the easiest way for me to solve this issue to stop the class from being called at all. I’ve done a text search on the entire site’s files using Dreamweaver, and I can’t find where this class is created. Can anyone help me out with this? Thanks!

    -Thom

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter euphonywho

    (@euphonywho)

    Any ideas? I’ve hit a wall!

    wp-includes\default-widgets.php

    Line 422

    Thread Starter euphonywho

    (@euphonywho)

    Yep, that was the first thing I tried. It still is not working correctly though. Here is what the widget currently looks like:

    class WP_Widget_Categories extends WP_Widget {

    function WP_Widget_Categories() {
    $widget_ops = array(‘description’ => __( “A list or dropdown of categories” ) );
    $this->WP_Widget( __(‘Categories’), $widget_ops);
    }

    function widget( $args, $instance ) {
    extract( $args );

    $title = apply_filters(‘widget_title’, empty( $instance[‘title’] ) ? __( ‘Categories’ ) : $instance[‘title’]);
    $c = $instance[‘count’] ? ‘1’ : ‘0’;
    $h = $instance[‘hierarchical’] ? ‘1’ : ‘0’;
    $d = $instance[‘dropdown’] ? ‘1’ : ‘0’;

    echo $before_widget;
    if ( $title )
    echo $before_title . $title . $after_title;

    $cat_args = array(‘orderby’ => ‘name’, ‘show_count’ => $c, ‘hierarchical’ => $h);

    if ( $d ) {
    $cat_args[‘show_option_none’] = __(‘Select Category’);
    wp_dropdown_categories(apply_filters(‘widget_categories_dropdown_args’, $cat_args));
    ?>

    Thanks for the help. One of those annoying problems that I’m sure has a frustratingly simple answer!

    I’ll be back later (need to sleep).. but it would help if you could explain what it is you’re trying to do a bit more..

    I’m having a problem with the hover affects with the class widget_categories.

    I’d be willing to take a look a see if i can find a way resolve that instead of re-writing / adjusting core code..

    ..and by look, i mean you tell me the specifics of the problem and i’ll try to come up with a solution… ??

    Anyway, until later when i’m back, best of luck with the problem..

    Thread Starter euphonywho

    (@euphonywho)

    Thanks for the help. Not only do you provide great help, but a nice kitten picture to go with it!

    If you look at our site https://themutantproject.com/, and hover over the widgets on the right, you’ll see that the “welcome message”, and the link under “Latest Episodes” have the correct hover affect. The entire block has the color changed. If you hover over the middle link, under “Project Log”, then you’ll see that just the text is changed when hovered over. Using Firebug, I can see that removing the widget_categories class from the list element solves the problem. However, I can’t seem to get rid of this class getting created in the PHP.

    I had the same problem and fixed it, then updated my WP install, and the problem was back. It’s not a theme issue (it might be, but just removing this class solves the problem).

    I might have a solution (the previously edited file might be on a computer here). If I can dig that up, I’ll let you know. Thanks again!

    Are you telling me you’re editing a core file, just to resolve a styling issue? …

    Stop!.., i can with about 99% certainty say that you don’t need to keep editing that file..

    The reason is due to this line in your style.css

    /* ####### recentcomments + widget_archive + textwidget+ categorylink ####### */
    #top .widget_archive a, #top .recentcomments a, #top .textwidget a, #top .widget_categories a{
    display:inline;
    margin:0;
    padding:0;
    }

    Notice the .widget_categories reference.

    Try removing just this part..

    #top .widget_categories a

    .. and see if there’s improvement, we can fix this with just CSS… just so you know.. ??

    P.S. I’ll give the cat a cuddle for you later.. (although he’s not quite so small now) ..

    Thread Starter euphonywho

    (@euphonywho)

    So much better now! This is the second time this problem came up like I said, and I spent a few days trying to figure it out, including removing the CSS for it. My head has just gotten twisted around. I love deadlines! Thanks so much!

    I’ll also replace my edited default-widgets file with the original again =)

    My cat was like that when I was fostering him about 8 months ago. I couldn’t give him back, he got way too attached! (poor me!)

    Thanks again for the great help!

    Happy i could help.. ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘widget_categories removal’ is closed to new replies.