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

Social Circle icon not linkable

    • 4 years, 1 month ago flatrock
      Participant

      Expired

      How do I make the Social Circle icon linkable as well. It appears only the title reacts to the link settings. https://dev-brookmark-2021.pantheonsite.io

    • 4 years ago Akram
      Keymaster

      Hi,

      Which social circle you mean ? I could not find any social icon on your provided URL.

      Thanks

    • 4 years ago flatrock
      Participant

      Expired

      Sorry, my mistake. It is “Service” Circle Icon widget. I asked WP Bakery page builder if it was their widget, they said it was the theme more likely.
      Thank you

    • 4 years ago Akram
      Keymaster

      Hi,

      Thanks for the clarification, well if it is available in the settings only then you can make it clickable otherwise it will need custom work to make it as you want ?

      Thanks

    • 4 years ago flatrock
      Participant

      Expired

      Do you have CSS that will make this easy? Or can you at least point me to the the code that runs this widget so I can try to fix it?

    • 4 years ago Akram
      Keymaster

      Hi,

      Sorry it will require PHP code to make that work as you want not only CSS.

      Thanks

    • 4 years ago flatrock
      Participant

      Expired

      Can you send a snippet of PHP then? This really should not be a difficult thing to do, in fact it should be part of the widget settings as an option to check on or leave unselected to deactivate.

      We purchased the upgraded theme in hopes it would have options such as this. As well to get better support. I feel a little bit disappointed.

      Thanks,
      Pete

    • 4 years ago Akram
      Keymaster

      Hi,

      My friend let me clear that theme support is the part of the issues you are facing but not stuff like custom work. That’s why it is beyond the theme scope.

      For PHP snippets just let me know if you are easy with programming so I can guide you accordingly.

      Thanks

    • 4 years ago flatrock
      Participant

      Expired

      I can deal with PHP snippets, yes. Please point me to the snippet and file/s that need to be edited.
      Thank you!

    • 4 years ago Akram
      Keymaster

      Hi,

      Then try to play with this file:

      /wp-content/plugins/specular-wpbakery-addons/public/vc_templates/services_medium.php

      Let me know if that works for you ?

      Thanks

    • 4 years ago flatrock
      Participant

      Expired

      Would you be able to send a php sniper I can add to that file?
      I saw something on another post here but can’t seem to locate that again.
      Thanks,
      Pete

    • 4 years ago Akram
      Keymaster

      Hi,

      Kindle see above post of mine where I have provided path of the file. You can make changes there.

      Thanks

    • 4 years ago flatrock
      Participant

      Expired

      I am asking if you have the code snippet, or can you tell me what to edit here?

      <?php

      /**
      * Shortcode attributes
      * @var $atts
      * @var $title
      * @var $icon_bool
      * @var $style
      * @var $icon
      * @var $image
      * @var $icon_color=codeless_get_mod(‘primary_color’)
      * @var $circle_color=codeless_get_mod(‘highlighted_background_main’)
      * @var $border_color=codeless_get_mod(‘primary_color’)
      * @var $dynamic_content_type
      * @var $dynamic_post
      * @var $dynamic_page
      * @var $dynamic_content_link
      * Shortcode class
      * @var WPBakeryShortCode_Services_Medium
      */
      $output = ”;
      $atts = vc_map_get_attributes( $this->getShortcode(), $atts );
      extract( $atts );

      $output = ‘<div class=” services_medium ‘.esc_attr($style).’ wpb_content_element”>’;

      $icon_class = (($icon_bool == ‘yes’)?’with_icon’:’no_icon’);

      $data = array();
      $query = array();

      $data[‘link’] = ”;
      $data[‘description’] = ”;

      if($dynamic_content_type == ‘page’){
      $query = array( ‘p’ => $dynamic_page, ‘posts_per_page’=>1, ‘post_type’=> ‘page’ );
      }
      if($dynamic_content_type == ‘post’){
      $query = array( ‘p’ => $dynamic_post, ‘posts_per_page’=>1, ‘post_type’=> ‘post’ );
      }
      if($dynamic_content_type == ‘content’){
      $data[‘description’] = $content;
      $data[‘link’] = $dynamic_content_link;
      }else{
      $loop = new WP_Query($query);
      if($loop->have_posts()){
      while($loop->have_posts()){
      $loop->the_post();

      $data[‘link’] = get_permalink();
      $data[‘description’] = get_the_excerpt();

      }
      }
      wp_reset_query();
      }

      if($icon_bool == ‘icon’ || $icon_bool == ‘yes’ && !empty($icon)):

      $extra_st = ”;
      if($style == ‘style_1’)
      $extra_st = ‘background:’.$circle_color.’;’;
      if($style == ‘style_3’)
      $extra_st = ‘border:2px solid ‘.esc_attr($border_color).’;’;
      $output .= ‘<div class=”icon_wrapper” style=”‘.$extra_st.'”><i class=”‘.esc_attr($icon).'” style=”color:’.esc_attr($icon_color).’;”></i></div>’;

      endif;

      if($icon_bool == ‘image’ && !empty($image)):
      $output .= ‘'.esc_attr__('Services Image', 'specular').'‘;
      endif;

      $output .= ‘<h4>‘.esc_html($title).’</h4>’;
      $output .= ‘<p>’.do_shortcode($data[‘description’]).'</p>’;
      $output .= ‘</div>’;
      echo codeless_complex_esc($output);
      ?>

    • 4 years ago flatrock
      Participant

      Expired

      I tried this bit did not work, please advise.

      $output .= ‘<div class=”icon_wrapper” style=”‘.$extra_st.'”><i class=”‘.esc_attr($icon).'” style=”color:’.esc_attr($icon_color).’;”></i></div>’;

    • 4 years ago Akram
      Keymaster

      Hi,

      OK I will send you working code.

      Thanks

    • 4 years ago flatrock
      Participant

      Expired

      Thank you very much!!

    • 4 years ago flatrock
      Participant

      Expired

      Hi Akram, was this sent to my email or will you post it here?

    • 4 years ago Akram
      Keymaster

      Hi,

      Yes I tried to post here could not can you please send me admin logins so I can update file at my own and check ?

      Thanks

    • 4 years ago flatrock
      Participant

      Expired

      This reply has been marked as private.
      • 3 years, 11 months ago flatrock
        Participant

        Expired

        Hi Akram, Would you please resend that code to my email? I cannot seem to find it and we are now ready to move the site from Dev mode to push it live and I never had time to try the code. Very much appreciated!
        Pete

    • 4 years ago Akram
      Keymaster

      Hi,

      Well, we don’t do this way but still I have sent you an email. After all we want you guys to move on … :)

      Let me know if that works ?

      Thanks

    • 3 years, 11 months ago Akram
      Keymaster

      Hi,

      Kindly let me if that code worked or not ?

      Thanks

      • 3 years, 11 months ago flatrock
        Participant

        Expired

        I did not see an email with the code, had you sent it? Can you resend please?
        Thank you
        Pete

    • 3 years, 11 months ago Akram
      Keymaster

      Hi,

      Well, I have sent email again on your provided email address, kindly verify and let me know ?

      Thanks

Viewing 21 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