Graphene Themes Forum

Graphene Themes Forum

Community support for Graphene themes

  • Home
  • Register
    • Reset password
  • Contact Us

Home › Forums › Graphene WordPress theme › Support

Show social sharing button on latest posts front page

  • JackHarts

    June 3, 2011 at 6:19 am #1088

    Is it possible to show the social sharing button on the posts that are listed on the front page. I am showing latest posts on my front page, not a static page.

    Thanks for your help.

    Admin

    Syahir Hakim

    June 4, 2011 at 10:23 pm #14546

    Not really, no. Most of the social sharing button codes take the URL of the current page to be shared. Putting the social sharing button on the front page will make all of the buttons for all the posts to be sharing the same url – the front page url.

    JackHarts

    June 11, 2011 at 5:53 pm #14547

    The button code I’m using takes that into account. It starts with the following:

    ‘<div class=”addthis_toolbox addthis_default_style” addthis:url=”<?php echo get_permalink(); ?>” addthis:title=”<?php echo get_the_title($postid); ?>”>’

    It would be very helpful if the buttons could show on the front page.

    Either way, thanks for all of your work. The theme is beautiful!

    Admin

    Syahir Hakim

    June 11, 2011 at 10:11 pm #14548

    You can’t use that button code with the social sharing button options in the theme, cause it contains PHP which would not be parsed. You would have to include it via a child theme functions.php file instead.

    JackHarts

    June 11, 2011 at 10:36 pm #14549

    Oh, OK. Now I get it.

    Thanks for the info, your help and your advice. I appreciate it.

    Admin

    Syahir Hakim

    June 11, 2011 at 11:44 pm #14550

    Update: in the next version I’ll include two tags ([#post-url] and [#post-title]) which you can use in the social sharing code. The theme will then replace these tags with the post’s URL and title.

Viewing 6 posts - 1 through 6 (of 6 total)

  • You must be logged in to reply to this topic.
Log In

Account

Log In
Register Lost Password

Search Forums

Priority Support

This free Support Forum relies on contributions from our support staffs and fellow Graphene themes users. While we endeavour to provide adequate and timely support, due to its voluntary nature responses are not guaranteed and may be delayed.

If you require urgent assistance, you may like to consider our Priority Support option.

Get Priority Support

Forums

  • Graphene WordPress theme
  • Graphene Mobile
  • Graphene Mobile Neo
  • Franz Josef

Recent Topics

  • The photo of my article is loading in the banner??
    12 months ago
  • need the original standard right sidebar back
    1 year ago
  • Hiding Child Listings only on Specific Pages?
    1 year ago
  • Is it possible to move the Comments counter?
    1 year ago
  • Image Size on Slider in home page
    1 year ago

Made with by Graphene Themes.