Design won't appear in scrapbook block

Permalink
This is the code I am currently using, the block is appearing correctly, but the design such as "background image" is not being applied to it. If I paste the scrapbook item onto the page in edit mode (not coded in) the design appears correctly. Any feedback / suggestions would be fantastic.

<div id="sidebar">
<?php
$block = Block::getByName('sidebar search');
$block->display();
?>
</div>

 
BigBobbyD replied on at Permalink Reply
BigBobbyD
Not sure if I am understanding the problem 100%, but it sure sounds like a css problem.

If you paste the block into <div id="sidebar"> and get what you want, based upon the snippet you provided, it seems like maybe you are creating two divs with id="sidebar"?
lecomm replied on at Permalink Reply
lecomm
Right. I'm expiriencing the same problem with v. 5.4.2.2
So the Problem again: first i also created a block in the scrapbook. It's an image-block in my case. Than i defined the custom design for this block right in the backend via the "design" link in the scrapbook list of blocks.
If i'm trying to embed this block by Name into my template, the custom design gets ignored.
Alexmclovin replied on at Permalink Reply
I'm having the same issue, I've applied a custom design to a block and whenever I go to use that block from the scrapbook the design gets ignored.
jasteele12 replied on at Permalink Reply
jasteele12
I believe this is probably related to a problem I am also having with 5.4.2.2

If I add a scrapbook block to a page, then either edit the CSS or positioning in Design and save it, when I go back to edit it:

It is no longer a scrapbook block!!!

The original is still in the scrapbook, but no longer on this page.

I have tried this on two different sites and hosts. Definitely *not* good :(
admin replied on at Permalink Reply
Updating to the most recent version of Concrete5 fixed this issue.