Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author samhagin

    (@samhagin)

    you can manually add the code below to the page you wish to remove it from

    <script>
    jQuery(document).ready(function() {
     jQuery('#wp-float-widget').remove()
    });
    </script>

    where wp-float-widget is the exact ID for the floating item on the page. if you are unable to find the ID, provide a link to the page with WP Float and I can help you.

    Thread Starter brycerafflesound

    (@brycerafflesound)

    Thank you so much for getting back to me so quickly. Really appreciate it.
    I’m not sure where I would find the ID…?
    This is the page it’s on:
    https://www.brycerafflesound.com/contactform/

    btw, really love this plugin.

    Plugin Author samhagin

    (@samhagin)

    from the source of that page you have this

    <div id="586-wpf">
                    <a class="fancybox-iframe{scrolling:no, width:100, height:100}" href="https://www.brycerafflesound.com/contactform/"><img alt="" src="https://brycerafflesound.com/images/Contact-b.png" width="40" height="140" /></a>                     </div>

    so the id is 586-wpf, the code will then be

    <script>
    jQuery(document).ready(function() {
     jQuery('#586-wpf').remove()
    });
    </script>

    simply put that in the post/page in HTML/text mode , not visual. visual mode will most likely break it

    Thread Starter brycerafflesound

    (@brycerafflesound)

    Thanks again for the reply. I tried that and oddly enough, it didn’t seem to do the trick.

    Plugin Author samhagin

    (@samhagin)

    it is not clear as to what you wish to remove from the page, what item is being used with WP Float on https://www.brycerafflesound.com/contactform/, it is the “contact us” button ? also which option did you use to add the button, did you use widget, shortcode or settings >> wp float options ?

    Thread Starter brycerafflesound

    (@brycerafflesound)

    Yes, it’s the Contact button. I used Settings >> WP Float Options to add the button.

    (Basically what I’ve got going on is the floating contact button on all pages – when someone clicks that button it opens up the contact page in a pop-up window (which isn’t working either right now, but that’s beside the point). But yeah, I don’t want the floating contact button to show up in the pop-up contact page as it seems redundant.)

    Plugin Author samhagin

    (@samhagin)

    try using this in HTML mode for the post you do not want it to show on

    jQuery(document).ready(function() {
    jQuery('.fancybox-iframe').remove()
    });

    demo https://jsfiddle.net/Ea65g/

    Thread Starter brycerafflesound

    (@brycerafflesound)

    Thanks so much! It’s working now.
    Actually, the first time I tried that, it didn’t work, but I found out when attempting to fix another plugin that my theme was using an older version of jquery.

    Here’s what I did to fix it:

    Look inside functions.php to find this URL:
    https://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js
    If it’s there, simply change it to:
    https://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js
    But that will not be enough because upgrading the jQuery library will cause an error in a theme script file, which you can solve by editing the theme file js/vt.js. Find near the end of the file the part that starts with
    // pf
    and ends with
    // end pf
    and completely remove that part

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Disable from some pages?’ is closed to new replies.