• Resolved kaaple

    (@kaaple)


    Hi, thanks for this plugin!

    Can You tell me how can i add Carousel item to the Widget?

    Or if it’s impossible now, how can i paste it directly in my functions.php file if i have this lines of code:

    //* Register before footer widget area
    genesis_register_sidebar( array(
    ‘id’ => ‘przed-stopka’,
    ‘name’ => __( ‘Przed Stopką’, ‘genesis’ ),
    ‘description’ => __( ‘To jest pozycja w której treśc widoczna jest przed stopką’, ‘genesis’ ),
    ) );

    add_action( ‘genesis_before_footer’, ‘sp_before_footer’, 5 );
    function sp_before_footer() {
    genesis_widget_area( ‘przed-stopka’, array(
    ‘before’ => ‘<div class=”przed-stopka widget-area”><div class=”wrap”>’,
    ‘after’ => ‘</div></div>’,
    ) );
    }

    Thanks for help

    https://wordpress.org/plugins/wp-owl-carousel/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Dabuuker

    (@dabuuker)

    Hi,

    I might look into adding a widget for the plugin, but for now you could probably use a text widget and insert the shortcode there if you add a few lines to your functions.php.

    This should work: https://premium.wpmudev.org/blog/daily-tip-how-to-use-shortcodes-in-wordpress-text-widgets/

    Thread Starter kaaple

    (@kaaple)

    Yeah, thanks for answer.

    My code into functions.php for Genesis theme is that:

    //* Register before footer widget area
    add_action( ‘genesis_before_footer’, ‘sp_before_footer’, 5 );
    function sp_before_footer() {
    echo ‘<div class=”przed-stopka”><div class=”wrap”>’;
    echo do_shortcode( ‘[wp_owl id=”88″]’ );
    echo ‘</div>’;
    }

    Mayby wil be helpful to someone 🙂
    Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Carousel in widget’ is closed to new replies.