Support » Theme: Astrid » Service page links – make photo link and make a link

  • Resolved jax1964


    On my homepage I have the three “services” showing. Goats, Firewood, Worm Wee.
    The photo should link to the respective pages and so should the <More> text.

    Is it possible to get rid of the <More> text altogether and only have the photo and page title as links?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @jax1964,

    Thank you for contacting us. I am happy to help with your queries.

    Try doing these steps:

    1. Install and activate the TC Custom JavaScript plugin
    2. Go To Appearance > Custom JavaScript
    3. Paste the following code into the provided box

    ;(function($) {
       'use strict'
       if( $('.atframework_services_widget').length ){
         $('.service-area .service').each(function(){
           var link = $(this).find('.service-title > a').attr('href');
    	   $(this).find('.service-thumb').wrapInner('<a href="'+link+'"></a>');
           var text = $(this).find('.service-content').html();
           text = text.replace(/\(/g,'').replace(/\)/g,'');
           $(this).find('.service-content').html(text.replace(/more…/gi, ''));

    4. Update

    Hope that helps.


    Thread Starter jax1964


    It didn’t work 🙁

    I checked and double checked the copy/paste into the plugin but it hasn’t changed a thing.

    I can’t write code so I’d be grateful if you checked it for me.


    Hi Jax,

    As inspected, seems likely you copied the code from email.

    Please directly visit this thread and copy the code presents in there.


    Thread Starter jax1964


    Oh yes – brilliant – thank you. Works well now.
    So pleased


    You’re welcome!

    Please let us know in a new topic if you have any further questions, or if we can provide you with any other assistance.


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