• Resolved pelznase

    (@pelznase)


    Hello!

    I just discovered your theme and I like it very much!
    I added ist to my site https://www.die-leserattz.de.
    My question is: how can I change die number of recent posts in the sticker?
    I’d prefer to have only five posts on the list.
    Is there a possibility to get this?

    Would be happy for an answer.
    Thank you!

    Sandra

Viewing 5 replies - 1 through 5 (of 5 total)
  • Theme Author arthur-gareginyan

    (@arthur-gareginyan)

    Hello, Sandra!

    I’m glad that you liked my work!

    This is very simply.
    Find in the sidebar.php file this block:

    <!--RECENT POSTS-->
    <?php if(get_theme_mod('disable_recent_sticker') == '0') {  ?>
    <div class="recent-posts-upper"></div>
     <nav class="recent-posts">
        <?php $query = new WP_Query( array( 'posts_per_page' => '10' ) ); ?>
        <?php while ($query->have_posts()): $query->the_post(); ?>
        <ul>
           <li>
              <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
           </li>
        </ul>
        <?php endwhile; ?>
     </nav>
    <div class="recent-posts-bottom"></div>
    <?php }  ?>
    <!--END-RECENT POSTS-->

    and replace the “10” number to “4“.

    Thread Starter pelznase

    (@pelznase)

    Hello!

    Thanks for the answer! I found the block and changed it. Great that it is so easy ??

    Today I tried to add some pictures to the backround. That works fine, but the position of the picture change from resolution to resolution.
    How can I fix them so that everyone sees them on the same position?

    Theme Author arthur-gareginyan

    (@arthur-gareginyan)

    Hello!

    You are welcome!

    I’ll try to help you. Can I see it?

    Thread Starter pelznase

    (@pelznase)

    Hello!

    Of course! What do you need to see?

    This is the site

    https://www.die-leserattz.de

    I’d like to have a row of books standing on the top of the notepad.
    Between the title and the pages post-it.
    I tried it and placed a picture of a row of books in the background image. On my PC all looked good. But on PCs with a different resolution the books stood more to the right side.

    I don’t know how to show pictures of it here…
    I took snapshots of it to show.

    Maybe this way…

    On my PC ist looks

    https://imageshack.com/i/o5bc647dj

    But on my cellphone for example it looks

    https://imageshack.com/i/c90e8df1j

    Theme Author arthur-gareginyan

    (@arthur-gareginyan)

    Thank you for the snapshots.

    Try to change “Background Position” from “Left” to “Center” in the “Customiz’it” -> “Background Image”.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Number of Recent Posts in Sticker’ is closed to new replies.