Skip Navigation

[Resolved] I need help with one of the links on my page

This thread is resolved. Here is a description of the problem and solution.

Problem:

The issue here is that the user has a link custom field and when they add their link it gets rendered as a part of the website's url. Example if the user adds "google.com" in the URL field it gets rendered as "http://www.mywebsite.com/google.com"

Solution:

To resolve this the URL in the URL field need to be formatted correctly with http:// attached to it.

This support ticket is created 3 years, 10 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 4 replies, has 2 voices.

Last updated by BradH1338 3 years, 10 months ago.

Assisted by: Shane.

Author
Posts
#1939079

The link to my site is hidden link

I have a website link on all the companies listed on my site. But none of the links work. unless I actually type the http:// in before the hidden link
Is there a way I can solve this without having to go through every company a ndretyping the web address for each company again?

#1939937

Shane
Supporter

Languages: English (English )

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

Hi Brad,

Thank you for getting in touch.

Can you let me know how on the backend you've formatted the template to display this? I may have a workaround for you but It depends on how you are displaying the link from the field.

Can you can do is to just send me a screenshot of the template on the backend highlighting the area that you are using to display the link.

Also can you let me know if you a using a URL custom field.

Thanks,
Shane

#1940453
web address error.jpg

Hi Shane, many thanks for your response. I have included a screenshot. I hope this is the correct screenshot that you are wanting.

#1942397

Shane
Supporter

Languages: English (English )

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

Hi Brad,

Thank you for the patience, unfortunately based on this setup you won't be able to get it to work.

The url will require that you have the http:// added to it. I've also verified with a manual link that the same issue occurs when you've manually built a link like the example below.

<a href="www.google.com">Test</a>

This url when added to a wordpress post whether using the Block editor or classic editor won't resolve to the correct URL.

You will need to format the URL's with the http:// at the beginning. All your posts will need to be updated one by one.

Secondly to prevent this from occurring again you can enable the Validation format for the URL in your custom fields settings.

I must apologize for not being able to provide a solution as what I can do here on this one is limited.
Thanks,
Shane

#1942503

My issue is resolved now. Thank you!