change display of the pages to look like the articles

  • Author
    Posts
  • #137369

    scrozes
    Member

    Hello !

    Here Is my question :
    Is it possible to add on the pages, on the right, the list of the lasted post, like on the articles ?

    I try to paste the code of single.php on page.php on my Bari child theme.
    It’s work not as expected : the lasted post are added but on the bottom of the page and not on the right like on the articles.

    Could you help me, please ?

    Thanks,

    Sabrina

    The blog I need help with is myoxybubble.com.

    #137382

    lelandf
    Theme Author

    Hi Sabrina,

    Sorry about that, and thanks for letting me know. From your description, I understand the problem.

    In addition to copying the .php file (which handles the functionality), as you did, there are some required CSS changes (which handles the appearance) as well.

    body.page .site-main {
    	float: left;
    	width: 50%;
    }
    
    body.page .more-posts .entry-title {
    	font-style: italic;
    	font-weight: normal;
    	letter-spacing: normal;
    	margin: 0;
    	font-size: 1.125rem;
    	line-height: 1.66666666666667em;
    }
    
    @media (max-width: 1000px) {
    	body.page .site-main {
    		float: none;
    		width: 100%;
    	}
    }
    
    @media (max-width: 600px) {
    	body.page .more-posts .entry-title {
    		font-size: 1rem;
    	}
    }

    Let me know how this works out for you.

    Regards,
    Leland

    #137422

    scrozes
    Member

    Hi Leland,

    Thank you very much !
    Your code fix the issue.

    So now it’s work as expected.

    Thank you so much for your help and fast reply and fix !!

    I’m very happy of this theme and the customization thanks to you !!

    Best regards.
    Sabrina

    #137435

    lelandf
    Theme Author

    Glad to hear that! I will go ahead and mark this topic as resolved.

    Please let me know if you have any other questions and I’ll be glad to help.

The topic ‘change display of the pages to look like the articles’ is closed to new replies.