Jump to content
Sign in to follow this  
ahansson89

How can I show social icons in post excerpts

Recommended Posts

ahansson89

What I want is to show a Tweet, Like and a +1 button on my excerpts when users reads my postloop. I have a plugin that did it before, but now it seems to be broken, after switching to iBlogPro5. I guess I need to do some custom code to achieve this?

Share this post


Link to post
Share on other sites
Rob
I have looked into all the possible variables in settings and can't find an option to change to accommodate your request. However, I am confident that one of our Professional developers could handle this issue for you. Could you copy a link to this topic into an email going to [email protected] requesting a quote for professional development services. I believe this requires a hook and custom coding for a new section.

Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
ahansson89
I really want to do this my self without any help from the professionals... It should not be that difficult to achieve what I want if I just put it directly into my iBlogPro5 theme and style it with CSS... But where is the code supposed to go?

Share this post


Link to post
Share on other sites
catrina
Putting it directly in the theme isn't advisable because that change will be lost when the theme is upgraded. This is why rangelone mentioned adding a hook first and using CSS to style it. In order to add a hook, you'll need the Pagelines Customize plugin, which is available from the Store (under the PageLines tab on your Dashboard).

Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
ahansson89
Hi catrina. I did used some time to put this code together, but I cannot get it to show up anywhere. [code] [/code] Can you tell me where the missing piece of the pussle is? I also need to pull the post-url and post title from my database and I do not know how to do this.

Share this post


Link to post
Share on other sites
catrina
This CSS code you have at the end must be placed in Custom Code > Custom CSS in the Settings, not the functions.php file: [code][/code]

Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
Rob
Aleksander, Your code, up to Plugins > Editor, then select the plugin and function.php to edit. Make sure it's CHMODed to 777. Same for style.css. The code below goes into Custom Code in CSS Rules. [code].social_icons_on_postloop { float:left; display:block; }[/code]

Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
ahansson89
Nothing shows up in the excerpt... I tried everything now but it seems that I cannot add a function to 'get_continue_reading_link' or any other functions in the excerpts... however 'the_post' hook works, but that is not the place where I want to put my code!

Share this post


Link to post
Share on other sites
catrina
The "get_continue_reading_link" doesn't work because it isn't a hook. You'll need to find the appropriate hook in this list (it's labeled as an ACTION): http://api.pagelines.com/hooks.

Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×