• Resolved oleav

    (@oleav)


    Hello,

    I would like to include a shortcode in a very specific place. My social icons are called “Socials-buttons”. How do I solve this problem? I have not yet found a shortcode which I can include in PHP or HTML page ??

    Looking forward to hear from you,

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author vaakash

    (@vaakash)

    Please use the below snippet anywhere in your theme.

    <?php echo do_shortcode('[sc name="YOUR_SHORTCODE"]'); ?>

    Thread Starter oleav

    (@oleav)

    Thank you,

    I guess when in a regular post this should be correct?

    [sc name="Socials-buttons"]

    However, not working…

    Plugin Author vaakash

    (@vaakash)

    Yes. Not working means ? Can you please explain ?

    Thread Starter oleav

    (@oleav)

    Sorry for not beeing accurate.

    I mean in my single posts I have included the following code in the Visual Editor:

    [sc name=”Socials-buttons”]

    On my website the code above is just shown. No social buttons, error or anything. Not sure how I should approach this problem as I am not sure where the problem is.

    Thread Starter oleav

    (@oleav)

    Hello again,

    I see that the post has been marked as resolved. But that is incorrect. Problem is not solved.

    As mentioned above:
    On my website the code above is just shown. No social buttons, error or anything. Not sure how I should approach this problem as I am not sure where the problem is.

    Plugin Author vaakash

    (@vaakash)

    Can you please let me know where you have pasted the code ?

    In visual editor or text editor ?

    Please take a screenshot and send a link of the shortcode edit page.

    Thread Starter oleav

    (@oleav)

    Thanks for getting back to me,

    Its in the visual editor. I have used the following code: [sc name="Socials-buttons"]

    Here are some screenshots:

    View post on imgur.com


    https://imgur.com/argOkKf

    View post on imgur.com

    Any ideas?

    • This reply was modified 6 years, 11 months ago by oleav.
    • This reply was modified 6 years, 11 months ago by oleav.
    Plugin Author vaakash

    (@vaakash)

    I’m extremely sorry.
    I had another plugin related to “shortcodes” I was under assumption this issue is related to it.

    Please do the following.

    1) Click the “cog” icon next to the social button in WP Socializer page.
    2) In the bottom left corner, you will see the shortcode for that button.
    3) Copy that.
    4) Go to any editor (TEXT MODE) and paste it.

    Screenshots:
    https://i.snag.gy/GWOje7.jpg
    https://i.snag.gy/wbqiX5.jpg

    NOTE: If you are using any external plugin, please confirm with that developer first that the editor support shortcodes.

    Thanks,
    Aakash

    Thread Starter oleav

    (@oleav)

    No problem, thanks alot. Problem solved ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Shortcode’ is closed to new replies.