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 disable linking from service icon titles?

#iconlinksservicetitle
    • 9 years, 11 months ago Panu
      Participant

      Expired

      Hi,

      by default, when hovering over the service (small and big, squares etc) icon titles (and also the icons in Service Text Effect element), the cursor turns indicating a hyperlink. Even though I remove the # from the visual composer “link” -section, the effect still occurs. I do not want links to the icons, just use them and the text as visuals.

      What should I put in the custom HTML to disable the link altogether?

      The site is here: https://calcmat.pilot3.sofokus.com/ and the credentials you should already have.

      Thank you so much!

    • 9 years, 11 months ago Mirela
      Participant

      Hello,

      Sorry for the late reply.
      To remove the link please go to files:
      -vc_template\services_large.php
      -vc_template\services_medium.php
      -vc_template\services_small.php

      and find this line: <h4><a href="'.esc_url($data['link']).'">'.esc_html($title).'</a></h4>'; replace it with this: <h4>'.esc_html($title).'</h4>';
      While in file vc_template\services_media.php, find this line:
      '<h5><a href="'.esc_url($link).'">'.esc_html($title).'</a></h5>';
      and replace it with this: '<h5>'.esc_html($title).'</h5>';

      Save changes.
      This will remove the ‘link’ function from these services. If you wish to use them again as links, then reverse the changes.

      Best regards!

    • 9 years, 10 months ago Panu
      Participant

      Expired

      Thank you MIhaila, it worked fine!

    • 9 years, 8 months ago marcomeinardi
      Participant

      Expired

      This is actually better:

      for services_small.php, services_medium.php, services_large.php:

      if($data['link'] != '') {
      $output .= '<h4><a href="'.esc_url($data['link']).'">'.esc_html($title).'</a></h4>';
      }
      else {
      $output .= '<h4>'.esc_html($title).'</h4>';
      }

      and for services_media.php

      if($link != '') {
      $output .= '<h5><a href="'.esc_url($link).'">'.esc_html($title).'</a></h5>';
      }
      else {
      $output .= '<h5>'.esc_html($title).'</h5>';
      }
    • 9 years, 2 months ago marco
      Participant

      Expired

      Please can you suggest me?

      In my <span style=”color: #393d40; font-family: ‘Open Sans’, ‘Helvetica Neue’, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;”>-vc_template\services_large.php file I found a these lines of code a bit different:</span>

      $output .= ‘<h4>’;

      $output .= empty($data[‘link’]) ? esc_html($title) : ‘‘.esc_html($title).’‘;

      $output .= ‘</h4>’;

      $output .= ‘<p>’.do_shortcode($data[‘description’]).'</p>’;

      $output .= ‘</div>’;

      echo $output;

      how should I modify the lines in this case?

      thanks

      Marco

    • 9 years, 2 months ago marco
      Participant

      Expired

      Hi Mihaia,

      I finally was successfull in changing the code lines to disable link form service icon titles.

      But the problem is that in some pages I have service square icons where  I need link, that is:

      I want to remove link only form Service Small Icon TITLE and not from Service Square Icon Title .

      As I modify the code lines you seggest I got something like the attached file on square icon title.

    • 9 years, 2 months ago Mirela
      Participant

      Hello,


      @marco
      ,
      For the services square there is another file responsible. You must have made some mistake but i can’t tell without checking it.
      Please open up a new topic and send us your wp credentials in a private reply. Add this tickets link as reference.
      This topic is created by another user and he is able to see the private replies.
      Let us know.

      Best regards!

    • 9 years, 2 months ago marco
      Participant

      Expired

      Hello,

      thank you for your reply. It seems now I was successful, this is the page where I need remove title link:

      https://oltremateria.it/azienda/servizi/

      for example in this page such title links as “IL PROFESSIONAL NETWORK QUALITY” was to be removed.

      To do this I just modified the vc_template\services_small.php file and it works.

      I do not modified the other files vc_template\services_large.php and vc_template\services_medium.php

      Maybe the first file controls the small icons title?

      If you still think there is some mistake I’ll give you access to site

      Marco

       

       

    • 9 years, 2 months ago Mirela
      Participant

      Hello,


      @marco
      ,
      I have replied you in this topic of yours.

      Best regards!

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