Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter wordpressuser1973

    (@wordpressuser1973)

    PS, I’m running Zoooom ver 1.2.3

    Plugin Author SilkyPress

    (@diana_burduja)

    Hi,

    the issue with the sticky header was totally different.

    I appreciate the effort you took to set up two nice examples to show me the problem.

    On your website there are two parallax libraries implemented. One from the theme and the other one from Adamrob.co.uk. Lets try to disable the one from the theme and see how it behaves. We’ll do that by removing the “parallax” class from the <body> tag.

    If you add the following code in the functions.php, the “parallax” class from <body> is supposed be removed:

    add_filter( 'body_class', 'body_class_parallax', 10, 2);
      function body_class_parallax( $wp_classes, $extra_classes ) {
          foreach( $wp_classes as $_key => $_value ) {
              if ( $_value == 'parallax' ) {
                  unset( $wp_classes[ $_key ] );
              }
          }
          return $wp_classes;
      }

    Let me know if this changes anything.

    Thread Starter wordpressuser1973

    (@wordpressuser1973)

    Thanks so much for your quick reply, Diana. And thanks for trying to help. The theme is a nightmare. A lot good, but a lot bad. The above code doesn’t switch off the parallax. Neither does the themes option to disable it! But I’m stuck with it and won’t waste your time with it. I’ll try a few workarounds and will update here if anything earth-shattering results. Needless to say, your plugin is way-better than the theme and will be noted in the site credits when we launch. (With a quick migration to Zooom pro.)

    Thanks again and best for the holidays.

    –R

    PS:
    <body id=”body” class=”single single-post postid-12184 single-format-standard no-prlx no-sticky-head actions-bottom compact-menu sldr-noloop sticky-default “>

    and still the parallax works. I think the problem is in the theme and not the plugin. Not at all worth it to spend the time. Again thanks-

    Plugin Author SilkyPress

    (@diana_burduja)

    I’m glad you enjoy using the plugin.

    Happy holidays to you too.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Problem with hero (parallax) header?’ is closed to new replies.