WordPress.org

Ready to get started?Download WordPress

Forums

iframe
[resolved] Text widget (6 posts)

  1. mvaillo
    Member
    Posted 1 year ago #

    Dear,
    This plug-in works with widgets, like the text widget?
    For me now only works in posts and pages, but I remember some time ago it worked also in text widget... you know, to embed some content in sidebar like videos or facebook like box.
    I use it with administrator rol in many sites.
    Thank you
    Marc

    http://wordpress.org/extend/plugins/iframe/

  2. webvitaly
    Member
    Plugin Author

    Posted 1 year ago #

    Try to add this php-code to your functions.php file:
    add_filter('widget_text', 'do_shortcode');

    Or install plugin which enable widgets in sidebar widgets.

  3. mvaillo
    Member
    Posted 1 year ago #

    Thank you!
    First option works right away.
    But... I run a multisite installation, this means that I need to add this function to all themes installed, one by one?
    Best,
    Marc

  4. webvitaly
    Member
    Plugin Author

    Posted 1 year ago #

    But... I run a multisite installation, this means that I need to add this function to all themes installed, one by one?

    In you case you can add the code to plugins/iframe/iframe.php file.
    It would be easier for you.

  5. mvaillo
    Member
    Posted 1 year ago #

    It works...
    thank you!

  6. webvitaly
    Member
    Plugin Author

    Posted 1 year ago #

    And I would recommend you to change the plugin version to '100' for example in the same file for avoiding plugin updates and prevent losing your code.

    But if you wish to see the updates to the Iframe plugin than I recommend to install another plugin which rans shortcodes in widgets.

    You may choose which approach is better for you.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic