Skip Navigation

[Closed] I am trying to get a partner field non-clickable

This support ticket is created 3 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 12 replies, has 2 voices.

Last updated by Shane 3 years, 11 months ago.

Assisted by: Shane.

Author
Posts
#2311401
handler.PNG

Tell us what you are trying to do?

hidden link

At the partners page I'm trying to get a partner field non-clickable
as the Barnes and Nobles is already. While i see the JavaScript code for the non clickables
i can't find the partners to add the javascript:void(0).

example:
<div class="partner-slide"><div class="image" loading="lazy" style="background-image:url(hidden link);"></div><div class="name2"><p>$100,000+ Partner</p><h3>Barnes & Noble</h3><div class="all-star-logo">IMG</div></div></div>

Let me know if you have any questions

Thanks in advance

Is there a similar example that we can see?
Attached scrteenshots

What is the link to your site?
hidden link

#2311587

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jennie,

Thank you for getting in touch.

Is it that you only want this slide to not be clickable ?

Please let me know.
Thanks,
Shane

#2312243

Yes that's what i want to do !
Some of them are already non-clickable and i attached the code that I'm getting when i inspect the page and also the Javascript function as a screenshot.

#2312295

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

HI Jennie,

Based on what I see it is already non-clickable.

When I clicked on the Barnes and Noble i'm not taken to anywhere.

So i'm not sure I fully understand the issue at hand.

Thanks,
Shane

#2312343

Hey Shane if you read the question i'm mentioning that i know that Barnes & Nobles is not clicable and i add the code and screenshot as example.

I can't find the partners to make some other companies non clickable!

At the partners page I'm trying to get a partner field non-clickable
as the Barnes and Nobles is already (example). While i see the JavaScript code for the non clickables
i can't find the partners to add the javascript:void(0).

example:
<div class="partner-slide"><div class="image" loading="lazy" style="background-image:url(hidden link);"></div><div class="name2"><p>$100,000+ Partner</p><h3>Barnes & Noble</h3><div class="all-star-logo">IMG</div></div></div>

#2312349

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jennie,

Based on what I see in the JS code, this is where you will add the information to determine which partner is non-clickable.

Were you the one who crafted this JS code?

However should you add the partner name to the nonclickablepartners variable in you JS code then it should disable the clicking for the others.

Thanks,
Shane

#2312351

I added the partner that i want to make non-clickable in the function but it didn't work.
I didn't create that code. It's from an another developer or from toolset.

#2312359

If i don't add the href="javascript:void(0)" to the partner i want to make non-clickable it wont work.
The quetion i where are the partners beucose i can'r find them in the backend.

"<div class="partner-slide"><div class="image"" to the

#2312367

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

HI Jennie,

Unfortunately the support I can offer here is quite limited as this is purely custom coding.

If you allow me to have admin access to the site I can see what I can do but I cannot promise that I can fix this for you.

As I say this is custom coding which is out of our support scope.

I've enabled the private fields for your next response.
Thanks,
Shane

#2312399

Before i share with you the log in info,
Where the custom fields is being saved at the back-end?
I understand that are being created in the database
but there is a way to find them and add some code like
someone did in the past.

Thank for helping !

#2312547

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jennie,

The custom fields are stored in the database in the wp_postmeta table.

<Em>but there is a way to find them and add some code like
someone did in the past.

You can retrieve them with our Types shortcode or you can use the function from wordpress below.
https://developer.wordpress.org/reference/functions/get_post_meta/
Thanks,
Shane

#2312603

Hey Shane,

How can i retrive them retrieve them with our Types shortcode ?
can you show me the steps or if there is some documentation for that,
will be great!

Thanks

#2312611

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jennie,

If you're viewing the post then you can use the shortcode below.

[types field='my-field'][/types]

Where my-field is the slug of the custom field.

Now for this to work it must either be placed on the template that is displaying the post or a view that is displaying the list of post.

Unfortunately this falls under our legacy documentation and most of that has been archived.

Please let me know if you need any further clarification.

Thanks,
Shane

The topic ‘[Closed] I am trying to get a partner field non-clickable’ is closed to new replies.