Site logo

Archived topic

Changing Sidebar Articles

1 reply · Started by Ella on October 21, 2022

Viewing posts 1–2 of 2

Hey!

My sidebar posts are all the same as they're all showing the most recent posts. See here: https://www.totallypurrfect.com

The bar at the top shows the most recent, then we have a image posts with most recent and a list of "Most Recent." What are my different options for displaying different posts? Can I add a #MostPopular tag and then feature them based on that to mix it up, etc? And how do I go about doing that please?

Also, I want a long sidebar on desktop, but not on mobile, so how do I hide certain sidebar elements from showing on mobile please?

Thanks so much,
Ella

Hi Ella,

Your sidebar is using WP show posts to show the posts, you can change the conditionals of the WP show posts lists at dashboard > WP show posts.

If you want to hide the 2nd and 3rd widget on homepage, try this CSS:

@media (max-width: 768px) {
.home .inside-right-sidebar > *:nth-child(2), .home .inside-right-sidebar > *:nth-child(3) {
    display: none;
}
}

If you want to hide the 2nd and 3rd widget on single post, try this CSS:

@media (max-width: 768px) {
.single-post .inside-right-sidebar > *:nth-child(2), .single-post .inside-right-sidebar > *:nth-child(3) {
    display: none;
}
}
This archived topic is closed to new replies.