parallax scroll in header widget
-
Hi,
i′ve created header sidebar thanks this tutorial: https://stackoverflow.com/questions/15497201/how-to-add-widget-to-the-header-php-in-wordpress
header.php:
function my_widgets_init() {
register_sidebar( array(
‘name’ => __( ‘Header Area’, ‘your-theme’ ),
‘id’ => ‘sidebar-2’,
‘description’ => __( ‘An optional widget area for your site header’, ‘your-theme’ ),
‘before_widget’ => ‘<div id=”%1$s” class=”headwidget %2$s”>’,
‘after_widget’ => “</div>”,
‘before_title’ => ‘<h3>’,
‘after_title’ => ‘</h3>’,
) );
}
add_action( ‘widgets_init’, ‘my_widgets_init’ );function.php:
<?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘sidebar-2’) ) : ?>
<?php endif; ?>than i went to widget–header area and put in text editor parallax code. you can see the image is only static image not parallax. could you help me, when i make mistake.
website: https://suraya.sk/
thank you
https://www.ads-software.com/plugins/adamrob-parallax-scroll/
- The topic ‘parallax scroll in header widget’ is closed to new replies.