Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi, shortcodes are not enabled by default inside widgets.

    Probably a line like this in your functions.php file should do the trick:
    add_filter('widget_text', 'do_shortcode');

    If it doesn’t work, look around for other solutions on the web.

    Thread Starter LeeLKennedy

    (@leelkennedy)

    Hi whiletrue,

    Yes, that worked! For some reason, the alignment is off though, it won’t center like the text in the widget and the Facebook share button is lower than the others (you can see at https://anyonecanmakeawebsite.com/wordpress/ at the bottom). Is there any way around that?

    Thank you so much!
    Lee

    Hi, there’s probably some conflicting CSS rule active inside the widget area, you should fix it with some other customized CSS rule.

    Thread Starter LeeLKennedy

    (@leelkennedy)

    I’m sorry can you give me an example of what that would look like? Are you talking about adding some CSS styling into the widget text box?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can the share buttons be added to a widget?’ is closed to new replies.