• Resolved SRD75

    (@srd75)


    Hi.

    I’d like to use the 32px social icons from Cyber Chimps “Response” theme.

    I’ve copied /wp-content/themes/responsive/core/includes/functions-extentions.php to /wp-content/themes/responsive-child/core/includes/functions-extentions.php, and edited the file so that it only contains:

    <?php
    
    // Exit if accessed directly
    if ( !defined( 'ABSPATH' ) ) {
    	exit;
    }
    
    /*
     * Get social icons.
     *
     * @since    1.9.4.9
     */
    function responsive_get_social_icons() {
    
    	$responsive_options = responsive_get_options();
    
    	$sites = array (
    		'twitter'     => __( 'Twitter', 'responsive' ),
    		'facebook'    => __( 'Facebook', 'responsive' ),
    		'linkedin'    => __( 'LinkedIn', 'responsive' ),
    		'youtube'     => __( 'YouTube', 'responsive' ),
    		'stumbleupon' => __( 'StumbleUpon', 'responsive' ),
    		'rss'         => __( 'RSS Feed', 'responsive' ),
    		'googleplus'  => __( 'Google+', 'responsive' ),
    		'instagram'   => __( 'Instagram', 'responsive' ),
    		'pinterest'   => __( 'Pinterest', 'responsive' ),
    		'yelp'        => __( 'Yelp!', 'responsive' ),
    		'vimeo'       => __( 'Vimeo', 'responsive' ),
    		'foursquare'  => __( 'foursquare', 'responsive' ),
    	);
    
    	$html = '<ul class="social-icons">';
    	foreach( $sites as $key => $value ) {
    		if ( !empty( $responsive_options[$key . '_uid'] ) ) {
    			$html .= '<li class="' . esc_attr( $key ) . '-icon"><a href="' . $responsive_options[$key . '_uid'] . '">' . '<img src="' . responsive_child_uri( '/core/icons/' . esc_attr( $key ) . '-icon.png' ) . '" width="32" height="32" alt="' . esc_html( $value ) . '">' . '</a></li>';
    		}
    	}
    	$html .= '</ul><!-- .social-icons -->';
    
    	return $html;
    
    }

    I’ve replaced the icons in /wp-content/themes/responsive-child/core/icons with “Response”‘s icons, but nothing has changed.

    What do I need to do to change the size of the social icons?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘how to replace and resize social icons’ is closed to new replies.