close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Static Title and Description

Thread began 11/04/2011 4:45 am by Daryl | Last modified 11/04/2011 1:43 pm by Daryl | 750 views | 4 replies |

DarylBeta Tester

Static Title and Description

Is there a way to add a static title and description to a share button?

I have a static site with multiple products on the same page.

I was trying to think of a way that I could add a share button under each product that would share the page that the products are on with an anchor tag for that product (which I believe is possible), but is there a way for the facebook share button to specify a Title and description rather than being retrieved from the page header?

Sign in to reply to this post

Jason ByrnesWebAssist

facebook does not offer a way to change the description, but you can set the tiitle.

in href portion of the like code:

href="http://www.facebook.com/sharer.php?u=<?php echo urlencode('http://yourdomain.co/page.php'); ?>"


you can add a t url variable to pass the title:

href="http://www.facebook.com/sharer.php?u=<?php echo urlencode('http://yourdomain.co/page.php&t=your title here'); ?>"



facebook share documentation can be found here:
share/

Sign in to reply to this post

DarylBeta Tester

Thanks Jason.

I have tried to do this, but it seems to be picking up the page title.

Does this look right?

<a name="fb_share" type="icon" href="#" onclick="window.open('http://www.facebook.com/sharer.php?u=<?php echo urlencode(((!empty($_SERVER["HTTPS"])) ? "https://" : "http://") . $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]); ?>&t=Set%20of%203%20Christmas%20Decoration', 'Facebook', 'toolbar=0,status=0,width=626,height=436'); return false;" title="Facebook">
Sign in to reply to this post

Jason ByrnesWebAssist

yes that looks correct, not sure why that would not work based on the face book documentation.


the reality is, they like button is targeted at the page, it is the page you are liking, not certain elements of the page.

to like specific products, you would be better of adding the like buttons to the product details page.

Sign in to reply to this post

DarylBeta Tester

Thanks Jason

Thats what I would like to have done, but clients eh!

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...