Viewing 29 posts - 1 through 29 (of 29 total)
  • Author
    Posts
  • #11122

    Hey,

    Thanks for the nice support here.

    Do you recommend a plugin to add social share on portfolio entries so people can share one specific item?

    If I have to code, can you tell me please on which page do i do that ? (which page is portfolio with “loaded on current page“ option)

    Thanks

    #70586

    In fact, all plugins work fine on single pages. But I want them to work on the portfolio diplayed on the current page (my site is quite a one-page with Angular but I want people to be able to share one specific portfolio entry). I hope it make sense.

    #70587

    Any clue ?

    #70588

    I’m creating a php file containing valid xHtml social buttons (for Twitter, Facebook, StumbleUpon, Linkedin, GooglePlus) and then I’ll include it inside single.php and loop-single-portfolio.php.

    I think you can do the same with, for example, “Shareaholic” and including the function in a separate file.

    #70589

    Hi Joolz,

    Q-design is correct. If you include the code to call the plugin into loop-portfolio-single.php in the includes folder, it should do the trick for you.

    Regards,

    Devin

    #70590

    Hey Devin, Thanks for the reply. Sorry I can’t make this work. Can I send you the link to my folio so you can have a look ?

    Thanks also to Q-design

    #70591

    Hi Joolz,

    Sure! I just re-read your original post again and I’m not entirely sure if the individual ajax item will link properly with a share button but I can certainly take a look.

    If you don’t want to post the site here, you can send it to me at devinvinson (at) gmail.com . Just make sure to include a link to this thread so that my junk mail filter doesn’t grab it.

    Regards,

    Devin

    #70592

    So, did you get my email ?

    My website is http://joolz.fr

    Regards,

    Joolz

    #70593

    Please, is there any chance I get a reply ?

    #70594

    Hi Joolz,

    I somehow missed your email Joolz I’m very sorry!

    It looks like you were able to add in the social buttons to the individual ajax portfolios so here is the changes you will need to make to have the title be a link:

    Open includes>helper-templates.php and search for

    echo "<div class='inner_slide'>";

    A few lines after that, you’ll replace:

    echo "<div class='portfolio-entry one_third'>";
    echo "<h1 class='ajax-portfolio-title'>".get_the_title()."</h1>";

    With

    echo "<div class='portfolio-entry one_third'>";
    echo "<h1 class='ajax-portfolio-title'>";
    echo "<a href='".get_permalink()."' rel='bookmark' title='".__('Permanent Link:','avia_framework')." ".get_the_title()."'>".get_the_title()."</a>";
    echo "</h1>";

    I just did a quick test with the latest version of Angular to make sure it doesn’t cause any issues. Make sure to save this file when you do updates so that you can re-apply the changes.

    Regards,

    Devin

    #70595

    Hi I would like to add a social share button to the Ajax portfolio, like Joolz has done it, but I am replacing the lines you are referring and nothing happens. Do i need to install a plugin or something to make it work? If you could point me out I would really appreciate it.

    Thank you very much in advance.

    Gobian.

    #70596

    Hi Gobian,

    You’ll need to enter your social php call after the line:

    the_content(__('Read more &rarr;','avia_framework'));

    So that it is included in the entry-content div. The code above will just make the title a link.

    Regards,

    Devin

    #70597

    Hi Devin, thanks for the reply. I’ll try this ASAP and keep you posted. Cheers again!

    #70598

    Great! Yes, definitely let me know how it goes.

    Can you post what you ended up doing for the social icons? I’m putting together a list of snippets that have worked for Angular so I want to look at all the options people have used for things like that and try them myself :)

    Regards,

    Devin

    #70599

    Sorry, it don’t work at all. Why ? Can’t say, but i’ve done everything right, as you write and it don’t work.

    Neither social button (only 3 appear on the folio, but 7 might as seen here : http://joolz.fr/see/ten-by-fotolia/).

    I use REALLY SIMPLE SHARE plugin, working fine on permalink but not on the slideshow.

    Please can you help ?

    Thanks.

    #70600

    Hey Joolz,

    I’m not sure what you mean. The code I provided for the links was tested so I know it works if implemented properly. Make sure you are replacing the correct lines in the helper-templates.php.

    Your link goes to a 404 page so I’m not able to see the example.

    Regards,

    Devin

    #70601

    The good link is here : http://joolz.fr/see/ten-by-fotolia

    With the changes (done properly) the title is not clickable. I can’t figure out why — because it might.

    #70602

    Oh I see now. The code I gave only works for the ajax titles since I didn’t think you would need to have a link in the single page.

    However, the links on your in-page portfolio (homepage) still don’t appear to be links. In your helper-templates.php file, can you find the lines of code you changed and then paste them here so I can see what you have. For instance, my final inner_slide div looks like this with the changes:

    echo "<div class='inner_slide'>";

    echo "<div class='flex_column two_third first'>";
    echo $data->slider;
    echo "</div>";

    echo "<div class='portfolio-entry one_third'>";
    echo "<h1 class='ajax-portfolio-title'>";
    echo "<a href='".get_permalink()."' rel='bookmark' title='".__('Permanent Link:','avia_framework')." ".get_the_title()."'>".get_the_title()."</a>";
    echo "</h1>";

    echo "<div class='entry-content'>";
    $meta = avia_portfolio_meta($id);
    if($meta)
    {
    echo avia_advanced_hr(false, 'small');
    echo $meta;
    }
    echo avia_advanced_hr(false, 'small');
    the_content(__('Read more &rarr;','avia_framework'));
    echo "</div>";

    echo "</div>";

    echo "</div>";

    Regards,

    Devin

    #70603
    echo "<div class='portfolio-entry one_third'>";
    echo "<h1 class='ajax-portfolio-title'>";
    echo "<a href='".get_permalink()."' rel='bookmark'>".get_the_title()."</a>";
    echo "</h1>";

    #70604

    Hope it’s not too long. Cheers, Joolz

    #70605

    Hi Joolz,

    I’m still not sure why its not working for you. When I add the same code you have (which is correct) to my file and re-upload it to my test server I don’t have any issues with the link working. Do you have any kind of caching plugin running perhaps?

    Is your frontpage done with the Frontpage dynamic template? I’m kind of stumped on what this specifically isn’t working correctly for you.

    Regards,

    Devin

    #70606

    Hi,

    Thanks for trying!

    My frontage is actually done with the dynamic template but it’s not the Frontpage’s one but another template page i’ve created (including only Portfolio) http://pix.am/nTxb/

    I can’t figure out why social icons still don’t appears all (as they do on a single portfolio page) http://pix.am/LjZU/

    #70607

    Sorry I missed this: no cache plugin at all. Only the social. I’ve deactivate, then re-activate, neither of this worked.

    Do you need to have access to my admin? And/or my server?

    #70608

    Hey Joolz,

    I don’t think that would help. The code I used I tested on a clean install of wordpress and Angular to make sure it worked. It seems like you have the same code in the same file so I’m just not sure why it isn’t taking effect properly.

    If you’d like, you can create an admin account for me and I’ll see if there is something that jumps out at me as causing issues.

    You can send the information to my email at DevinVinson (at) gmail.com. Make sure to include a link to this topic so that my spam filter doesn’t grab it :)

    Regards,

    Devin

    #70609

    Hey Devin, thanks again.

    Email with admin specs sent just 2 sec ago.

    Regards,

    Joolz

    #70610

    Hi Joolz,

    I was able to fix the portfolio item headers so that they link to the individual page. The actual helper-templates.php that was in your site files didn’t have the updated code that you showed above. I’m guessing it was either uploaded to the server in the wrong spot or perhaps there was an error when you uploaded and it never went live.

    Either way, that one is fixed!

    As for the social icons, I don’t know why some aren’t showing up in the ajax slider. That one has me stumped completely.

    Regards,

    Devin

    #70611

    Hey Devin,

    Thanks again for all this.

    Can’t figure why this wasn’t correctly uploaded. The code pasted here was copied from the file on the server. Long story short, it works fine, merci!

    For the social, i’ve tried several plugin, all working strangely.

    1 – Do you know and Angular website working fine with social plugin ?

    2 – Is there any way I can work this out ? An recommended plugin by the Kriesi team ?

    Regards,

    Joolz

    #70612

    I don’t know of any off hand that would work, but what would probably work best is one where you can add in the social sharing icons where you choose with a php call to the plugin. Then you could insert that php right around the same area that we did the changes above.

    #70613

    Even if it also bugged a bit (icons displayed weirdly), I’ve used Social Sharing Toolkit and finally manage to make this work.

    Thanks for the help Devin, problem solved.

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

The topic ‘Add social – share service to the portfolio item’ is closed to new replies.