Tagged: services widget link
- This topic has 3 replies, 2 voices, and was last updated 7 years, 1 month ago by Theme Horse Support Team.
-
AuthorPosts
-
October 28, 2017 at 8:26 pm #53851mers216Participant
Hello. Thanks for the Ambition theme. It’s great.
My question is about the Services Widget (Bussines page). I have seen in the Live Preview (both Free and Pro versions) that the example “Underscores” doesn’t have the “Read more” link. I would like to know how can I disable this “Read more” link for a specific service. Is there any custom CSS code that I can add for this purpose?
Thank you.October 30, 2017 at 5:56 am #53857Theme Horse Support TeamKeymasterHi mers216,
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 #53870mers216ParticipantHi,
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 TeamKeymasterHi 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.
Thank you!
-
AuthorPosts
- You must be logged in to reply to this topic.