Jump to content
Denis Ciumbargi

PostPins - How to change summary size - (ignore solved label, still open)

Recommended Posts

Denis Ciumbargi

Hi everyone, i am rebuilding my website from scratch and i would like to start using the PostPins section.

I managed to customize it pretty much, it a good plugin which allowed me that but i a cannot find the part of the code where i can change the number of words or the size of the summary / excerpt section to add more rows / words not just 3 as it comes by default. Photo attached.

Anyone knows how to do this?

post-31546-0-17748400-1349890254_thumb.p


Where there is love, I'll be there.

Share this post


Link to post
Share on other sites
catrina

It is best not to edit the section code (because these changes will be overwritten by section updates). You'll need to use the base theme in order to make non-destructive edits.


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
Denis Ciumbargi

I am not editing the section code, i am using an External css file which i am importing in the main css of the theme :) The question remains open.


Where there is love, I'll be there.

Share this post


Link to post
Share on other sites
Simon

You would have to edit the section to change the excerpt length:


custom_trim_excerpt($p->post_content, 25),
[/CODE]

Share this post


Link to post
Share on other sites
Denis Ciumbargi

You would have to edit the section to change the excerpt length:


custom_trim_excerpt($p->post_content, 25),

Thank you Simon.

Is this the only choice, to edit the section? No css code to be altered and imported not to affect the main code?

P.s. Dublin was great for me this year, that city rulz! :)


Where there is love, I'll be there.

Share this post


Link to post
Share on other sites
Simon

CSS wont affect the excerpt size unless you restrict the actual size of the area the excerpt goes in i suppose.

Yea Dub is great for a night out alright, did you go into Temple Bar?

Share this post


Link to post
Share on other sites
Denis Ciumbargi

CSS wont affect the excerpt size unless you restrict the actual size of the area the excerpt goes in i suppose.

Yea Dub is great for a night out alright, did you go into Temple Bar?

You think there is a way? The height code in the css i think is auto bsed on the line height and font size. I have to play with that but i am kind of newbie, maybe i looked at the wrong part of the code? Any help will be appreciated!

About Temple Bar, been there 3 times but alwas during day evening never late night, i will try that in 2 weeks when i will be in dublin for 6 weeks or so. If all my coding will go fine i'll offer a beer :)))


Where there is love, I'll be there.

Share this post


Link to post
Share on other sites
Simon

I was there few weeks ago, in the templebar hotel, lucky for me the room was above the nightclub, yea sleepless night there lol

Only thing i can suggest is you set a max-height for whatever the container the text is in, and force it to stay at one height.

Share this post


Link to post
Share on other sites
Denis Ciumbargi

Only thing i can suggest is you set a max-height for whatever the container the text is in, and force it to stay at one height.
The original css code for the classes .pin-excerpt and .summary that contains the text has this for max-height and min-height:
  • max-height: none;
  • max-width: none;
  • min-height: 0px
  • min-width: 0px;

I changed the values to some rondom values like 200 px for max-height and nothing happened, then for min-height and the space there it is now bigger but blank, still 3 rows of text only.

Photo attached.

post-31546-0-16966700-1349900496_thumb.p


Where there is love, I'll be there.

Share this post


Link to post
Share on other sites
Simon

well yea you increased the size, but its still 25 words. I thought you wanted it smaller?

Share this post


Link to post
Share on other sites
Denis Ciumbargi

