• Resolved joeshmoeshow

    (@joeshmoeshow)


    I would like the styling of the pagination (with numbers) to be consistent with my theme (buttons) instead of the default.

    I know the div class names to add, I’m just not sure how to apply them in the ‘feed-display.php’ file.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi @joeshmoeshow,

    The WP RSS Aggregator use WordPress paginate_links function for displaying the numbered pagination.

    If you’d like to, you can try to find a related filter which suits your need by looking at the guide here.

    Alternatively, you can also use your own pagination template by using this following filter:

    
    // remove the original pagination
    remove_filter( 'wprss_pagination', 'wprss_pagination_links' );
    
    // add your own pagination
    add_filter( 'wprss_pagination', 'my_wprss_pagination_links' );
    function my_wprss_pagination_links( $output ) {
      // write your pagination template here
    }
    

    You can refer to the line 388-418 in includes/feed-display.php file for the original function.

    Thread Starter joeshmoeshow

    (@joeshmoeshow)

    Thanks for the reply.

    Not having any luck here. I’m just not familiar with PHP. I thought there might be a simple solution to use my theme’s pagination styling.

    I noticed that if I instead use the “Older posts” and “Newer posts” links pagination, and add the “button” class to the $output .= ' <div class="nav-previous alignleft button">' it works. However, on the first page, a ghost button (without link/text) appears where “Newer posts” would be on subsequent pages.

    Any idea how to get rid of this?

    • This reply was modified 7 years, 11 months ago by joeshmoeshow.

    Hi @joeshmoeshow,

    If you remove the button class, does the “ghost button” disappear?

    If so, then it could be caused by how your CSS works for that button class. We recommend asking your theme developer on how to properly applying that CSS class.

    Lastly, we do not suggest you edit the plugin files directly, as when you update the plugin, your changes will be removed and overridden. It’s best to use the filter to use your own styling or markup version. But of course, the choice is yours as long as you understand the risk ??

    dear seem you are indonesian let me talk in bahasa may I? pak @eric Gunawan, saya sedang membuat aplikasi mobile untuk blog, maka dari itu saya gunakan rss feed dengan wp rss aggerator, setelah saya coba di mobile apps hanya muncul 10 feed saja dan ketika di klik beritanya kenapa content teksnya tidak mengikuti paginasi yang ada di web sumber, semua rapet tanpa paragraph.

    yang saya mau tanyakan, bagaimana cara menambahkan feed lebih dari 10 mungkin dengan fetching setiap di scrool kebawah pada apssnya, sampai beritanya habis sesuai web sumber?? dan bagaimana supaya tampilan teks pada berita sesuai dengan format web aslinya, antar kalimat dan paragraph?

    terima kasih sebelumnya.
    salam

    Dear @akaiswara,

    Please open a new thread for your issue ??

    Silakan membuat thread baru untuk problem Anda di sini. Saya akan membalas Anda di thread Anda tersendiri karena problem Anda sepertinya tidak terkait langsung dengan problem yang ada di thread ini.

    Tolong sertakan juga beberapa screenshot yang dapat membantu untuk menjelaskan masalah Anda dengan lebih baik.

    Terima kasih.

    oke om saya buat

    • This reply was modified 7 years, 10 months ago by akaiswara.
    • This reply was modified 7 years, 10 months ago by akaiswara.

    Terima kasih @akaiswara.

    Sudah saya jawab di sini ya.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Styling the pagination’ is closed to new replies.