• Resolved Aspalis_admin

    (@aspalis_admin)


    Hello Alexander,
    Thank you for the great theme!
    I have one question, I’m trying to style the pagination “button”, instead of 1,2,3 or “next page” I want to put a small photo. On previus theme I just added
    ‘nextpagelink’ => __(‘<img src=”https://mydomain.com/files/image.png&#8221; />’),
    ‘previouspagelink’ => __(‘<img src=”https://https://mydomain.com/files/image2.png&#8221; />’)

    and everything was OK, but unfortunately I cannot figure out how to add this lines to single.php in order to get it working. I’ve tried few times but I only get a white screen!

    Could you please tell the solution to my problem?

    Thank you in advance

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Aspalis_admin

    (@aspalis_admin)

    I added this:

    <?php wp_link_pages(
    array(
    ‘before’ => ‘<div class=”pagenav”>’,
    ‘after’ => ‘</div>’,
    ‘next_or_number’ => ‘next’,
    ‘nextpagelink’ => __(‘<img src=”mydomain.com/files/image.png” />’),
    ‘previouspagelink’ => __(‘<img src=”mydomain.com/files/image2.png” />’)
    )

    ); ?>`

    Instead of the your code and it is working perfectly!

    Thanks for sharing the solution!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘pagination button style’ is closed to new replies.