Can someone help with a Wordpress Plugin question?

by 4 replies
5
Hi Guys

I have recently setup a Wordpress blog with a pretty cool peel away ad plugin at the top right corner.

This is the plugin ...

Simple Page Peel Effect with jQuery & CSS | jQuery Tutorials | Web Design Tutorials and Front-end Development Blog by Soh Tanaka

You can see it at my site here ...

Personal Development | by Will Edwards

As you can see, it works great. But there's a modification I would like to make. I want it to stick to the background so it scrolls off the top of the page when the user scrolls down.

So, here is my question: can anyone tell me what file I need to edit and what the edit needs to be? I realise it is probably just changing an attribute from 'absolute' to 'relative' or something similar, but I can't find which file to edit.

Cheers,

Will
#programming #plugin #question #wordpress
  • It may be in the CSS, see if a poition:fixed property is attached to the CSS controlling placement of that object. "fixed" keeps certain elements stuck in one place:

    An element with fixed position is positioned relative to the browser window.
    It will not move even if the window is scrolled:

    just dump the fixed for static, or relative. static is the default when no property is assigned.

    I'm guessing that may be what your asking
    Example

    p.pos_fixed
    {
    position:fixed;
    top:30px;
    right:5px;
    }
    • [ 1 ] Thanks
  • You're going to have to edit the actual plugin file. Keep in mind that this will probably break the next time you update the plugin, so keep a note somewhere as to what you did.

    On line 349 of jquery-page-peel.php, change 'fixed' to 'static'.

    That's all there is to it. The peel will now scroll with the page.
    • [ 2 ] Thanks
  • Thank you Steve. You are spot-on - it works great.

    As I'm new to Wordpress, I had not realised there was a facility to edit the plugin php. I had been looking through all the other the CSS and the php pages and, obviously could not find the code.

    Many thanks

    Will
  • You're welcome!

Next Topics on Trending Feed