Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author bestwebsoft

    (@bestwebsoft)

    Hi,

    In order to add pagination, it is necessary to add the appropriate function in your theme (https://i.prntscr.com/fb04a4a36d9a4ea194f0ed0aeefafaf3.png). As a rule, it is “single.php”. To hide the current pagination, please add .penci-pagination class on the plugin settings page and save changes (https://i.prntscr.com/b2fedda869f8461a881a127253a07e07.png).

    Sincerely,
    BestWebSoft Support Team

    Thread Starter egabog

    (@egabog)

    Please forgive my stupidity in programming. I was able to make the pagination show up, just not in the right place. Also, adding .penci-pagination on settings didn’t remove the ugly standard pagination.

    If it isn’t any trobule, here are a few screenshots:

    My single.php file: https://i.imgur.com/aoDtdrq.png
    Settings page (Checking hide standard pagination also does no good): https://i.imgur.com/31vmGAX.png
    Result: https://i.imgur.com/iNeIu3x.png

    Best regards,
    Caio

    Plugin Author bestwebsoft

    (@bestwebsoft)

    Hi,

    If you want to hide the standard pagination, it is necessary to add a full point before “penci-pagination”. You’ve added the code correctly to “single.php” and pagination appeared (result screenshot). Now you can configure its appearance on the plugin settings page (Pagination by Bestwebsoft -> Appearance tab).

    Sincerely,
    BestWebSoft Support Team

    Thread Starter egabog

    (@egabog)

    It’s still a no-go. Adding a point before penci-pagination didn’t remove the standard one and the pagination blocks won’t appear below the main content when I change it in options. Actually, Above and Below won’t work as well.

    Anyhow, aren’t the blocks supposed to show below the title instead of above it?

    Plugin Author bestwebsoft

    (@bestwebsoft)

    Hi,

    Please provide a link to your site where the pagination shows up.

    Sincerely,
    BestWebSoft Support Team

    Thread Starter egabog

    (@egabog)

    As the page I intended to use pagination isn’t published yet, I added it to another post. Here’s how it looks:

    https://cinegrandiose.com/2014/07/01/michael-kohlhaas-analise-e-impressoes/

    Plugin Author bestwebsoft

    (@bestwebsoft)

    Hi,

    1) Pagination shows up at the top because the code has been added to the wrong file. Delete the code added earlier <?php if ( function_exists( 'pgntn_display_pagination' ) ) pgntn_display_pagination( 'multipage' ); ?> from the “single.php” file and add it to “content-single.php” file where necessary.

    2) If you want to hide the standard pagination, please go to the plugin settings page, “Custom Code” tab, check off “Activate” checkbox for “Editing bws-custom-code.css” field, and add the following CSS code:

    .post-entry .inner-post-entry>p:last-of-type {
    display: none;
    }

    Save changes and check results.

    Sincerely,
    BestWebSoft Support Team

    Thread Starter egabog

    (@egabog)

    Worked like a charm! Thank you very much!

    Thread Starter egabog

    (@egabog)

    Sorry to bother again. Actually, adding the CSS code to “bws-custom-code.css” removes the last paragraph in all of my other posts as well.

    When the post has that standard pagination it goes away, for all the posts that aren’t paginated the last paragraph disappears. (In “Lists” the text vanishes, in other posts it’s the score I gave the movie/tv show)

    Plugin Author bestwebsoft

    (@bestwebsoft)

    Hi,

    At the moment, we haven’t found any signs of Pagination work on your site.

    The reason, why we decided to recommend you these styles, was that you’d like to hide pagination block generated in the last paragraph of your main content (see https://prntscr.com/c0zmpy). Since this block doesn’t have own CSS classes or ID so that just it could be hidden, we’ve added the style for the whole paragraph.

    Now we can find pagination block generated by your theme on the main page (see https://prntscr.com/c0ztno). As you can see, this block has penci-pagination class. Because of this, we recommended to add .penci-pagination line into “Hide custom pagination” field on the plugin settings page.

    If we understand correctly, you’ve deleted <!--nextpage--> tags from the content of your pages.

    Please let us know if you still need our help.

    Sincerely,
    BestWebSoft Support Team

    Thread Starter egabog

    (@egabog)

    Sorry about that, I had removed the <!–nextpage–> because I thought the issue was solved. Just forgot to put it back.

    So, if the block doesn’t have its own CSS class or ID, then there’s no way to hide it without hiding the last paragraph as well?

    If not, then I guess I’ll keep both the standard pagination and the one you provide.

    Cheers

    Plugin Author bestwebsoft

    (@bestwebsoft)

    Hi,

    Unfortunately, if the paragraph has no id or class attribute, CSS style won’t be applied to all last paragraphs, and no matter if there is pagination or not.

    Sincerely,
    BestWebSoft Support Team

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Help with adding pagination to posts’ is closed to new replies.