Tagged: services widget link
October 28, 2017 at 8:26 pm #53851October 30, 2017 at 5:56 am #53857Theme Horse Support TeamKeymaster
The underscores doesn’t have the read more link because, it only have character less than 130. If you character is less than 130 then it will not display read more link. So you need to add character less than 130 including space. So that your specific service page widget will not show read more text.
Thank you!October 30, 2017 at 7:39 pm #53870mers216Participant
Thank you for your answer. It has really helped me.
However, I have still another question on this subject: now I don’t have the “Read more” link, but the icon and the title of the service still link with the page. My purpose is to have the Services Widget in the Home Page as just text with images (the icons). This way I would not have to create a linkable page with content for all the services.
So, is there a way to disable the links for the title and the icon of a specific service (not all services)?
Many thanks in advance.October 31, 2017 at 4:52 am #53872Theme Horse Support TeamKeymaster
Hi Hi mers216,
To remove the link from specific title and image code customisation is required as this is a new feature to be added in the theme. So you need to hire a developer to fix it.
Go to theme folder -> inc -> widgets -> ambition-widgets.php on line no 424 remove this line of code
<div class="service-img"><a title="<?php the_title(); ?>" href="<?php the_permalink(); ?>"> <?php echo get_the_post_thumbnail( $post->ID, 'ambition-icon'); ?> </a> </div>with
<div class="service-img"><?php echo get_the_post_thumbnail( $post->ID, 'ambition-icon'); ?></div>and also on line no 427
<h3 class="service-title"><a title="<?php echo esc_attr($page_title); ?>" href="<?php the_permalink(); ?>"><?php echo esc_attr($page_title); ?></a></h3>with
<h3 class="service-title"><?php echo esc_attr($page_title); ?></h3>
We recommended not to change the code because if you change the code then while updating to our new version all your customisation code will be lost. So better make child theme and first unhook the functions and the edit the code.
- You must be logged in to reply to this topic.