-
-
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!
-
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.phpand 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!
-
-
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>'; }
-
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
-
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.
-
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!
-
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
-
You must be logged in to reply to this topic.