Icon Shortcodes no longer work in sidebar widgets?

Hello,

I used to use code similar to the following in the sidebar widget’s of my X theme website:

<a href="#social-profile-url">[icon type="facebook-square"]</a>

As of some recent update, these no longer work. The html shows up, but the shortcode does not render. Is there a more up-to-date method for doing this?

Thanks.

Hi there,

Thanks for writing in! I tested your code in my local setup and it works as expected (see screenshots)


Make sure that you are fully updated (Theme and Plugins)

You can find the latest version numbers here: (http://theme.co/changelog/) Then you can compare them to what’s installed on your site.

If you find anything to be out of date, you can review our update guide.

In the mean time you can try the following code:

<a href="#social-profile-url">[x_icon type="facebook-square"]</a>

Let us know how this goes!

Same problem here but only on mobile. When I look at my phone the shortcode has not rendered

But it works for desktop

Hi Jonathan,

Shortcodes do not work inside the Alert element. Please use the HTML code of the icon instead.

<a href="#social-profile-url" target="_blank"><i class="x-icon" data-x-icon-s="&#xf0eb;" ></i></a>

If you need other icons, please go here (https://fontawesome.com/icons?d=listing). Select the icon that you need, get the icon’s glyph code (https://prnt.sc/kmai8v)

Then supply it to the data-x-icon-s attribute.

Hope it helps,
Cheers!

Why not? Actually it does work while in the editor

Hi Jonathan,

I do not see any site URLs assigned to this Themeco account to test your issue. Could you please provide us with a URL to your site/page to check.

According to my test, it worked on Text widget area on desktop and mobile.

Also make sure to add your code in the Text tax.

Thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.