Share buttons on cookbook

Hello

I tried to integrate the share buttons from the cookbook but any of them are working. The weird thing is the only one working is google+ when I delette the “title” value like this :

<a href="https://plusone.google.com/_/+1/confirm?hl=de&url=<?php echo rawurlencode ($page->url()); ?>&title=<?php echo rawurlencode($page->title()); ?>" target="blank">Share on Google+</a>

For the facebook and twitter link, they don’t appear. Did you already had this problem ? (I’m running on Kirby 2.2.3)

Works for me (although not tested with Kirby 2.2.3, but I can’t see any code that should not work with that version)

What do you mean with

Do you mean, you can’t see the link on the page or the link does not work?

I tested on Kirby 2.3.2 and Kirby 2.4, it does the same thing, the link is not visible.
Precisely, the link is not visible (like “visibility:hidden”) but the link inside the source code is correctly written.
I can’t explain why…Do you think the problem comes from a localhost installation ?

Just try to copy/paste the code from cookbook and you’ll see…nothing :slight_smile:

Have you checked the source code?

As I said, it works for me when I copy/paste the link.

Maybe it’s an css issue? Try to remove your stylesheets temporarily. If the links become visible, there’s a css rule which causes the issue.

I tried to remove all my CSS, it’s not working. So it’s not a CSS issue. This is my screen capture from Firebug

So the link is rendered correctly, just not visible on the page for some reason. I can’t believe this is not a CSS issue.

This why it’s so weird ! In Firefox, if I try “Screen style>No style” or if I completly remove my CSS, it’s the same thing. And if I try to put the ... title="Share on Google+", it disapear ! I think it’s a clue…

Have you tried in another browser?

There’s a typo – a missing underscore:

target="blank"

should be …

target="_blank"

Good catch, @flokosiol, but that should not make the link disappear…

You’re right. I tried to reproduce it in the meantime, but the missing underscore doesn’t matter :worried:

Holly shit ! It’s working ! :slight_smile:
What’s the problem with Firefox ?? It’s working on Safari and Chrome ! I didn’t tested on Opera or IE.

(The _blank is not the solution, I tested)

It’s only a Firefox bug. I’ll try to find more informations about that and keep you informed. If you have any suggestions…

What version of Firefox are you using? I tried all browsers on my Mac apart from Tor, which does not work with localhost, and no problem. Any add-ons maybe?

Wow you are a genius ! This was due to my ADBLOCK plugin !
Hummm…ok I feel stupid now.

SOLVED !

Interesting, glad that we solved it in the end :slight_smile: