-
Author
-
September 26, 2017 at 17:49 #174850PatagoniaParticipant
Hi, I was trying to add a shortcode around the featured image in the content-page template (in order to have social sharing buttons appear on the featured image), but when adding the shortcodes to the template file (content-page), it just spits out the shortcode on screen.
Is there a way to add shortcodes to the template file in general or more specifically to the featured image?
Thanks in advance,
Cheers, P
Attachments:
You must be logged in to view attached files.September 27, 2017 at 13:29 #174929LauraModeratorHello, to add shortcodes to a template you need some coding knowledge but maybe this helps https://css-tricks.com/snippets/wordpress/shortcode-in-a-template/
Let me know 🙂Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
September 28, 2017 at 16:37 #175097PatagoniaParticipantThanks for your reply. It did not work in this specific case, but that is a very useful solution to keep in mind for other template changes.
September 29, 2017 at 16:19 #175167LauraModeratorHello, i understand, please let me know if you need more help 🙂
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
-
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.