PDA

View Full Version : PayPal in individual Gallery


bare-and-grin-it
Dec-06-2009, 04:28 PM
I want to find out if I can get my PayPal button not to appear globally and just to appear in a single gallery?:scratch
http://photos.johnenslow.com
John

Andy
Dec-11-2009, 07:02 AM
Yes, you can. You put it in a div, like this:

<div id="mypaypalbutton">
(now the code here)
</div>

then use css

#mypaypalbutton {display: none;}
.gallery_XXXXXX #mypaypalbutton {display: block;}

bare-and-grin-it
Dec-12-2009, 02:16 AM
Yes, you can. You put it in a div, like this:

<div id="mypaypalbutton">
(now the code here)
</div>

then use css

#mypaypalbutton {display: none;}
.gallery_XXXXXX #mypaypalbutton {display: block;}

Hey Andy I wrote the help desk this:

"I had in place the <div> tags in the Customer Header section of the advanced site-wide customization. Where does that need to go now? It didn't seem to work when I put the same in the description of the gallery. And second where does the css tag go? In the CSS section of the advanced site-wide customization? And do you replace in the code XXXXX for the actual gallery that you wish for it to be located in?"

Their answer tells me I did it correctly placing the code in the header and css in the Advanced site wide configuration but they couldn't understand why it wasn't working. So I have put the code in as you have selected and it is still not working. Could I get a little more help to tweak this.

Andy
Dec-12-2009, 03:10 AM
Hey Andy I wrote the help desk this:

"I had in place the <div> tags in the Customer Header section of the advanced site-wide customization. Where does that need to go now? It didn't seem to work when I put the same in the description of the gallery. And second where does the css tag go? In the CSS section of the advanced site-wide customization? And do you replace in the code XXXXX for the actual gallery that you wish for it to be located in?"

Their answer tells me I did it correctly placing the code in the header and css in the Advanced site wide configuration but they couldn't understand why it wasn't working. So I have put the code in as you have selected and it is still not working. Could I get a little more help to tweak this.Hi. You are way more advanced than me :) Maybe lose the display: none from your header html.

CSS goes always in the sitewide customizing css box. YOu have it right, but y ou have too many elements I think.

Try

#paypalButtonSet {display: none;}

.gallery_10556160 #paypalButtonSet {display: block;}

I'll email Allen and ask him to assist - this is beyond me :)

You do not need to PM me to direct me here.

bare-and-grin-it
Dec-12-2009, 04:57 AM
Hi. You are way more advanced than me :) Maybe lose the display: none from your header html.

CSS goes always in the sitewide customizing css box. YOu have it right, but y ou have too many elements I think.

Try

#paypalButtonSet {display: none;}

.gallery_10556160 #paypalButtonSet {display: block;}

I'll email Allen and ask him to assist - this is beyond me :)

You do not need to PM me to direct me here.

I am more advanced than you . . .:rofl
I have just done what you have said in your posts with Craig.
I am running completely blind here:rolleyes

bare-and-grin-it
Dec-12-2009, 05:01 AM
Hi. You are way more advanced than me :) Maybe lose the display: none from your header html.

CSS goes always in the sitewide customizing css box. YOu have it right, but y ou have too many elements I think.

Try

#paypalButtonSet {display: none;}

.gallery_10556160 #paypalButtonSet {display: block;}

I'll email Allen and ask him to assist - this is beyond me :)

You do not need to PM me to direct me here.

I edited the css as you suggested and the button is still located in all the galleries. Look forward for Allen's help.

Allen
Dec-12-2009, 09:13 PM
I edited the css as you suggested and the button is still located in all the galleries. Look forward for Allen's help.
Got a rare bird alert and headed across the state Friday. Just got back and
will look as soon I get settled.

Allen
Dec-12-2009, 11:35 PM
Got a rare bird alert and headed across the state Friday. Just got back and
will look as soon I get settled.
If I delete the red in the generated html the button only shows in your PhotoCards gallery.

<div id="paypalButtonSet" style="display: inline;" class="paypalButton">

I'm afraid you'll need a javascript expert to help, it's beyond me.

bare-and-grin-it
Dec-13-2009, 03:44 AM
If I delete the red in the generated html the button only shows in your PhotoCards gallery.

<div id="paypalButtonSet" style="display: inline;" class="paypalButton">

I'm afraid you'll need a javascript expert to help, it's beyond me.

Hey Allen,
I got the initial codes from this post
http://www.dgrin.com/showthread.php?t=116380&highlight=paypal+button

Can we start from the beginning, I just want PayPal on that one gallery and I will go start all over if you have any suggestions.

Allen
Dec-13-2009, 07:28 AM
Hey Allen,
I got the initial codes from this post
http://www.dgrin.com/showthread.php?t=116380&highlight=paypal+button

Can we start from the beginning, I just want PayPal on that one gallery and I will go start all over if you have any suggestions.
See if this added to your CSS fixes it.

#altViews #paypalButtonSet {display: none !important;}

.gallery_10556160 #altViews #paypalButtonSet {display: block !important;}

bare-and-grin-it
Dec-13-2009, 07:44 AM
See if this added to your CSS fixes it.

#altViews #paypalButtonSet {display: none !important;}

.gallery_10556160 #altViews #paypalButtonSet {display: block !important;}

:barb:barb:barb:ivar:ivar:ivar:ivar:ivar:barb:barb :barb
That did it!!!
Thank you Allen!
Hoping this will help others too.