Skip Navigation

[Resolved] Add Title Attribute to [toolet-edit-post-link] shortcode

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

Problem:
How I set up a toolset edit post link and add the “title attribute” to the text through shortcode?

Solution:
The shortcode accept only following attributes:
Content_template_slug, layout_slug, target, style and class
We can get similar result by adding span tag with title attribute, like this:

[toolset-edit-post-link content_template_slug="update_post"]<span title="Update">[wpv-post-title][/toolset-edit-post-link]</span>

Relevant Documentation:
https://toolset.com/documentation/user-guides/views-shortcodes/#toolset-edit-post-link

This support ticket is created 7 years, 2 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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 6 replies, has 2 voices.

Last updated by julieP 7 years, 2 months ago.

Assisted by: Noman.

Author
Posts
#566693

I'm using this shortcode in a View to enable the user the edit the post(s) returned by the View:-

[toolset-edit-post-link content_template_slug="update_post"][wpv-post-title][/toolset-edit-post-link]

How do I incorporate the title attribute in this shortcode please?

I tried this but it didn't work:-

[toolset-edit-post-link content_template_slug="update_post" title="Update"][wpv-post-title][/toolset-edit-post-link]

Thanks

#566754

Noman
Supporter

Languages: English (English )

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

Hi Julie,

Thank you for contacting Toolset support. I beleive you want to change the text for Edit post link, please use the following shortcode in your View:

[toolset-edit-post-link content_template_slug="update_post"]Update %%POST_TITLE%%[/toolset-edit-post-link] 

Thank you

#567541
title attribute.JPG

Hi Noman

Sorry but that isn't what I'm looking to do.

To set up a link with a title attribute of title="Update" and link text of Post Title the code would look like this:-

<a href="<em><u>hidden link</u></em>" title="Update">Post Title</a>

When you mouse hover over the link, it looks like the image uploaded.

I'm looking to achieve the same thing when I'm using the toolset edit post link shortcode in my Views

#567551

Noman
Supporter

Languages: English (English )

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

I would like to get more clarification on this. So you want that both Update + Post Title text should display within this same button style >> and the button will have link to edit post, is it correct or I am missing something?

And the result would be like below in button style for each post?
Update Post 1
Update Post 2
Update Post 3
etc...

Can you please also send me the page link?

Thank you

#569651

I don't have this on my site; I created it purely to demonstrate what I'm trying to achieve. I'm under the impression that developers generally understand what is mean by a title attribute or am I missing something?

Can I suggest you put the following into a page on your own install then visit that page in a browser and hover over the link to see what happens (the box with 'Update' in it will appear above/near the link):-

<a href="<em><u>hidden link</u></em>" title="Update">Post Title</a>

I'm asking how I set up a toolset edit post link to behave in the same way.

Thanks

#569919

Noman
Supporter

Languages: English (English )

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

Hello Julie,

This shortcode accept only following attributes:
Content_template_slug, layout_slug, target, style and class

We can get similar result by adding span tag with title attribute, like this:

[toolset-edit-post-link content_template_slug="update_post"]<span title="Update">[wpv-post-title][/toolset-edit-post-link]</span>

Thank you

#572192

thank you!!