A
A
Alpha122018-05-04 09:40:39
WordPress
Alpha12, 2018-05-04 09:40:39

How to display such pagination?

Hello, there is a site test.ttt.s-host.net/ru/2018/05/03/kodeks-zakonov-o...
there is navigation before post and next post, how can I remove the post titles and leave only the arrows?
here is what I sketched, but it displays the title of the entry, which I do not need

<div class="zakon__arrow-container">

        <a href="" class="white-block zakon__arrow zakon__arrow--prev">
          <?php previous_post_link( '%link'); ?>
          <svg class="icon">
            <use xlink:href="#arrow-circle-left"></use>
          </svg>
        </a>
        <a href="" class="white-block zakon__arrow zakon__arrow--next">
          <?php previous_post_link( '%link', '%title'); ?>
          <svg class="icon">
            <use xlink:href="#arrow-circle-right"></use>
          </svg>
        </a>
      </div>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Roman Filippov, 2018-05-04
@Webram

a[rel="prev"],
a[rel="prev"]:hover
a[rel="prev"]:active{
color: #ddd0;
}

Arrows through :after or :before are displayed.

M
Max Medar, 2018-05-04
@MedVedar

You yourself specify to display the title: previous_post_link( '%link', ' %title '). Specify there '' or whatever you need.
Documentation for the weak?
https://developer.wordpress.org/reference/function...
https://codex.wordpress.org/Next_and_Previous_Links

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question