Jump to content

Archived

This topic is now archived and is closed to further replies.

fabienfons

Paste ShareBar inside a post

Recommended Posts

fabienfons

Hi,

 

Is it possible to paste ShareBar inside a Wordpress post ?

Thanks

Fabien

Share this post


Link to post
Share on other sites
JudithKlinger
17 minutes ago, fabienfons said:

Hi,

 

Is it possible to paste ShareBar inside a Wordpress post ?

Thanks

Fabien

Couldn't you just paste the code inside the post? 

Share this post


Link to post
Share on other sites
fabienfons

Which code ??

Share this post


Link to post
Share on other sites
fabienfons

OK, i found : Inside the post, there is a pagelines sortcode Button :)

It works, it is fantastic, but : 

  • I'like to choose which icon i want to display
  • I'd like to center them on the left
  • i'd like for example to paste the shareware at the end of every posts on my blog

It would be nice !

 

Share this post


Link to post
Share on other sites
fabienfons

OK, i found how to center, you can just clic and edit, it's fantastic.

2 questions : 

  • I'like to choose which icon i want to display (i don't want Pinterest, and i'd like Google+)
  • i'd like for example to paste the sharebare at the end of every posts on my blog

Share this post


Link to post
Share on other sites
JudithKlinger

If you want the share bar to be at the end of every post, you need to set up the builder something like this. 

The top container is holding text boxes for various loops: [loops_title] [loops_author] etc. 

The bottom container is holding [loops_content] and the share bar. 

Screen Shot 2015-11-30 at 7.13.20 PM.png

Share this post


Link to post
Share on other sites
fabienfons

hum, in fact, it is not really what i want...

In this case, socialbar appears at the end, at the bottom of the comments.

I want that the social bar appears inside the post, at the end.

I can do it manually, it works perfectly with the pagelines; but i would like to do on every posts.

Do you see what i mean ?

Share this post


Link to post
Share on other sites
fabienfons

nobody ?

Share this post


Link to post
Share on other sites
Aires

To do as want you will need to use a hook to apply to every post.

Currently the hooker plugin is not in PL5 so you will have to code it in manually.  


ndTgvai.jpg

Visit iheartpagelines.com for the latest tutorials on PageLines related products.

 

Share this post


Link to post
Share on other sites
fabienfons

Thank you.

Here is my shortcode : [pl_section section="sharebar" id="1356524174"]

Would you know which code to add in CSS to display Share bar at the end, inside each post of my blog ?

Sorry, i don't know code, that's why i'm using Pagelines :)

Share this post


Link to post
Share on other sites
Aires

I really am not comfortable giving out such code.

There are too many thing that can go wrong, your site could fail to load and I can't be liable for issues with your website. Errors  may occur and will need to ftp into the server and remove the code. 

The best way to learn it is to experiment as I did on a test site and learn as go. There are tons of tutorials to choose from. 

 


ndTgvai.jpg

Visit iheartpagelines.com for the latest tutorials on PageLines related products.

 

Share this post


Link to post
Share on other sites
fabienfons

hum, ok !

