Codeless
  • Support Home
  • Themes
  • Support
  • WordPress Tutorials
    • How to Start a Blog
    • Best Website Builders
    • Best Small Business Hosting
    • Email Marketing Services
    • Cheap WordPress Hosting
  • Video Tutorials

Community Forums

How to add one more social link?

socialvk
    • 10 years, 4 months ago Olenka101
      Participant

      Expired

      Hello!

      I desperately need to add one more social media link to the footer. That ist he link to VK.COM social network. Is it somehow possible to add it or change the already existing one in the code? Just tell me what to do.

      The button can be downloaded here https://vk.com/doc6492_239978081?hash=55970363aa921fd894&dl=2ffc329437617291b9

      Thanks for the wonderful theme and support!

      BR,

      Olga

       

    • 10 years, 4 months ago Ruco
      Keymaster

      Hello,

      It can be achieved with some customization.

      First you must make the icon 32x32px size and upload in your wp site.

      Edit the file \specular\includes\widgets\codeless_socialwidget.php
      Find this code:

      echo '<ul class="footer_social_icons '.esc_attr($style).'">';
                  
                  if( !empty($cl_redata['facebook']) )
                     echo '<li class="facebook"><a href="'.esc_url($cl_redata['facebook']).'"><i class="icon-facebook"></i></a></li>';
                  if( !empty($cl_redata['twitter']) )
                      echo '<li class="twitter"><a href="'.esc_url($cl_redata['twitter']).'"><i class="icon-twitter"></i></a></li>';
                  if( !empty($cl_redata['flickr']) )
                      echo '<li class="flickr"><a href="'.esc_url($cl_redata['flickr']).'"><i class="icon-flickr"></i></a></li>';
                  if( !empty($cl_redata['google']) )
                      echo '<li class="google"><a href="'.esc_url($cl_redata['google']).'"><i class="icon-google"></i></a></li>';
                  if( !empty($cl_redata['dribbble']) )
                      echo '<li class="dribbble"><a href="'.esc_url($cl_redata['dribbble']).'"><i class="icon-dribbble"></i></a></li>';
                  if( !empty($cl_redata['foursquare']) )
                      echo '<li class="foursquare"><a href="'.esc_url($cl_redata['foursquare']).'"><i class="icon-foursquare"></i></a></li>';
                  if( !empty($cl_redata['linkedin']) )
                      echo '<li class="foursquare"><a href="'.esc_url($cl_redata['linkedin']).'"><i class="icon-linkedin"></i></a></li>';
                  if( !empty($cl_redata['youtube']) )
                      echo '<li class="youtube"><a href="'.esc_url($cl_redata['youtube']).'"><i class="icon-youtube"></i></a></li>';
                  if( !empty($cl_redata['email']) )
                      echo '<li class="email"><a href="'.esc_url($cl_redata['vk']).'"><i class="icon-envelope"></i></a></li>';
               

      and add this one below the above code:

         if( !empty($cl_redata['vk']) )
                      echo '<li class="vk"><a href="'.esc_url($cl_redata['email']).'"><img src=""  width="32" height="32"></a></li>';

      Add between the quotes

      src=""

      the image url of the icon you uploaded.
      Then edit the file specular\includes\core\codeles_options.php, find the lines:

      
      $this->sections[] = array(
                      'icon' => 'el-icon-twitter',
                      'title' => __('Social Media', 'codeless-admin'),
                      'fields' => array(
                          array(
                              'id'       => 'facebook',
                              'type'     => 'text',
                              'title'    => __('Facebook Link', 'codeless-admin')
                          ),
                          array(
                              'id'       => 'twitter',
                              'type'     => 'text',
                              'title'    => __('Twitter Link', 'codeless-admin')
                          ),
                          array(
                              'id'       => 'flickr',
                              'type'     => 'text',
                              'title'    => __('Flickr Link', 'codeless-admin')
                          ),
                          array(
                              'id'       => 'foursquare',
                              'type'     => 'text',
                              'title'    => __('Foursquare Link', 'codeless-admin')
                          ),
                          array(
                              'id'       => 'google',
                              'type'     => 'text',
                              'title'    => __('Google Plus Link', 'codeless-admin')
                          ),
                          array(
                              'id'       => 'dribbble',
                              'type'     => 'text',
                              'title'    => __('Dribbble Link', 'codeless-admin')
                          ),
                          array(
                              'id'       => 'linkedin',
                              'type'     => 'text',
                              'title'    => __('Linkedin Link', 'codeless-admin')
                          ),
      
                          array(
                              'id'       => 'youtube',
                              'type'     => 'text',
                              'title'    => __('Youtube Link', 'codeless-admin')
                          ),
      
                          array(
                              'id'       => 'email',
                              'type'     => 'text',
                              'title'    => __('Email Link', 'codeless-admin')
                          ),
      

      and add this one below it:

      array(
                              'id'       => 'vk',
                              'type'     => 'text',
                              'title'    => __('VK Link', 'codeless-admin')
                          )
      

      Now you can refresh the general options and you can see there at Social Media section a new field for the VK social.

      Let us know if you need further help.

      Best regards!

    • 10 years, 4 months ago Olenka101
      Participant

      Expired

      Thank you very much! It worked!

      I know that this may be too much.. But is it possible to make it change color when mouse is over it like the other social links do?

      Again – THANKS A LOT!

      Best regards,

      Olga

    • 10 years, 4 months ago Olenka101
      Participant

      Expired

      I don’t know if that is connected to the social link or not.. May be I did smth wrong..  But above my menu in the frontend and in the backend there appeared some additional row with a plus in the left corner. How can I remove it? What is it?

       

      Screenshots https://www.dropbox.com/sh/rzie9mioxync9cp/AABPWfKxnaoM4-8xx_dV850Qa?dl=0

       

      Thanks!

    • 10 years, 3 months ago Ruco
      Keymaster

      Hello,

      I don’t understand what’s the additional row about. Please can you give me your site credentials (in a private reply) so I can check, also the icon to change color on hover?

      Best regards!

    • 10 years, 3 months ago Olenka101
      Participant

      Expired

      This reply has been marked as private.
    • 10 years, 3 months ago Ruco
      Keymaster

      Hello,

      It’s difficult to find out where the ‘+’ sign is coming from. It’s not part of the theme. You must check the code on debugging mode and try to find it out.

      For the VK icon change o hover, you must add another image at the same folder with different color icon.
      Then add this css code on custom css field on general settings:

      .social_widget .vk img:hover {
      background: url("");//put between quotes the image url.
      }

      Best regards!

Viewing 6 reply threads

You must be logged in to reply to this topic.

Login

Log In
Register

Renew Support

  • Renew Specular Support
  • Renew Tower Support
  • Renew Folie Support
  • Renew Handel Support
  • Renew June Support
  • Renew Picante Support
  • Renew Thype Support
  • Renew Regn Support

Search Forums

Forums

  • Bygge – Construction Theme
  • Converta – Software Theme
  • Folie – The WordPress Website Builder
  • Handel – Responsive Multi-Purpose Business Theme
  • June WooCommerce WordPress Theme
  • Livecast – Podcast Theme
  • Picante – Restaurant & Food WordPress Theme
  • Regn | Agency & Business WordPress Theme
  • Remake – Minimal Portfolio & Agency Theme
  • Specular – Multi-Purpose WordPress Theme
  • Suggest us Features
  • Tower – Business-Driven Multipurpose WP Theme
  • Vibrance – Photography Theme

Site Links

  • Support Policy
  • Specular Support Forum
  • Video Tutorials
  • Knowledge Base
  • Guides and Reviews

Useful Articles

  • Build a Website
  • Web Design & Development
  • Hosting
  • WordPress

Login

Log In
Register Lost Password