• Resolved Matt Scheidler

    (@matt6303)


    I am using the Post Carousel block to display very short posts from a custom post type, with “Show Title”, “Show Excerpt” and “Full Post”.

    Since I am showing the full post, I do not wish to have the title link to the actual post. But I’d like to display the title.

    Is there a way to display the title, without it being a hyperlink to the post?

    Thank you for your help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello @matt6303 ,

    You can use the following filter in the functions.php file of your child theme. With the help of the following filter, you can set # in all href of links of Post Title.

    add_filter( 'uagb_single_post_link_carousel', function() {
    	return '#';
    })

    I hope that helps. Let me know how it goes.

    Regards,
    Sweta

    Thread Starter Matt Scheidler

    (@matt6303)

    Sweta,

    Thank you. I was hoping to have the A tag removed entirely, but having the links point to # instead of the single post URL is a good start.

    I applied the function you provided then also added a pointer-events: none style via the stylesheet and this seems to accomplish what I need.

    Thanks again for your help!

    You’re most welcome, @matt6303 !

    If you need any further help, please open a new thread.

    Have a great day ahead. ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Post Carousel block – disable link on title’ is closed to new replies.