Specific post sidebar content + sidebar position on mobile devices

Posted in: Newspaper
Post count: 24

Hi,

Two questions regarding sidebar:

1) A lot our articles/posts will be recipes where we want to display the ingredient list in the sidebar, like on the first test page I created: https://www.lettogsunn.no/polse-med-eple-og-rodbetsalsa/

From what I have read it is only possible to have specific sidebar per category, but is there a way to have different sidebar content per POST that are in the same category? What would be the best way to solve this..?

2) On mobile devices for the page I linked to, the sidebar content will be below the button and contact form below the post content. Is it possible to put CSS code that forces all posts in our recipe category to show the button + contact form BELOW the sidebar on mobile devices (since we want to have sidebar/ingredient list just below the post content on mobile devices)?

Thanks a lot for great theme and support!!

Post count: 22421

Hello,
1)You can have a specific sidebar on every post if you chose to but that will lead to the creation of a whole lot of sidebars. You can select the sidebar you want for a specific post from here: http://screencast.com/t/3ntuwX4R
2) Unfortunately since the form is in the post content, css cannot work like that. The css simply moves the sidebar below the post content. You will have to use another technique here and add a form in the sidebar and hide it with css on desktop and on mobile have it visible. And hide the first form for mobiles. CSS cannot move elements from one container to another.
Thank you!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.