puikinsh / Dazzling

Flat design WordPress WooCommerce theme developed using Bootstrap 3 and FlexSlider
http://colorlib.com/wp/themes/dazzling/
198 stars 136 forks source link

In the theme file inc/extras.php there should be dazzling_social_icons instead of sparkling_social_icons #39

Closed FreeWPTP closed 8 years ago

FreeWPTP commented 8 years ago

In the theme file inc/extras.php the following code should be changed

if ( ! function_exists( 'sparkling_social_icons' ) ) :
/**
 * Display social links in footer and widgets
 *
 * @package sparkling
 */
function dazzling_social_icons(){
  if ( has_nav_menu( 'social-menu' ) ) {
    wp_nav_menu(
        array(
            'theme_location'  => 'social-menu',
            'container'       => 'nav',
            'container_id'    => 'social',
            'container_class' => 'social-icon',
            'menu_id'         => 'menu-social-items',
            'menu_class'      => 'social-menu',
            'depth'           => 1,
            'fallback_cb'     => '',
                        'link_before'     => '<i class="social_icon fa"><span>',
                        'link_after'      => '</span></i>'
        )
      );
  }
}
endif;

As following :

if ( ! function_exists( 'dazzling_social_icons' ) ) :
/**
 * Display social links in footer and widgets
 *
 * @package sparkling
 */
function dazzling_social_icons(){
  if ( has_nav_menu( 'social-menu' ) ) {
    wp_nav_menu(
        array(
            'theme_location'  => 'social-menu',
            'container'       => 'nav',
            'container_id'    => 'social',
            'container_class' => 'social-icon',
            'menu_id'         => 'menu-social-items',
            'menu_class'      => 'social-menu',
            'depth'           => 1,
            'fallback_cb'     => '',
                        'link_before'     => '<i class="social_icon fa"><span>',
                        'link_after'      => '</span></i>'
        )
      );
  }
}
endif;