Skip Navigation

[Resolved] CSS customization for shortcodes

This support ticket is created 4 years, 9 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 7 replies, has 2 voices.

Last updated by deepS 4 years, 9 months ago.

Assisted by: Minesh.

Author
Posts
#1285663
Screenshot_2.jpg

I am using the following code to generate a view shown in the screenshot.

<h2>About [wpv-post-title item="@company-job.parent"]</h2>
[wpv-post-excerpt length="50" count="word" more="..." item="@company-job.parent"]
[wpv-post-read-more item="@company-job.parent"]

Well the shortcodes are generating their expected results, but the problem is I want the 'Read more' link text shown in the screenshot in the same line of the paragraph where it ends.
Hope I could explain the point. Please help.

#1285883

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Can you please share the problem URL where I can see the "Read More" link so I can check the HTML structure added to page source and guide you accordingly.

#1285887

hidden link
See the paragraph 'About School of Planning and Architecture'

#1285915

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I do not know why you added the "Read More" link using the shortcode [wpv-post-read-more] as [wpv-post-excerpt] shortcode already offers the way to display read more link:

What if you try to use the following way:

[wpv-post-excerpt length="50" count="word" more="<a href="[wpv-post-url item='@company-job.parent']"> Read More </a>" item="@company-job.parent"]

More info:
=> https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-post-excerpt

#1286027

Even I have tried what you have suggested but results are not what we are expecting. Interesting the 'Read More' button is not working or working in a wrong way (wrong url). I have updated the page with your code. Please have a look at the page.

#1286099

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Can you please send me access details?

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#1286163

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Can you please check now. I've adjust the code as given under:

[wpv-post-excerpt length="50" count="word" more="<a href='[wpv-post-url item='@company-job.parent']'> Read More </a>" item="@company-job.parent"]

I can see now it displays the correct "Read More" link - can you please confirm.

#1286203

My issue is resolved now. Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.