Jump to content


Photo
- - - - -

Flipper adding excerpt below the image

flipper excerpt post

  • Please log in to reply
14 replies to this topic

#1 Slsp

Slsp

    Advanced Member

  • Members
  • PipPipPip
  • 30 posts
  • Framework Version:dms
  • Country: Country Flag

Posted 30 October 2013 - 05:43 PM

Wondered if anyone knows how I can get flipper to show excerpt text below the image in the post, I tried adding info in the excerpt part of the post page(backend) but (frontend) made flipper show a blank screen what I want to do is this... Image example can be viewed here.

 

https://www.dropbox....9/postswithtext



#2 James B

James B

    Advocate

  • Moderators
  • 4979 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 30 October 2013 - 08:39 PM

Your download file comes up as a corrupt txt file, is it meant to be a videocast?

 

I would imagine you'd need to do this as a hook/filter and change the order of how the section is displayed.



#3 Slsp

Slsp

    Advanced Member

  • Members
  • PipPipPip
  • 30 posts
  • Framework Version:dms
  • Country: Country Flag

Posted 31 October 2013 - 05:02 PM

Sorry this is the link https://www.dropbox....9/postswithtext 

 

Oh Lordy, hooks and filters, struggling with css as it is.

 

There isn't a simpler way to do this by any chance?



#4 Martin Davies

Martin Davies

    Advocate

  • Moderators
  • 2469 posts
  • LocationManchester, England
  • Framework Version:latest
  • Country: Country Flag

Posted 31 October 2013 - 06:02 PM

Can we have a link to your site please? 



#5 Slsp

Slsp

    Advanced Member

  • Members
  • PipPipPip
  • 30 posts
  • Framework Version:dms
  • Country: Country Flag

Posted 31 October 2013 - 06:08 PM

Sorry the link is here 

 

http://twb.thewhiskybond.net/

 

Thx



#6 Martin Davies

Martin Davies

    Advocate

  • Moderators
  • 2469 posts
  • LocationManchester, England
  • Framework Version:latest
  • Country: Country Flag

Posted 31 October 2013 - 06:10 PM

Can you add the relevant section to the page and then please let us know the page with the flipper section on it. Currently the page is 404



#7 James B

James B

    Advocate

  • Moderators
  • 4979 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 01 November 2013 - 12:43 PM

Hi Sarah

 

Add the following into the functions.php to either the base theme or the customize plugin

 

add_filter( 'pl_flipper_meta', 'the_excerpt', 'flipper_excerpt');
function flipper_excerpt ($more) {
        return '&hellip; <a href="'.get_permalink().'" rel="nofollow">[Continue Reading]</a>';
}



#8 Slsp

Slsp

    Advanced Member

  • Members
  • PipPipPip
  • 30 posts
  • Framework Version:dms
  • Country: Country Flag

Posted 01 November 2013 - 01:20 PM

Brill thanks...

 

I just placed it into the the functions.php under...

// This makes the font available to the framework and the user via the admin panel.

 

add_filter('wp_nav_menu_items','be_menu_extras', 10, 2);

add_filter( 'pl_flipper_meta', 'the_excerpt', 'flipper_excerpt');

function flipper_excerpt ($more) {

        return '&hellip; <a href="'.get_permalink().'" rel="nofollow">[Continue Reading]</a>';

}

 

...But its not working,

Do I place the code into Cool Carousel PL Section, flipper and google plug-in functions.php ? 

or is there somewhere else I can place the code once ?

 

Sso there's less cause for error, on my end ?



#9 Danny

Danny

    Is Awesome!

  • Moderators
  • 13021 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 01 November 2013 - 01:32 PM

HI,

 

In order to use filters and actions i.e. hooks, you will need to use a child theme or the customize plugin. Both come with a functions.php file, this is where you add the code.

Do not add the code to the DMS functions.php file, add all hooks to your child theme/customize plugin functions.php file.



#10 Slsp

Slsp

    Advanced Member

  • Members
  • PipPipPip
  • 30 posts
  • Framework Version:dms
  • Country: Country Flag

Posted 01 November 2013 - 02:38 PM

Man this stuff is a learning curve ! 

Okay will give it a bash. 



#11 Danny

Danny

    Is Awesome!

  • Moderators
  • 13021 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 01 November 2013 - 03:24 PM

Yeah like anything new there is a learning curve, but once you get the hang of it you will be golden. Just don't let it wind you up and also check out our documentation here, I'm sure it will assist you.

 

http://docs.pagelines.com/



#12 Slsp

Slsp

    Advanced Member

  • Members
  • PipPipPip
  • 30 posts
  • Framework Version:dms
  • Country: Country Flag

Posted 02 November 2013 - 01:22 PM

It worked !

Thanks a million.



#13 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 02 November 2013 - 02:25 PM

Excellent!  Very happy to read that.  And Danny's right.  Once you get past that first step, the rest is easy!



#14 lmillslagle

lmillslagle

    Newbie

  • Members
  • Pip
  • 1 posts
  • Country: Country Flag

Posted 17 March 2014 - 11:53 PM

I added in:

 

add_filter('wp_nav_menu_items','be_menu_extras', 10, 2);

add_filter( 'pl_flipper_meta', 'the_excerpt', 'flipper_excerpt');

function flipper_excerpt ($more) {

        return '&hellip; <a href="'.get_permalink().'" rel="nofollow">[Continue Reading]</a>';

}

 

And it worked perfectly, but now how do I adjust how much of an excerpt shows? Currently it shows about 6 lines of text under each thumbnail. How would I go about getting it to show 2 or 3 lines?



#15 James B

James B

    Advocate

  • Moderators
  • 4979 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 18 March 2014 - 12:15 AM

Hi there, I'm not sure if this will work but try editing the number of words in the postloop options on the blog page - http://screencast.com/t/OJXdx6ID as far as I know this is the same excerpt pulled in.

 

Otherwise you'll need to set a custom excerpt in each post with the exact amount of text you want to display - http://screencast.com/t/2X8CYzvX







Also tagged with one or more of these keywords: flipper, excerpt, post