Jump to content
Sign in to follow this  
leowu

PinPost: How to not show excerpt

Recommended Posts

leowu    0
leowu

I am trying to use PinPost section on a blog with mostly images. Many posts don't have any content so the excerpt for PinPost boxes shows [...], which is very ugly. How do I prevent the plugin from displaying [...] or any excerpt?

 

I tried to edit the following code, but the titles and dates and categories disappeared too.

 

 

    $content = sprintf(
                '%s<h4 class="headline pin-title"><a href="%s">%s</a></h4><div class="pin-excerpt summary">%s %s</div>%s',
                $meta_top,
                get_permalink( $p->ID ),
                $p->post_title,
                custom_trim_excerpt($p->post_content, 25),
                pledit($p->ID),
                $meta_bottom
            );
 


Thanks in advance.

p.s. If it is not too much trouble, can anyone please let me know to disable showing category, date or comment link?
 

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

Hi,

 

If you wish to remove/hide specific content from the PostPins section the simplest method would be to simply hide it via CSS. I have provided you with the CSS to hide the [...]

 

.hellip {
display: none;
}

 

If you wish to hide other elements you will need to do this by inspecting the element via Firebug or your browsers built-in web dev tools.

Please search our forums, before posting!

Share this post


Link to post
Share on other sites
hugheskh    0
hugheskh

following your logic, then can we add a code to let pinpost displaying the text in the excerpt box when composing a blog post?

 

the logic should be like this

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

The PostPins section doesn't use the Wordpress excerpt. Therefore, this is not possible out of the box.

 

Not sure what you're referring to when you say this:

"the logic should be like this"


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
hugheskh    0
hugheskh

Hi,

 

If you wish to remove/hide specific content from the PostPins section the simplest method would be to simply hide it via CSS. I have provided you with the CSS to hide the [...]

 

.hellip {
display: none;
}

 

If you wish to hide other elements you will need to do this by inspecting the element via Firebug or your browsers built-in web dev tools.

 

HI Danny,

 

where and i paste this code to in order to hide the [...]?

 

thank you!

Share this post


Link to post
Share on other sites
Rob    547
Rob

Try adding it to Dashboard > PageLines > Site Options > Custom Code.


Former PageLines Moderator, Food Expert and Raconteur

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

    • Johnny Z
      By Johnny Z
      When using pinpost, the title and excerpt are split mid-word.  http://www.ctrguns.com/gun-news/
       
      Viewing in Google Chrome it looks fine.  However, the problem is when viewing in Internet Explorer or Firefox.
       
      I can't seem to figure out how to fix the problem.  I tried changing typography settings, but it did not fix problem.
       
      Perhaps there might be some styling class code that could solve the problem?
    • hugheskh
      By hugheskh
      HI, I have just joined pagelines family for not more than 24 hours,
       
      I would like to ask can i customize the excerpt that is shown on pinpost?
      i want to use some designated text like the classic post excerpt, I would also like to change the metas shown like the date, the category, or the number of words that can be viewed.
       
      but it seems it doesn't support this, am i correct?
      how can i customize it, thank you~
×