Skip Navigation

[Resolved] Visual Composer Button in Content Template doesn’t Show right link

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

Problem:
Visual Composer Button does not render custom field shortcode.

Solution:
1. You can use create same button by copying VC css class for button and add it on your button link, something like this:

<a href="[types field='car-details-link' output='raw'][/types]"><button class="vc_general vc_btn3 vc_btn3-size-md vc_btn3-shape-rounded vc_btn3-style-modern vc_btn3-color-grey" type="button">Button</button></a>

2. Visual Composer does not allow any shortcode to be used in link URL field as we are trying to. As per the suggestion of our 2nd tier support I tested a custom shortcode in this URL field, but it is also not rendering in the URL field.

Looks like Visual Composer only supports relative URLs and not the absolute urls in this URL option. So we recommend you to please submit this as a feature request to Visual Composer support team as they are the one who has control over what’s allowed in the link field. OR you can use the workaround I posted above for the button.

Relevant Documentation:
https://codecanyon.net/item/visual-composer-page-builder-for-wordpress/242431/comments?page=861&filter=all#comment_17888161

This support ticket is created 7 years 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
- 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 -
- 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 3 replies, has 2 voices.

Last updated by Nashaat 7 years ago.

Assisted by: Noman.

Author
Posts
#583156
2-Avada.jpg
1-Avada.jpg
2-VC.jpg
1-VC.jpg

I am trying to design my custom Post type Template using Content Template and Visual composer. I tried to insert a custom field ( [types field='car-details-link'][/types] ) in a visual composer button URL. for example instead hidden link i put [types field='car-details-link'][/types].

The button of Visual composer will show on the front end but it doesn't show the actual link. (see pictures)

instead this i tried to use Avada's Fusion Builder for building the design of Content Template. The result are great, when i insert the custom field shortcode in a button link it shows the right link which is great. (see Pictures)

I know now i can use avada for Building the content Template but for design reasons i want to use Visual composer.

Is there a way to solve this?
Thank you

#583263

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi Nashaat,

Thank you for contacting Toolset support. I am now able to reproduce this issue. I have escalated this issue to our 2nd tier support for further review and we will get back to you with an update.

As a workaround you can use create same button by copying VC css class for button and add it on your button link, something like this:

<a href="[types field='car-details-link' output='raw'][/types]"><button class="vc_general vc_btn3 vc_btn3-size-md vc_btn3-shape-rounded vc_btn3-style-modern vc_btn3-color-grey" type="button">Button</button></a>

Thank you for your co-operation and patience.

#584252

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hello,

We have again checked this issue and find out that Visual Composer does not allow any shortcode to be used in link URL field as we are trying to. As per the suggestion of our 2nd tier support I tested a custom shortcode in this URL field, but it is also not rendering in the URL field.

Looks like Visual Composer only supports relative URLs and not the absolute urls in this URL option. So we recommend you to please submit this as a feature request to Visual Composer support team as they are the one who has control over what’s allowed in the link field. OR you can use the workaround I posted above for the button.

Thank you for your understanding.

#584264

Thank you for you Reply,

So i would say Toolset is more compatible with avada's Fusion builder and NOT visual composer :)!
AVADA renders all shortcodes of toolset right. even if i insert a youtube link [types field='youtube-link'][/types] in Avada's youtube shortcode URL this will render it perfectly.

I have already submitted this to visual composer team here you can see their answer : hidden link

Please update me if anything changes with this issue.
Thank you.