This topic has 3 replies, 2 voices, and was last updated 7 years by Laura.

  • Author
  • #174850
     Patagonia
    Participant

    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.
    #174929
     Laura
    Moderator

    Hello, 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 solution

    Laura 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 🙂

    #175097
     Patagonia
    Participant

    Thanks 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.

    #175167
     Laura
    Moderator

    Hello, 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 solution

    Laura 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 🙂

Viewing 4 posts - 1 through 4 (of 4 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?