Jump to content
Sign in to follow this  
virplay

Waiting for an answer on excerpts and sharebar

Recommended Posts

virplay

Hola I posted a question 3 weeks ago, and still waiting for an answer. http://www.pagelines.com/forum/discussion/18079/social-share-at-excperts#Item_13 At my blog www.godigital.es, under each post excperts on home page I am using addthis plugin, but I dont like it, and want to use the SHAREBar like in blog posts (http://www.godigital.es/diseno/redes-sociales-para-creativos-disenadores-y-fotografos/). How Do I add the ShareBar under each excerpts on Blog page? Simon give me an idea how to do it, but still not sure how to do it. http://www.pagelines.com/forum/discussion/17584/sharebar-not-visible-at-homepage/p1 Can u help me please? Gracias

Share this post


Link to post
Share on other sites
Danny

Hi, I have spoken to one of our developers and he has provided me with the following code. You have two options both of which will only work with 2.1.3. I have provided below: 2.1.3 Option #1

add_action( 'add_social_under_meta', '__return_true' ); //2.1.3
This will add a basic sharebar under the post meta like we have on PageLines.com 2.1.3 Option #2
add_action( 'pagelines_loop_before_excerpt', 'vir_sharecode' );
	function vir_sharebar(){
	?>
	
	
	
	
	
	


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
virplay

thx, but where I add it? :-O

Share this post


Link to post
Share on other sites
WebWerx

Functions.php. Are you using Base?

Share this post


Link to post
Share on other sites
Simon

Add to pagelines-customize/functions.php

Share this post


Link to post
Share on other sites
virplay

wait, I activate Base, one second

Share this post


Link to post
Share on other sites
virplay

Base plugin activated.... pagelines-customize/functions.php..wait I search for it (no much idea of developing)

Share this post


Link to post
Share on other sites
virplay

U mean, pagelines: Global settings: Custom code?

Share this post


Link to post
Share on other sites
virplay

Or Edit theme: PageLines Framework: Funciones del tema (functions.php) ? I am lost :D

Share this post


Link to post
Share on other sites
Simon

No, custom code is for CSS only, the code Danny posted has to go in the wp-content/plugins/pagelines-customize/functions.php

Share this post


Link to post
Share on other sites
virplay

under wp-content/plugins/pagelines-customize/ I have functions.php and also have pagelines-customize.php wich one I choose? functions.php or pagelines-customize.php Sorry, want I want to be sure no to touch anything dangerous

Share this post


Link to post
Share on other sites
Simon

functions.php

Share this post


Link to post
Share on other sites
WebWerx

@virplay: You should probably watch the tutorials before messing in functions.php IMHO

Share this post


Link to post
Share on other sites
virplay

thx Then I add the code before last lines, right? And wich option I add, #1 or #2? Is for adding the sharebar on each expcerts at home // ==================================================== // = YOUR FUNCTIONS - Where you should add your code = // ==================================================== */ add_filter('pagelines_leaf', 'my_terms'); function my_terms($content) { $content = "godigital.es"; $content = sprintf('

%s
', $content); return $content; }

Share this post


Link to post
Share on other sites
WebWerx

Search the Forums for "hooks". Sorry i am on the road. I have it bookmarked at the office.

Share this post


Link to post
Share on other sites
Simon

Thats up to you, as Danny explained already, #1 will add it under the metabar on the blog page, #2 will add custom html after the excerpt.

Share this post


Link to post
Share on other sites
WebWerx

One of the PL folks will probably post it.

Share this post


Link to post
Share on other sites
virplay

@webwerx but there is a problem doing this? Well I added the option #2 at function.php And whats the next step to add the sharebar at exceprts? :D

Share this post


Link to post
Share on other sites
virplay

Error at my blog, on each excerpts at home page :-O www.godigital.es T?©cnicas para fomentar la creatividad en las empresas POR NADIA EL 08/03/2012 ?· ESCRIBIR UN COMENTARIO ?· EN SOCIAL [EDIT] Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'vir_sharecode' was given in /home/fcizbzbr/public_html/godigital.es/wp-includes/plugin.php on line 405 La mezcla adecuada del hemisferio derecho del cerebro -la parte emocional- junto con la racionalidad de la parte izquierda y las aptitudes empresariales, dan lugar a la innovaci??n. Favorecer la innovaci??n en los procesos empresariales, fortaleciendo m??s y mejores ideas, es vital para salir de la situaci??n actual. Si no cambias, te cambian. Parece que [...] Share on facebookShare on twitterShare on email

Share this post


Link to post
Share on other sites
virplay

I changed to option #1 and seems working now

Share this post


Link to post
Share on other sites
Jenny

Do you have the option enabled in PageLines -> Settings -> Blog and Posts?


Jenny :: Web designer at Simple Mama (follow me at @simplemamacom)

Check out Share Me, a social sharing add-on for DMS that is super simple to set up.

Share this post


Link to post
Share on other sites
virplay

Yes, they are enabled in Settings: blog and posts. Twiter, facbeook and google

Share this post


Link to post
Share on other sites
Simon

The 'sharebar' that #1 gives you does not take settings like the regular sharebar, it fixed just facebook and twitter. We added that to show it on our blog. It is not customizable. If you want more shares, you will have to go with #2 and add the share HTML yourself, facebook, twitter, google etc all provide the html for you to add.

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  

  • Similar Content

    • janpeeters
      By janpeeters
      Over the last month I had extensive communications with the developer of the (premium) Anything Boxes section (in Pagelines store) (Adam Munns) and the developer of the WP Polylang Multilingual plugin (Frederic Demarle).
       
      This was because the following problem occurred:
      Anything Boxes showed all posts of two languages (Dutch and English) on the respective static frontpages for each language. It should of course have filtered posts for Dutch language on the Dutch frontpage and English on the English frontpage.
       
      The solution to this problem was simple in the end. When duplicating a page for use in another language the settings for Anything Boxes were not copied to the new page and I should have set these settings manually again on the new page. I wasn't aware of this, but it makes sense. Because of this the pages didn't know how to differentiate between posts from different languages.
       
      The dev of Polylang told me that Polylang is currently smart enough to synchronize metas like Featured images and page templates but it does not work out of the box with metas created by plugins and themes but (according to Frederic) it is rather easy to add them in the list using the filter 'pll_copy_post_metas'.
      He mentions that he is not sure that these 'PageLines Meta Settings' are stored in post meta but that would make sense according to him. He asks if the Pagelines dev team will be interested to support this feature in the future.
       
      I'm also wondering if you will consider adding Polylang translation support for manually editable strings like the 'Read more…' strings in Pagelines Settings.
       
      Well that's of course up to you but I thought to let you know to be able to take this into consideration. I also post this for other users in case they experience the same kind of trouble and are looking for an answer.
       
      Best regards,
      Jan Peeters
    • bankrollbuilder
      By bankrollbuilder
      I used a custom hook to put a banner ad in my header. It works but its not in the right position. it is centered and above my logo and I would like to float it to the right of my logo in the header. heres the link: http://shaboopie.com/shaboopie-wp/free-logos-pg1/

      thanks.

      Dan B.
    • starlit
      By starlit
      Can one have two hero sections on one page?

      I want a landing page which leads/advertises two subpages.

      Or is there another option?

      Please help.

      THANK YOU
    • hutruk
      By hutruk
      Hi!

      I am using the shortcodes for tabs, as described in the documentation.

      When I insert the following code:


      [pl_tabs][pl_tabtitlesection type="tabs"] [pl_tabtitle number="1"]Title 1[/pl_tabtitle] [pl_tabtitle number="2"]Title 2[/pl_tabtitle] [/pl_tabtitlesection] [pl_tabcontentsection] [pl_tabcontent active="yes" number="1"] Lorem ipsum dolor sit amet, consectetur adipiscing elit [/pl_tabcontent] [pl_tabcontent number="2"] Lorem ipsum dolor sit amet, consectetur adipiscing elit [/pl_tabcontent] [/pl_tabcontentsection] [/pl_tabs]

      I get a strange output (in the attachment).

      Any ideas?

      Thanks in advance!

    • MooiWeb
      By MooiWeb
      Hello,

      I would like to align my qtranslate with my breadcrumb so that the flags are on the same hight.
      I'm aware of putting a code in the custom css and tryed severall codes from your site but for now, no succes

      The site i'm working on is http://nieuw.vazdias.nl

      Thx,
      Edwin



×