I am trying to insert a link to a post by using the [wpv-post-link] shortcode.
When I insert this shortcode into a box with formatting it does not adhere to the set format like the rest of the text, it displays in a grey colour.
In the preview the shortcode displays in the desired and set format, however when I view the page the format is not kept. Is there an option within Toolset that can affect this? Or would this be influenced by something else?
Hi Ben,
Thanks for asking! I'd be happy to help.
By default, the [wpv-post-link] shortcode outputs the post title and its URL using a regular <a> tag ( hidden link ), without any CSS styling information, of its own.
If the link's color is showing different than regular text on the front-end, it would suggest that the active theme or a different plugin is including some CSS styles for this.
You can use Chrome's (or your preferred browser's) inspect element tool to see and adjust the CSS styles as needed.
Following are some useful guides on the topic:
hidden link
https://toolset.com/documentation/user-guides/adding-custom-css-views/
I hope this helps! Please let us know if you need any further assistance.
regards,
Waqar
Thank you for the information and tools Waqar!
I thought maybe Toolset was adjusting the CSS somewhere, but I will have to have a closer look and see what is affecting it.