Spencer Harrald
asked 10 years ago

Is there any way of having a Soundcloud block on Social Wall in the same manner as Facebook and Twitter, also, any way of having Soundcloud as a link in the top bar. Thanks.

1 Answers
DominicStaff
answered 10 years ago

At the moment, our theme does not support to add the Soundcloud block on Social Wall in the same manner as Facebook and Twitter.
However, you can add the Soundcloud icon in the Top bar. Please do as the following:

  1. Open the header.php file then replace the line 32 to line 70 with the following code:

    <?php
                        $facebook = dw_get_theme_option('facebook_link');
                        $twitter = dw_get_theme_option('twitter_link');
                        $instagram = dw_get_theme_option('instagram_link');
                        $youtube = dw_get_theme_option('youtube_link');
                        $gplus = dw_get_theme_option('google_plus_link');
                        $linkedin = dw_get_theme_option('linkedin_link');
                        $flickr = dw_get_theme_option('flickr_link');
                        $pinterest = dw_get_theme_option('pinterest_link');
                        $soundcloud = dw_get_theme_option('soundcloud_link');
    
                        if( $facebook || $youtube || $gplus || $linkedin || $flickr || $instagram || $twitter || $pinterest || $soundcloud ) : 
                    ?>
                    <div class="social-link">
                        <ul>
                            <?php if( $facebook ) : ?>
                            <li id="facebook_link"><a href="<?php echo $facebook ?>" class="dw_facebook"><i class="icon-facebook"></i></a></li>
                            <?php endif; ?>
                            <?php if( $twitter ) : ?>
                            <li id="twitter_link"><a href="<?php echo $twitter ?>" class="dw_twitter"><i class="icon-twitter"></i></a></li>
                            <?php endif; ?>
                            <?php if( $instagram ) : ?>
                            <li id="instagram_link"><a href="<?php echo $instagram ?>" class="dw_instagram"><i class="icon-instagram"></i></a></li>
                            <?php endif; ?>
                            <?php if( $youtube ) : ?>
                            <li id="youtube_link"><a href="<?php echo $youtube ?>" class="dw_youtube"><i class="icon-youtube"></i></a></li>
                            <?php endif; ?>
                            <?php if( $gplus ) : ?>
                            <li id="google_plus_link"><a href="<?php echo $gplus ?>" class="dw_google-plus"><i class="icon-google-plus"></i></a></li>
                            <?php endif; ?>
                            <?php if( $linkedin ) : ?>
                            <li id="linkdedin_link"><a href="<?php echo $linkedin ?>" class="dw_linkedin"><i class="icon-linkedin"></i></a></li>
                            <?php endif; ?>
                            <?php if( $flickr ) : ?>
                            <li id="flickr_link"><a href="<?php echo $flickr ?>" class="dw_flickr"><i class="icon-flickr"></i></a></li>
                            <?php endif; ?>
                            <?php if( $pinterest ) : ?>
                            <li id="pinterest_link"><a href="<?php echo $pinterest ?>" class="dw_pinterest"><i class="icon-pinterest"></i></a></li>
                            <?php endif; ?>
                            <?php if( $soundcloud ) : ?>
                            <li id="soundcloud_link"><a href="<?php echo $soundcloud ?>" class="dw_soundcloud"><i class="icon-cloud"></i></a></li>
                            <?php endif; ?>
                        </ul>
                    </div>
  2. open the theme-customization.php file in the folder path "wp-contentthemesdw-fixelinc". Add the following code under line 232.
    // soundcloud
     $wp_customize->add_setting('dw_theme_options[soundcloud_link]', array(
        'default'        => '',
        'capability'     => 'edit_theme_options',
        'type'           => 'option',
        'transport' => 'postMessage'
    ));
    $wp_customize->add_control('dw_social_options_instagram_link', array(
        'label'      => __('soundcloud link', DW_TEXTDOMAIN),
        'section'    => 'dw_social_settings',
        'settings'   => 'dw_theme_options[soundcloud_link]',
        'type'       => 'text'
    ));

    Hope this helps !

Powered by DW Question & Answer Pro