# Remove links from Posts module

**URL:** <https://community.wpbeaverbuilder.com/t/remove-links-from-posts-module/3868>\
**Category:** Beaver Builder\
**Created:** [July 22, 2015, 7:19am UTC](https://community.wpbeaverbuilder.com/t/remove-links-from-posts-module/3868 "2015-07-22T07:19:18Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrswisesturt](https://community.wpbeaverbuilder.com/user_avatar/community.wpbeaverbuilder.com/mrswisesturt/32/61_2.png) [@mrswisesturt](https://community.wpbeaverbuilder.com/u/mrswisesturt)\
**Post date:** [July 22, 2015, 7:19am UTC](https://community.wpbeaverbuilder.com/t/remove-links-from-posts-module/3868/1 "2015-07-22T07:19:18Z")

</div>

Hi there

I have a category of posts which are displayed using the Posts grid module and I want to disable the links on these posts (feature image and title on the grid) so visitors can see the grid info but they can’t click through the to actual post. They are all the same category. Happy adding php to my functions file as I’m using Genesis if there is a solution that requires that?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![bencarlo](https://community.wpbeaverbuilder.com/user_avatar/community.wpbeaverbuilder.com/bencarlo/32/287_2.png) [@bencarlo](https://community.wpbeaverbuilder.com/u/bencarlo)\
**Post date:** [July 22, 2015, 7:43am UTC](https://community.wpbeaverbuilder.com/t/remove-links-from-posts-module/3868/2 "2015-07-22T07:43:37Z")

</div>

Hey Nicola,

Thanks for getting in touch! This can be done via jQuery. The code below will disable all feature image and title links on a Post module using Grid layout site wide. If you want to target a specific module, you can place a class/ID on the module and add the selector respectively.

```auto
jQuery(document).ready(function($) {
  jQuery('.fl-post-grid-image a, .fl-post-grid-text h2 a').click(function(event) {
    event.preventDefault();
  });
});

```

Let us know if you need anything further!

Ben

---

<div class="post-metadata">

**Author:** ![smr310](https://community.wpbeaverbuilder.com/letter_avatar_proxy/v4/letter/s/4af34b/32.png) [@smr310](https://community.wpbeaverbuilder.com/u/smr310)\
**Post date:** [October 11, 2015, 8:18am UTC](https://community.wpbeaverbuilder.com/t/remove-links-from-posts-module/3868/3 "2015-10-11T08:18:33Z")

</div>

Hi Ben,

Can you please elaborate on how to do this?

I am a complete novice to wp. I tried adding this code under Themes - Code - Javascript Code but it didn’t do the trick.

Thanks for the help！

---

<div class="post-metadata">

**Author:** ![smr310](https://community.wpbeaverbuilder.com/letter_avatar_proxy/v4/letter/s/4af34b/32.png) [@smr310](https://community.wpbeaverbuilder.com/u/smr310)\
**Post date:** [October 11, 2015, 8:18am UTC](https://community.wpbeaverbuilder.com/t/remove-links-from-posts-module/3868/4 "2015-10-11T08:18:43Z")

</div>

Hi Ben,

Can you please elaborate on how to do this?

I am a complete novice to wp. I tried adding this code under Themes - Code - Javascript Code but it didn’t do the trick.

Thanks for the help！

Steve

---

<div class="post-metadata">

**Author:** ![bencarlo](https://community.wpbeaverbuilder.com/user_avatar/community.wpbeaverbuilder.com/bencarlo/32/287_2.png) [@bencarlo](https://community.wpbeaverbuilder.com/u/bencarlo)\
**Post date:** [October 12, 2015, 6:50am UTC](https://community.wpbeaverbuilder.com/t/remove-links-from-posts-module/3868/5 "2015-10-12T06:50:28Z")

</div>

Hey Steve,

That is exactly what needs to be done to make it work. Are you using the grid layout on the Posts module? Do you mind sharing the URL of the site so we can take a look?

Ben

---

<div class="post-metadata">

**Author:** ![smr310](https://community.wpbeaverbuilder.com/letter_avatar_proxy/v4/letter/s/4af34b/32.png) [@smr310](https://community.wpbeaverbuilder.com/u/smr310)\
**Post date:** [October 12, 2015, 6:54am UTC](https://community.wpbeaverbuilder.com/t/remove-links-from-posts-module/3868/6 "2015-10-12T06:54:10Z")

</div>

Hi Ben,

Thanks for the quick response. I’m using the feed layout.

Here are two links for blog pages (I’m using one page for video posts and the other for written posts):

[http://ouyangjianshen.com/?page\_id=38](http://ouyangjianshen.com/?page_id=38)  
[http://ouyangjianshen.com/?page\_id=40](http://ouyangjianshen.com/?page_id=40)

Thanks,  
Steve

---

<div class="post-metadata">

**Author:** ![bencarlo](https://community.wpbeaverbuilder.com/user_avatar/community.wpbeaverbuilder.com/bencarlo/32/287_2.png) [@bencarlo](https://community.wpbeaverbuilder.com/u/bencarlo)\
**Post date:** [October 12, 2015, 9:15am UTC](https://community.wpbeaverbuilder.com/t/remove-links-from-posts-module/3868/7 "2015-10-12T09:15:59Z")

</div>

Hey Steve,

You can use this code instead. You can place it on the same spot.

```auto
jQuery(document).ready(function($) {
  jQuery('.fl-post-feed-title a, .fl-post-feed-image a').removeAttr('href');
});

```

Ben

---

<div class="post-metadata">

**Author:** ![smr310](https://community.wpbeaverbuilder.com/letter_avatar_proxy/v4/letter/s/4af34b/32.png) [@smr310](https://community.wpbeaverbuilder.com/u/smr310)\
**Post date:** [October 12, 2015, 9:45am UTC](https://community.wpbeaverbuilder.com/t/remove-links-from-posts-module/3868/8 "2015-10-12T09:45:32Z")

</div>

That worked, thanks a lot.

One more question - Is there also a way to get the title of the post to not change color when the mouse hovers over it.

Thanks,  
Steve

---

<div class="post-metadata">

**Author:** ![bencarlo](https://community.wpbeaverbuilder.com/user_avatar/community.wpbeaverbuilder.com/bencarlo/32/287_2.png) [@bencarlo](https://community.wpbeaverbuilder.com/u/bencarlo)\
**Post date:** [October 12, 2015, 9:59am UTC](https://community.wpbeaverbuilder.com/t/remove-links-from-posts-module/3868/9 "2015-10-12T09:59:44Z")

</div>

Hey Steve,

Actually, just use this instead so it doesn’t have that highlight stuff.

```auto
jQuery(document).ready(function() {
  jQuery('.fl-post-feed-title a, .fl-post-feed-image a').each(function() {
    jQuery(this).replaceWith(jQuery(this).contents());
  });
});

```

Ben

---

<div class="post-metadata">

**Author:** ![smr310](https://community.wpbeaverbuilder.com/letter_avatar_proxy/v4/letter/s/4af34b/32.png) [@smr310](https://community.wpbeaverbuilder.com/u/smr310)\
**Post date:** [October 12, 2015, 10:02am UTC](https://community.wpbeaverbuilder.com/t/remove-links-from-posts-module/3868/10 "2015-10-12T10:02:56Z")

</div>

Thats perfect, thanks for the help, Ben.

---

<div class="post-metadata">

**Author:** ![bencarlo](https://community.wpbeaverbuilder.com/user_avatar/community.wpbeaverbuilder.com/bencarlo/32/287_2.png) [@bencarlo](https://community.wpbeaverbuilder.com/u/bencarlo)\
**Post date:** [October 12, 2015, 10:17am UTC](https://community.wpbeaverbuilder.com/t/remove-links-from-posts-module/3868/11 "2015-10-12T10:17:36Z")

</div>

No worries! Enjoy BB! 🙂

Ben

---

<div class="post-metadata">

**Author:** ![system](https://community.wpbeaverbuilder.com/uploads/default/original/2X/9/9db1b183a7ea1efa26199a2a2b3511d742473dae.png) [@system](https://community.wpbeaverbuilder.com/u/system)\
**Post date:** [April 27, 2019, 10:17pm UTC](https://community.wpbeaverbuilder.com/t/remove-links-from-posts-module/3868/12 "2019-04-27T22:17:28Z")

</div>

Closed on April 27, 2019, 10:17pm UTC


