- This topic has 5 replies, 2 voices, and was last updated 4 years, 9 months ago by
Elvin.
-
AuthorPosts
-
July 18, 2021 at 5:01 pm #1860374
aaron
1. How do I make a sidebar widget in Appearance>Elements, size of a square like this ad https://thepointsguy.com/news/critical-points-stop-ignoring-bofa-preferred-rewards/
2. How do I make it sticky, even when I scroll down it’ll remain thereJuly 18, 2021 at 9:15 pm #1860462Elvin
StaffCustomer SupportHi there,
1. How do I make a sidebar widget in Appearance>Elements, size of a square like this ad https://thepointsguy.com/news/critical-points-stop-ignoring-bofa-preferred-rewards/
That ad is a plain image w/ a size of 300px by 250px. If your widget is going to be an image as well, lay the image out conducive to being sized to 300×250. š
Implementing this on an actual HTML layout will be significantly more tricky as we have to consider the amount of content going in it. If there’s too much content on the widget, I don’t think we can get the same aspect ratio and/or sizing similar to that ad on the reference site.
2. How do I make it sticky, even when I scroll down itāll remain there
We can do that by CSS. If you can link us to the page in question and point us to the supposed sticky widget, we can help you with the CSS writeup. š
July 21, 2021 at 5:54 pm #1865490aaron
Hi can you take a look at my webpage, the size of the Related Post sidebar widget is shorter than the AD.
Is there a better “Related Posts” plugin where I can make it the same as the ad?July 21, 2021 at 8:04 pm #1865570Elvin
StaffCustomer SupportIf you still need this, you can add this CSS to make the sidebar sticky.
.inside-right-sidebar { position: sticky; top: 60px; }Hi can you take a look at my webpage, the size of the Related Post sidebar widget is shorter than the AD.
Is there a better āRelated Postsā plugin where I can make it the same as the ad?You can try WP Show Posts.
And then try my suggestion here – https://generatepress.com/forums/topic/adding-a-sidebar-that-contains-links-at-posts-in-same-category/#post-1854947
July 22, 2021 at 9:21 am #1866724aaron
I installed WP Show Posts but it is all text. (please see screenshot)
And I saw your suggestion on wp show posts but I’m lost:
1. Where is the place I have to add those “PHP snippet” to?
2. Where do I find the number for “WPSP list id”?
3. I’m so lost with “Set the Hook Elementās hook to generate_after_main_content”July 22, 2021 at 8:18 pm #1867191Elvin
StaffCustomer SupportI installed WP Show Posts but it is all text. (please see screenshot)
You can tweak how it will display w/ the settings. WPSP free is limited though. If you have WPSP Pro, you can pick between these demo styles – https://demos.wpshowposts.com/cards/
For #1:
Here’s how to add PHP snippet to your site – https://docs.generatepress.com/article/adding-php/
For #2:
When you create a WPSP list, on the right hand side of it’s edit page you will see a shortcode, that shortcode contains
id="xxxx"with xxxx as ID number. That’s the list ID.For #3:
This part you can ignore. You can instead add an HTML widget to the sidebar and place your shortcode in it. š
-
AuthorPosts
- You must be logged in to reply to this topic.