• Hello, my website is http://HeatNation.com and I currently added this code to the functions.php template to make my widget titles clickable. However it seems to have made the color of my facebook title widget red. Does anyone know what happened and how I can fix this?

    function widget_title_link( $title ) {
    if( $title == “Categories” ) {
    return ““.$title.”“;
    }
    elseif( $title == “Pages” ) {
    return ““.$title.”“;
    }
    else {
    return ““.$title.”“;
    }
    }
    add_filter( ‘widget_title’, ‘widget_title_link’ );

Viewing 1 replies (of 1 total)
  • First of all, you shouldn’t be modifying the theme files directly. If the theme ever gets upgraded because of feature enhancements or security patches, then your changes will be lost. Instead, you should create a child theme and make your changes to a copy of functions.php.

    All you need to do is add a CSS rule for the Facebook widget title. If your theme has a Custom CSS option, you can add this rule:

    h4.widget-header-fb a {
       color: #fff;
    }

    Or, create a child theme as recommended earlier, or use a CSS plugin like Custom CSS Manager.

Viewing 1 replies (of 1 total)

The topic ‘Making Widgets Clickable Messed up my FB title’ is closed to new replies.