It is a little bit frustrating, because i just want to display social icons under each posts, and it is complicated :(

Share this post


Link to post
Share on other sites
Andrew
add_filter('the_content', 'my_function');

function my_function( $content ){

	$pt = get_post_type(); 

	if( 'post' == $pt ){
		$content .= 'add something'; 
	}

	return $content; 

}

something like this...

Share this post


Link to post
Share on other sites
Simon

Or, to add to Andrews snippet...

...

$content .= do_shortcode( '[pl_section section="sharebar" id="1356524174"] );

Share this post


Link to post
Share on other sites
chrisayers

You guys all make this so hard......  

[pl_section section="sharebar" id="whateverIfeellikenamingthisitdoesnotreallymatter"]

sharebar.png

Share this post


Link to post
Share on other sites
batman

Hi chrisayers

7 hours ago, chrisayers said:

You guys all make this so hard......  

[pl_section section="sharebar" id="whateverIfeellikenamingthisitdoesnotreallymatter"]

sharebar.png

I believe that the function is to add the sharebar inside each post an existing blog post. If I want to do this in my blog I have more than 7.000 post.

:geek:


Life is too short to remove USB safely ...

Share this post


Link to post
Share on other sites
chrisayers
On 11/30/2015 at 7:32 PM, fabienfons said:

Hi,

 

Is it possible to paste ShareBar inside a Wordpress post ?

Thanks

Fabien

He did not ask all that.

Share this post


Link to post
Share on other sites
chrisayers
1 hour ago, batman said:

Hi chrisayers

Yes if he wanted to do that on 7,000 posts it would be tough. But his question was answered. He said he was not a coder so giving him PHP hooks is like handing him nothing. I personally can go up and click the shortcodes button as fast as I can type "Thanks for reading this blog post". If he has a ton of post will be a lot of work. But if he is starting fresh then adding that to the bottom each time take 10 extra seconds.

 

Share this post


Link to post
Share on other sites
chrisayers

And since PL5 seems to be all about pick and choosing and using any toys we like now rather than it all being theme dependent. How about just using any sharing plug-in out there including the built in ones built into WP. And since he is not a coder I am willing to bet he has Jetpack or used it before. That has all the sharing and publish to Social Media tools for novices.

Share this post


Link to post
Share on other sites
Gavin_

on another note - sharebar is quite a light option - in terms of choices. 
jetpack is one option as a replacement. 
monarch has a load of options - maybe too many - but does not put a strain on the site. 
sumome has some neat tricks. 
and there are some very good and very light choices in codecanyon like 
http://codecanyon.net/item/ultimate-social-deux/6556073?s_phrase=woocommerce&s_rank=28

Share this post


Link to post
Share on other sites
fabienfons

Thank your for your answers...

Actually, i wanted to add the sharebar inside each post of my blog posts...

I bought a plug in, because it is more simple, or more cutstomizable..

Share this post


Link to post
Share on other sites

  • Similar Content

    • oseehys
      By oseehys+
      Hello,
      My Site is showing the dreaded white screen of death i have disabled all plugins, disable theme yet it has not come backup...
      The default wordpress 2015 displays when i activate it, anytime i activate platform 5 it continues to show a white screen 
      I have increased the memory limit, added PHP ini, all the suggested advice i have followed...can someone tell me what to do ASAP 
      Regards


    • jordangross
      By jordangross+
      Here's what I see when I try to download Platform 5:

       
      Is Platform 5 still being supported?  Most of the comments in this forum look a year old or older.
    • fabienfons
      By fabienfons+
       
      Hi,
        Big problem on your website, impossible to download platform 5…   Any idea to solve the issue ? Fabien
    • MrFent
      By MrFent+
      I wanted to share something I'm dealing with on my PageLines 5 website. The website is culturedfoodlife.com. I've seen this issue a few times, but it's always fixed itself without me really doing much, so I don't know how to troubleshoot. It'll start out with my page loading all wonky, due to scripts and stylesheets missing. I look at the page source, and towards the top, I see this line:
      <link rel='dns-prefetch' href='//www.group-ib.ru' />
      I have no idea what that website is, or why it's loading that line of code, and then further down, I see it again as the domain that tries to load all of my pagelines section style scripts:
      <link rel='stylesheet' id='pl-pins-css' href='https://www.group-ib.ru/…/plugins/pl-section-pins/style.css…' type='text/css' media='screen' />
      <script type='text/javascript' src='https://www.group-ib.ru/…/pl-sect…/script.infinitescroll.js…'></script>
      <script type='text/javascript' src='https://www.group-ib.ru/…/plugi…/pl-section-pins/isotope.js…'></script>
      <script type='text/javascript' src='https://www.group-ib.ru/wp-conte…/…/pl-section-pins/pins.js…'></script>
      Here's a screenshot: https://www.screencast.com/t/Nqk9YglUf
      So I get that this is why it's not displaying correctly on the front end, because these style scripts don't exist on group-ib.ru, and I have no idea why it's inserting group-ib.ru instead of my domain culturedfoodlife.com.It makes me think I'm being hacked. This seems to be affecting the styles and scripts of pagelines sections. Other plugins on my site load their scripts with the correct domain name.
       
      When I've seen this in the page, it usually fixes itself after a few minutes, but in this last case, it didn't fix itself until I started disabling plugins. I was trying to see if I could go through each plugin one by one to see if I could fine out anything. I disabled everything but all my pagelines plugins/sections, and the issue went away. Then when I re-enabled everything, the issue was still gone. So now I'm clueless as how to keep testing this. Any suggestions?
      The fact that disabling every plugin EXCEPT the pagelines plugins kind of make me think that the issue isn't with pagelines, but then again when the issue occurs, why does it only affect pagelines sections? Andrew Powers I could use some insight. Thanks.
    • jharri74
      By jharri74
      Hello, I want to create a form where a visitor can submit content/post from the front end. I did something very similar some years back using wp-types, CRED form with pagelines DMS. When i try to set this up in Platform 5, the CRED form generates but doesn't show. I get a blank page. In the browser's console window, i get the error: Uncaught Error: You cannot apply bindings multiple times to the same element.
      When i deactivate the PL plugin and change the theme, the form appears.
      I'm using Wordpress 4.8.2 and PL 5.1.7
      Thanks.
×