- AuthorPosts
- July 22, 2017 at 2:51 am #23987Anonymous UserMember
In Venetian, in the upper right is where the social icons are.
There are 2 menu widget areas up there also. I can only add menus.
I have removed the social icons area and want to get 1 of the menu widget areas be able to use shortcode that I have from an icon widget.
How can this be done?
July 24, 2017 at 9:17 am #23989Christopher MMemberHello mark_pr,
Thank you for submitting a question about using icons and widgets. The menu areas and widget areas are separate. I hope that does not drastically alter your plans. The menu areas are reserved for menus.
It is possible to use shortcodes in widgets in the widget areas by adding some brief code to a theme file. There is a guide in the WordPress codex regarding using shortcode with widgets. This kind of modification falls under the category of general WordPress development. And, this would only work for adding shortcodes to the widget areas as opposed to the menu areas.
I strongly advise making this modification in a child theme so that the changes are not wiped out when the BoldGrid themes are updated.
Best,
Christopher M.
July 24, 2017 at 3:23 pm #23988mark_prMemberSo, where would I add this code:
add_filter( 'widget_text', 'shortcode_unautop' ); add_filter( 'widget_text', 'do_shortcode' ); Is that the correct place for the Venetian child theme?
- AuthorPosts
- The topic ‘How do I use different social icons?’ is closed to new replies.