How to delete the excerpt at the top of a paginated article?

  • Author
    Posts
  • #55228

    indamixworldwide
    Member
    Original poster

    First and foremost, warm congrats for the quality of this theme which I’ve started adapting to my needs a couple of weeks ago.
    One question though which has just appeared to my mind when coming to split a long post on 2 parts. I can see the excerpt appearing on page 1 which makes full sense, but also on page 2 which tends to break the flow of the post (creating a repetition). Is there anyway this might be avoided? Been asking at WP and didn’t get any solution except suggesting you to create a class so that we could work on this via CSS. Wishin’ this makes sense, with the same applying I suppose to the tags appearing on page 1 and 2 as opposed to strictly at the end on the post…
    Thank you in advance for your attention ;)
    Frederic

    The blog I need help with is: indamixworldwide.com

    #55451

    mhthemes
    Member

    Hi Frederic,

    thanks, we’re more than happy that you like the theme. :-)

    We will check your issue and provide a solution as soon as possible. In the meanwhile, you can disable the teaser text in your WordPress dashboard under “Appearance => Customize => Posts/Pages Options => Disable Teaser Text on Posts”. That will fix the issue when you have posts that are split into several pages.

    Kind regards,
    Michael

    #55465

    indamixworldwide
    Member
    Original poster

    Hi Michael, with warm thanks for your quick answer. The only problem is that, should I Disable Teaser Text on Posts, then the excerpt doesn’t appear anymore as our headlines on the homepage… ;)
    Viele Danke fuer die Hilfe als Ich verstehe dass MH Theme aus Deutschland kommt…
    Servas,
    Frederic

    #55466

    mhthemes
    Member

    Hi Frederic,

    no, disabling the teaser text on posts won’t affect the widgets on the homepage. ;-)

    Kind regards,
    Michael

    PS: Yes, we’re located in Germany. :-)

    #55472

    indamixworldwide
    Member
    Original poster

    So I suppose I have to set up the length of the excerpt from the widget then delete the one I have on the post editor right? Prob then is that the length of the excerpts may differ from a post to another…
    Frederic

    #55473

    mhthemes
    Member

    Hi Frederic,

    the teaser text that appears on single posts above the featured image is either the custom excerpt (if available) or, if no custom excerpt exists, the text before the more-tag will appear. If there is no custom excerpt and also no more-tag or if you have disabled the teaser text, then there will no teaser text be displayed.

    For the widgets and archives it is different. There the excerpt will display the custom excerpt (if available) without any limitations in length or an automatic excerpt that contains the first XXX characters (depends on your settings) of your post content.

    So actually there is no need to add a separate custom excerpt for every post. You can just let WordPress generate an automatic excerpt and in case you want to display a teaser text on posts above the featured image, you can just use the more-tag.

    #55474

    indamixworldwide
    Member
    Original poster

    I’ll give it a try with the more-tag then as opposed to generate an excerpt and see how it goes…
    Thank you ;)

    #55493

    mhthemes
    Member

    Hi Frederic,

    the issue has been fixed and the teaser text now will only appear on the first page of your paginated posts.

    Cheers,
    Michael

    #55494

    indamixworldwide
    Member
    Original poster

    Much appreciated, Michael. Your feedback is appreciated whenever you have some time regarding the way we’ve adapted your theme, with warm thanks for your explicit tutorials and quick reactions as to our WP HQ people for their precious support…
    Now we have another thing to face, in the same spirit, which is the presence of a comment form + social network share buttons down to the first page (pages I suppose if regarding a more than 2 page post) as opposed to only down to the last one.
    Your help on this will be defo appreciated too even though I’ll also ask WP in the meantime and get back to you if ever given a path and give it to you so that you can implement it on your next update…
    Bis bald, mein Herr ;)
    Frederic

    #55495

    mhthemes
    Member

    Hi Frederic,

    thanks for your feedback, but limiting the contact form and share buttons to only the last page of a paginated post is nothing we have planned to implement at the moment.

    But you could just hide that stuff with CSS, for example:

    .single .sharedaddy { display: none; }

    And then make it appear on the second page:

    .single-paged-2 .sharedaddy { display: block; }

    Cheers,
    Michael

    #55496

    indamixworldwide
    Member
    Original poster

    I’ll give it a try and keep you posted, Michael. Thank you so much for your commitment. Besides I think sorting out this matter via coding would be definitely of a help for the ones conceiving their blogs as magazines whenever having long posts…
    Speak soon ;)
    Frederic

    #55497

    indamixworldwide
    Member
    Original poster

    I’ll give it a try and keep you posted, Michael. Thank you so much for your commitment. Besides I think sorting out this matter via coding would be definitely of a help for the ones conceiving their blogs as magazines whenever having long posts…
    Speak soon ;)
    Frederic

    #55498

    indamixworldwide
    Member
    Original poster

    I still have the comment form appearing down to page 1, as for the rest, it’s all perfect for now… ;)
    Frederic

    #55499

    mhthemes
    Member

    Hi Frederic,

    the above mentioned code was just an example of how you could hide stuff with CSS. You could do the same with the contact form, for example:

    .single #respond { display: none; }
    .single-paged-2 #respond { display: block; }

    But please be aware that this approach is far away from being optimal and only makes sense when the majority of posts on your site is paginated (even then it is questionable). It seems there is no CSS class available to only trigger the first page of paginated posts, so you’ll need to use .single and that will hide the stuff on the first page of all your posts, no matter if paginated or not.

    #55500

    indamixworldwide
    Member
    Original poster

    I see. Thank you for the tip, Michael ;)
    Frederic

    #55501

    indamixworldwide
    Member
    Original poster

    I think I’ll leave this the way it was for now, as I’m just meant to have a few paginated posts. In other words, I understand the only solution would be to work on a php conditional, which I can’t do on my side, as hosted by WP…
    Frederic

    #55509

    indamixworldwide
    Member
    Original poster

    Hi Michael, just to let you know that the topic is now solved, with thanks for your quick reactions at to Siobhan at WP HQ who managed to come up with a terrific piece of CSS code to sort the problem…
    Renewed congrats for the absolute quality of your services and theme…
    Frederic

    #55513

    mhthemes
    Member

    Hi Frederic,

    you’re welcome and I’m happy that everything is now as you wanted. :-)

    Have a great weekend.

    Cheers,
    Michael

    #55518

    indamixworldwide
    Member
    Original poster

    Vielen Danke, mein lieber Michael u. gleichfals. If there’s anything I can do on my side for you, just let me know (like eventually adding my humble voice to the ones who left a tribute regarding the quality of your theme)
    Bis bald,
    Frederic

The topic ‘How to delete the excerpt at the top of a paginated article?’ is closed to new replies.