Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #23987

    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?

    #23989

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

    #23988
    mark_pr
    Member

    So, 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?
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘How do I use different social icons?’ is closed to new replies.