I want more words. Double at least :(


Where there is love, I'll be there.

Share this post


Link to post
Share on other sites
Simon

Well, your only option then is to edit the section, as it is set to 25.

  • Like 1

Share this post


Link to post
Share on other sites
Denis Ciumbargi

Well, your only option then is to edit the section, as it is set to 25.

Bad end for me then. Thank you Simon, i will leave this open for any other suggestions anyway. I am a dreamer...

WE shall go for that beer anyway :D


Where there is love, I'll be there.

Share this post


Link to post
Share on other sites
Danny

I have resolved this topic, as Simon has provided the code need to change the size.

The topic was marked as resolved.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
Denis Ciumbargi

I have resolved this topic, as Simon has provided the code need to change the size.

The topic was marked as resolved.

Well, i think that is for ME to decide not you RockStar! The thread stays open until more persons will contribute as you never know who had a better idea!

I know marketing rules makes you resolve stuff fast as it shows the team is professional or so but again, my problem can be solved in other ways so it stays OPEN with all the respect, also the one you should have for customers and respect their ways to feel contented or not!


Where there is love, I'll be there.

Share this post


Link to post
Share on other sites
Danny

Well, your only option then is to edit the section, as it is set to 25.

Simon, is one of our developers and if he says the above, then there isn't any other way to resolve your issue. Therefore, I have resolved the topic.


Please search our forums, before posting!

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


  • Similar Content

    • Michael Kummer
      By Michael Kummer+
      Hi guys!
      I have noticed that my primary sidebar becomes intermittently invisible when browsing through various blog articles on michaelkummer.com/blog.
      See:
      https://www.dropbox.com/s/z646sgoa3mfjl1j/Screenshot 2018-07-12 15.57.46.jpg?dl=0 and https://www.dropbox.com/s/vdledzzgginvwgv/Screenshot 2018-07-12 15.57.57.jpg?dl=0
      Upon refresh, the sidebar appears. I have been using the following CSS code to hide the sidebar on mobile without any issues. 
      @media only screen and (max-width: 993px) {
      /* hide sidebars */
           .plsb {
              display: none !important;
          }
      }
      I tried to add the following CSS to force the sidebar to show on screens that are wider than 994 pixels but to no avail. Any clue what could be causing this issue?
    • Michael Kummer
      By Michael Kummer+
      Hi guys!
      I am using the LESS/CSS Pagelines extension and tried to add the following code to make use of FontAwesome:
      a.c2a:before {
          content: "\f07a\00a0";
          font-family: "Font Awesome 5 Pro";
          Font-weight: 900;
          font-style: normal;
          font-weight: normal;
          text-decoration: inherit;
          padding-left: 4px;
      }
       
      The issue is that as soon as I have the CSS via the Custom Styling text box, Pagelines (or the extension) strips out the backslashes (\). As a result, I had to abandon the CSS/LESS extension and instead add all my CSS code to a separate .css file.
      Is there a fix or workaround for this?
      Thanks
      Michael
    • glyph.marketing
      By glyph.marketing+
      Hello, I am having a problem similar to that experienced by Michael Kummer here. We have pages that show this automatic scrolling issue (examples here and here) and it is sufficiently annoying that we have seen customers bounce while trying to convert. Strangely, it only happens at specific resolutions, so it can be difficult to reproduce. In general we can only consistently reproduce it on a 4k resolution with a browser width between 1517 and 1536px. 
      Thanks to Michael Kummer's help we were able to set the overflow-anchor property to none in the entire body, which fixed the issue as far as we can tell, but also obviously disabled scroll anchoring for the whole site. I tried applying it to the specific element that looked like it was being reloaded, which was the PL Meganav extension, but that was unsuccessful. 
      Can anyone help us figure out which element or ID we can apply this property to, so that we can fix the scrolling issue but not disable scroll anchoring for the entire site?
      Thank you - 
      Glyph Language Services
    • mtaus
      By mtaus+
      I'm trying to add a Careers page to a site to display job openings. The plan is to create a Post using a subcategory 'Careers' and then display those on the page. All of the post sections in PL seem to include images and there's no obvious way to remove them or include an excerpt from the post. 
      Any suggestions?
    • chamois_blanc
      By chamois_blanc+
      Hello,
      Shouldn't the image PL5 component be using the srcset/picture css directives to pick the correct size for an image? or it does already and I don't know how to use it? Thank you for any advice or enlightenment.
×