badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

Services widget without Read more link

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #53851
    mers216
    Participant

    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.

    #53857

    Hi 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!

    #53870
    mers216
    Participant

    Hi,
    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.

    #53872

    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.

    Thank you!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.