WordPress.org

Forums

Anarcho Notepad
[resolved] Number of Recent Posts in Sticker (6 posts)

  1. pelznase
    Member
    Posted 1 year ago #

    Hello!

    I just discovered your theme and I like it very much!
    I added ist to my site http://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

  2. Arthur Gareginyan
    Member
    Theme Author

    Posted 1 year ago #

    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".

  3. pelznase
    Member
    Posted 1 year ago #

    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?

  4. Arthur Gareginyan
    Member
    Theme Author

    Posted 1 year ago #

    Hello!

    You are welcome!

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

  5. pelznase
    Member
    Posted 1 year ago #

    Hello!

    Of course! What do you need to see?

    This is the site

    http://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

  6. Arthur Gareginyan
    Member
    Theme Author

    Posted 1 year ago #

    Thank you for the snapshots.

    Try to change "Background Position" from "Left" to "Center" in the "Customiz'it" -> "Background Image".

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic